Documentation
¶
Index ¶
- Constants
- func NewTransfer(t transport.Transport, e endpoint.Endpoint, src *rest.Config, ...) (transfer.Transfer, error)
- type ArchiveFiles
- type CommandOptions
- type DeleteDestination
- type DestinationContainerMutation
- type DestinationPodSpecMutation
- type Password
- type PreserveOwnership
- type RsyncClientImage
- type RsyncServerImage
- type RsyncTransfer
- func (r *RsyncTransfer) CreateClient(c client.Client) error
- func (r *RsyncTransfer) CreateServer(c client.Client) error
- func (r *RsyncTransfer) Destination() *rest.Config
- func (r *RsyncTransfer) Endpoint() endpoint.Endpoint
- func (r *RsyncTransfer) IsServerHealthy(c client.Client) (bool, error)
- func (r *RsyncTransfer) PVCs() transfer.PVCPairList
- func (r *RsyncTransfer) Password() string
- func (r *RsyncTransfer) Source() *rest.Config
- func (r *RsyncTransfer) Transport() transport.Transport
- func (r *RsyncTransfer) Username() string
- type SourceContainerMutation
- type SourcePodSpecMutation
- type StandardProgress
- type TransferOption
- type TransferOptions
- type Username
- type WithDestinationPodLabels
- type WithOwnerReferences
- type WithSourcePodLabels
Constants ¶
View Source
const (
RsyncContainer = "rsync"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ArchiveFiles ¶
type ArchiveFiles bool
func (ArchiveFiles) ApplyTo ¶
func (a ArchiveFiles) ApplyTo(opts *TransferOptions) error
type CommandOptions ¶
type CommandOptions struct { Recursive bool SymLinks bool Permissions bool ModTimes bool DeviceFiles bool SpecialFiles bool Groups bool Owners bool HardLinks bool Delete bool Partial bool BwLimit *int HumanReadable bool LogFile string Info []string Extras []string }
CommandOptions defines options that can be customized in the Rsync command
func (*CommandOptions) AsRsyncCommandOptions ¶
func (c *CommandOptions) AsRsyncCommandOptions() ([]string, error)
AsRsyncCommandOptions returns validated rsync options and validation errors as two lists
type DeleteDestination ¶
type DeleteDestination bool
func (DeleteDestination) ApplyTo ¶
func (d DeleteDestination) ApplyTo(opts *TransferOptions) error
type DestinationContainerMutation ¶
func (DestinationContainerMutation) ApplyTo ¶
func (s DestinationContainerMutation) ApplyTo(opts *TransferOptions) error
type DestinationPodSpecMutation ¶
func (*DestinationPodSpecMutation) ApplyTo ¶
func (s *DestinationPodSpecMutation) ApplyTo(opts *TransferOptions) error
type Password ¶
type Password string
func (Password) ApplyTo ¶
func (p Password) ApplyTo(opts *TransferOptions) error
type PreserveOwnership ¶
type PreserveOwnership bool
func (PreserveOwnership) ApplyTo ¶
func (p PreserveOwnership) ApplyTo(opts *TransferOptions) error
type RsyncClientImage ¶
type RsyncClientImage string
func (RsyncClientImage) ApplyTo ¶
func (r RsyncClientImage) ApplyTo(opts *TransferOptions) error
type RsyncServerImage ¶
type RsyncServerImage string
func (RsyncServerImage) ApplyTo ¶
func (r RsyncServerImage) ApplyTo(opts *TransferOptions) error
type RsyncTransfer ¶
type RsyncTransfer struct {
// contains filtered or unexported fields
}
func (*RsyncTransfer) CreateClient ¶
func (r *RsyncTransfer) CreateClient(c client.Client) error
func (*RsyncTransfer) CreateServer ¶
func (r *RsyncTransfer) CreateServer(c client.Client) error
func (*RsyncTransfer) Destination ¶
func (r *RsyncTransfer) Destination() *rest.Config
func (*RsyncTransfer) Endpoint ¶
func (r *RsyncTransfer) Endpoint() endpoint.Endpoint
func (*RsyncTransfer) IsServerHealthy ¶
func (r *RsyncTransfer) IsServerHealthy(c client.Client) (bool, error)
func (*RsyncTransfer) PVCs ¶
func (r *RsyncTransfer) PVCs() transfer.PVCPairList
func (*RsyncTransfer) Password ¶
func (r *RsyncTransfer) Password() string
func (*RsyncTransfer) Source ¶
func (r *RsyncTransfer) Source() *rest.Config
func (*RsyncTransfer) Transport ¶
func (r *RsyncTransfer) Transport() transport.Transport
func (*RsyncTransfer) Username ¶
func (r *RsyncTransfer) Username() string
type SourceContainerMutation ¶
func (SourceContainerMutation) ApplyTo ¶
func (s SourceContainerMutation) ApplyTo(opts *TransferOptions) error
type SourcePodSpecMutation ¶
func (*SourcePodSpecMutation) ApplyTo ¶
func (s *SourcePodSpecMutation) ApplyTo(opts *TransferOptions) error
type StandardProgress ¶
type StandardProgress bool
func (StandardProgress) ApplyTo ¶
func (s StandardProgress) ApplyTo(opts *TransferOptions) error
type TransferOption ¶
type TransferOption interface {
ApplyTo(*TransferOptions) error
}
TransferOption knows how to apply a user provided option to a given TransferOptions
func GetRsyncCommandDefaultOptions ¶
func GetRsyncCommandDefaultOptions() []TransferOption
type TransferOptions ¶
type TransferOptions struct { CommandOptions SourcePodMeta transfer.ResourceMetadata DestinationPodMeta transfer.ResourceMetadata SourcePodMutations []meta.PodSpecMutation DestinationPodMutations []meta.PodSpecMutation SourceContainerMutations []meta.ContainerMutation DestContainerMutations []meta.ContainerMutation // contains filtered or unexported fields }
TransferOptions defines customizeable options for Rsync Transfer
func (*TransferOptions) Apply ¶
func (t *TransferOptions) Apply(opts ...TransferOption) error
type Username ¶
type Username string
func (Username) ApplyTo ¶
func (u Username) ApplyTo(opts *TransferOptions) error
type WithDestinationPodLabels ¶
func (WithDestinationPodLabels) ApplyTo ¶
func (w WithDestinationPodLabels) ApplyTo(opts *TransferOptions) error
type WithOwnerReferences ¶
type WithOwnerReferences []metav1.OwnerReference
func (WithOwnerReferences) ApplyTo ¶
func (w WithOwnerReferences) ApplyTo(opts *TransferOptions) error
type WithSourcePodLabels ¶
func (WithSourcePodLabels) ApplyTo ¶
func (w WithSourcePodLabels) ApplyTo(opts *TransferOptions) error
Click to show internal directories.
Click to hide internal directories.