Documentation
¶
Index ¶
Constants ¶
View Source
const (
// PodPhaseAnnotation is the annotation on a PVC containing the upload pod phase
PodPhaseAnnotation = "cdi.kubevirt.io/storage.pod.phase"
)
Variables ¶
This section is empty.
Functions ¶
func NewImageUploadCommand ¶
func NewImageUploadCommand(clientConfig clientcmd.ClientConfig) *cobra.Command
NewImageUploadCommand returns a cobra.Command for handling the the uploading of VM images
func SetDefaultHTTPClientCreator ¶
func SetDefaultHTTPClientCreator()
SetDefaultHTTPClientCreator sets the http client creator back to default
func SetHTTPClientCreator ¶
func SetHTTPClientCreator(f HTTPClientCreator)
SetHTTPClientCreator allows overriding the default http client useful for unit tests
Types ¶
type HTTPClientCreator ¶
HTTPClientCreator is a function that creates http clients
Click to show internal directories.
Click to hide internal directories.