Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTransferPVCCommand ¶ added in v0.0.5
func NewTransferPVCCommand(streams genericclioptions.IOStreams) *cobra.Command
Types ¶
type EndpointFlags ¶ added in v0.0.5
type EndpointFlags struct { // Type defines the endpoint type Type endpointType // Subdomain defines host of the endpoint Subdomain string // IngressClass defines class for ingress IngressClass string }
EndpointFlags defines command line flags specific to the endpoint to be used in transfer
func (EndpointFlags) Validate ¶ added in v0.0.5
func (e EndpointFlags) Validate() error
type FailedFile ¶ added in v0.0.5
type Flags ¶ added in v0.0.5
type Flags struct { PVC PvcFlags Endpoint EndpointFlags SourceContext string DestinationContext string SourceImage string DestinationImage string Verify bool RsyncFlags []string ProgressOutput string }
Flags defines options configured by users via command line flags of the subcommand
type LogStreams ¶ added in v0.0.5
type LogStreams interface { // Init initiates the log streams Init() error // Streams returns streams for output and error logs // returns a stream to communicate errors Streams() (stdout chan string, stderr chan string, err chan error) // Close closes log streams Close() }
LogStreams defines functions to read from a stream of pod logs
func NewRsyncLogStream ¶ added in v0.0.5
func NewRsyncLogStream(restCfg *rest.Config, pvc types.NamespacedName, labels map[string]string, output string) LogStreams
type Progress ¶ added in v0.0.5
type Progress struct { PVC types.NamespacedName `json:"pvc"` TransferPercentage *int64 `json:"transferPercentage"` TransferRate *dataSize `json:"transferRate"` TransferredData *dataSize `json:"transferredData"` TotalFiles *int64 `json:"totalFiles"` TransferredFiles int64 `json:"transferredFiles"` ExitCode *int32 `json:"exitCode"` FailedFiles []FailedFile `json:"failedFiles"` Errors []string `json:"miscErrors"` // contains filtered or unexported fields }
Progress defines transfer Progress
func NewProgress ¶ added in v0.0.5
func NewProgress(name types.NamespacedName) *Progress
type PvcFlags ¶ added in v0.0.5
type PvcFlags struct { // Name defines Name of the PVC, // mapped in format <source>:<destination> Name mappedNameVar // Namespace defines Namespace of the PVC, // mapped in format <source>:<destination> Namespace mappedNameVar // StorageClassName defines storage class of destination PVC StorageClassName string // StorageRequests defines requested capacity of destination PVC StorageRequests quantityVar }
PvcFlags defines command line flags for the PVC to be transferred
type TransferPVCCommand ¶ added in v0.0.5
type TransferPVCCommand struct { genericclioptions.IOStreams // user defined flags for the subcommand Flags // contains filtered or unexported fields }
func (*TransferPVCCommand) Complete ¶ added in v0.0.5
func (t *TransferPVCCommand) Complete(c *cobra.Command, args []string) error
func (*TransferPVCCommand) Run ¶ added in v0.0.5
func (t *TransferPVCCommand) Run() error
func (*TransferPVCCommand) Validate ¶ added in v0.0.5
func (t *TransferPVCCommand) Validate() error
Click to show internal directories.
Click to hide internal directories.