# Functions
ConstructUploadProxyPath - receives uploadproxy address and concatenates to it URI.
ConstructUploadProxyPathAsync - receives uploadproxy address and concatenates to it URI.
NewImageUploadCommand returns a cobra.Command for handling the uploading of VM images.
# Constants
ErrClaimNotValid stores the 'ErrClaimNotValid' event condition used for DV error handling.
OptimisticLockErrorMsg is returned by kube-apiserver when trying to update an old version of a resource https://github.com/kubernetes/kubernetes/blob/b89f564539fad77cd22de1b155d84638daf8c83f/staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store.go#L240.
PodPhaseAnnotation is the annotation on a PVC containing the upload pod phase.
PodReadyAnnotation tells whether the uploadserver pod is ready.
ProvisioningFailed stores the 'ProvisioningFailed' event condition used for PVC error handling.
UploadProxyURI is a URI of the upload proxy, the endpoint is synchronous for backwards compatibility.
UploadProxyURIAsync is a URI of the upload proxy, the endpoint is asynchronous.
# Variables
GetHTTPClientFn allows overriding the default http client (useful for unit testing).
UploadProcessingCompleteFunc the function called while determining if post transfer processing is complete.