Documentation ¶
Index ¶
- Constants
- type PredicateFunc
- type VolumeSnapshotSend
- func (v *VolumeSnapshotSend) Build() (*VolumeSnapshotSend, error)
- func (v *VolumeSnapshotSend) Execute() ([]byte, error)
- func (v *VolumeSnapshotSend) GetCommand() string
- func (v *VolumeSnapshotSend) GetDataset() string
- func (v *VolumeSnapshotSend) GetDedup() bool
- func (v *VolumeSnapshotSend) GetDryRun() bool
- func (v *VolumeSnapshotSend) GetEnableCompression() bool
- func (v *VolumeSnapshotSend) GetLastSnapshot() string
- func (v *VolumeSnapshotSend) GetSnapshot() string
- func (v *VolumeSnapshotSend) GetTarget() string
- func (v *VolumeSnapshotSend) SetCommand(Command string)
- func (v *VolumeSnapshotSend) SetDataset(Dataset string)
- func (v *VolumeSnapshotSend) SetDedup(Dedup bool)
- func (v *VolumeSnapshotSend) SetDryRun(DryRun bool)
- func (v *VolumeSnapshotSend) SetEnableCompression(EnableCompression bool)
- func (v *VolumeSnapshotSend) SetLastSnapshot(LastSnapshot string)
- func (v *VolumeSnapshotSend) SetSnapshot(Snapshot string)
- func (v *VolumeSnapshotSend) SetTarget(Target string)
- func (v *VolumeSnapshotSend) Validate() *VolumeSnapshotSend
- func (v *VolumeSnapshotSend) WithCheck(check ...PredicateFunc) *VolumeSnapshotSend
- func (v *VolumeSnapshotSend) WithCommand(Command string) *VolumeSnapshotSend
- func (v *VolumeSnapshotSend) WithDataset(Dataset string) *VolumeSnapshotSend
- func (v *VolumeSnapshotSend) WithDedup(Dedup bool) *VolumeSnapshotSend
- func (v *VolumeSnapshotSend) WithDryRun(DryRun bool) *VolumeSnapshotSend
- func (v *VolumeSnapshotSend) WithEnableCompression(EnableCompression bool) *VolumeSnapshotSend
- func (v *VolumeSnapshotSend) WithLastSnapshot(LastSnapshot string) *VolumeSnapshotSend
- func (v *VolumeSnapshotSend) WithSnapshot(Snapshot string) *VolumeSnapshotSend
- func (v *VolumeSnapshotSend) WithTarget(Target string) *VolumeSnapshotSend
Constants ¶
const (
// Operation defines type of zfs operation
Operation = "send"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PredicateFunc ¶
type PredicateFunc func(*VolumeSnapshotSend) bool
PredicateFunc defines data-type for validation function
func IsCommandSet ¶
func IsCommandSet() PredicateFunc
IsCommandSet method check if the Command field of VolumeSnapshotSend object is set.
func IsDatasetSet ¶
func IsDatasetSet() PredicateFunc
IsDatasetSet method check if the Dataset field of VolumeSnapshotSend object is set.
func IsDedupSet ¶
func IsDedupSet() PredicateFunc
IsDedupSet method check if the Dedup field of VolumeSnapshotSend object is set.
func IsDryRunSet ¶
func IsDryRunSet() PredicateFunc
IsDryRunSet method check if the DryRun field of VolumeSnapshotSend object is set.
func IsEnableCompressionSet ¶
func IsEnableCompressionSet() PredicateFunc
IsEnableCompressionSet method check if the EnableCompression field of VolumeSnapshotSend object is set.
func IsLastSnapshotSet ¶
func IsLastSnapshotSet() PredicateFunc
IsLastSnapshotSet method check if the LastSnapshot field of VolumeSnapshotSend object is set.
func IsSnapshotSet ¶
func IsSnapshotSet() PredicateFunc
IsSnapshotSet method check if the Snapshot field of VolumeSnapshotSend object is set.
func IsTargetSet ¶
func IsTargetSet() PredicateFunc
IsTargetSet method check if the Target field of VolumeSnapshotSend object is set.
type VolumeSnapshotSend ¶
type VolumeSnapshotSend struct { //name of snapshot Snapshot string //name of dataset on which snapshot should be taken Dataset string //remote destination for snapshot send/recv using nc Target string // to send incremental snapshot LastSnapshot string // Generate a deduplicated stream Dedup bool // dry-run DryRun bool // use compression for zfs send EnableCompression bool // command string Command string // contains filtered or unexported fields }
VolumeSnapshotSend defines structure for volume 'Snapshot' operation
func NewVolumeSnapshotSend ¶
func NewVolumeSnapshotSend() *VolumeSnapshotSend
NewVolumeSnapshotSend returns new instance of object VolumeSnapshotSend
func (*VolumeSnapshotSend) Build ¶
func (v *VolumeSnapshotSend) Build() (*VolumeSnapshotSend, error)
Build returns the VolumeSnapshotSend object generated by builder
func (*VolumeSnapshotSend) Execute ¶
func (v *VolumeSnapshotSend) Execute() ([]byte, error)
Execute is to execute generated VolumeSnapshotSend object
func (*VolumeSnapshotSend) GetCommand ¶
func (v *VolumeSnapshotSend) GetCommand() string
GetCommand method get the Command field of VolumeSnapshotSend object.
func (*VolumeSnapshotSend) GetDataset ¶
func (v *VolumeSnapshotSend) GetDataset() string
GetDataset method get the Dataset field of VolumeSnapshotSend object.
func (*VolumeSnapshotSend) GetDedup ¶
func (v *VolumeSnapshotSend) GetDedup() bool
GetDedup method get the Dedup field of VolumeSnapshotSend object.
func (*VolumeSnapshotSend) GetDryRun ¶
func (v *VolumeSnapshotSend) GetDryRun() bool
GetDryRun method get the DryRun field of VolumeSnapshotSend object.
func (*VolumeSnapshotSend) GetEnableCompression ¶
func (v *VolumeSnapshotSend) GetEnableCompression() bool
GetEnableCompression method get the EnableCompression field of VolumeSnapshotSend object.
func (*VolumeSnapshotSend) GetLastSnapshot ¶
func (v *VolumeSnapshotSend) GetLastSnapshot() string
GetLastSnapshot method get the LastSnapshot field of VolumeSnapshotSend object.
func (*VolumeSnapshotSend) GetSnapshot ¶
func (v *VolumeSnapshotSend) GetSnapshot() string
GetSnapshot method get the Snapshot field of VolumeSnapshotSend object.
func (*VolumeSnapshotSend) GetTarget ¶
func (v *VolumeSnapshotSend) GetTarget() string
GetTarget method get the Target field of VolumeSnapshotSend object.
func (*VolumeSnapshotSend) SetCommand ¶
func (v *VolumeSnapshotSend) SetCommand(Command string)
SetCommand method set the Command field of VolumeSnapshotSend object.
func (*VolumeSnapshotSend) SetDataset ¶
func (v *VolumeSnapshotSend) SetDataset(Dataset string)
SetDataset method set the Dataset field of VolumeSnapshotSend object.
func (*VolumeSnapshotSend) SetDedup ¶
func (v *VolumeSnapshotSend) SetDedup(Dedup bool)
SetDedup method set the Dedup field of VolumeSnapshotSend object.
func (*VolumeSnapshotSend) SetDryRun ¶
func (v *VolumeSnapshotSend) SetDryRun(DryRun bool)
SetDryRun method set the DryRun field of VolumeSnapshotSend object.
func (*VolumeSnapshotSend) SetEnableCompression ¶
func (v *VolumeSnapshotSend) SetEnableCompression(EnableCompression bool)
SetEnableCompression method set the EnableCompression field of VolumeSnapshotSend object.
func (*VolumeSnapshotSend) SetLastSnapshot ¶
func (v *VolumeSnapshotSend) SetLastSnapshot(LastSnapshot string)
SetLastSnapshot method set the LastSnapshot field of VolumeSnapshotSend object.
func (*VolumeSnapshotSend) SetSnapshot ¶
func (v *VolumeSnapshotSend) SetSnapshot(Snapshot string)
SetSnapshot method set the Snapshot field of VolumeSnapshotSend object.
func (*VolumeSnapshotSend) SetTarget ¶
func (v *VolumeSnapshotSend) SetTarget(Target string)
SetTarget method set the Target field of VolumeSnapshotSend object.
func (*VolumeSnapshotSend) Validate ¶
func (v *VolumeSnapshotSend) Validate() *VolumeSnapshotSend
Validate is to validate generated VolumeSnapshotSend object by builder
func (*VolumeSnapshotSend) WithCheck ¶
func (v *VolumeSnapshotSend) WithCheck(check ...PredicateFunc) *VolumeSnapshotSend
WithCheck add given check to checks list
func (*VolumeSnapshotSend) WithCommand ¶
func (v *VolumeSnapshotSend) WithCommand(Command string) *VolumeSnapshotSend
WithCommand method fills the Command field of VolumeSnapshotSend object.
func (*VolumeSnapshotSend) WithDataset ¶
func (v *VolumeSnapshotSend) WithDataset(Dataset string) *VolumeSnapshotSend
WithDataset method fills the Dataset field of VolumeSnapshotSend object.
func (*VolumeSnapshotSend) WithDedup ¶
func (v *VolumeSnapshotSend) WithDedup(Dedup bool) *VolumeSnapshotSend
WithDedup method fills the Dedup field of VolumeSnapshotSend object.
func (*VolumeSnapshotSend) WithDryRun ¶
func (v *VolumeSnapshotSend) WithDryRun(DryRun bool) *VolumeSnapshotSend
WithDryRun method fills the DryRun field of VolumeSnapshotSend object.
func (*VolumeSnapshotSend) WithEnableCompression ¶
func (v *VolumeSnapshotSend) WithEnableCompression(EnableCompression bool) *VolumeSnapshotSend
WithEnableCompression method fills the EnableCompression field of VolumeSnapshotSend object.
func (*VolumeSnapshotSend) WithLastSnapshot ¶
func (v *VolumeSnapshotSend) WithLastSnapshot(LastSnapshot string) *VolumeSnapshotSend
WithLastSnapshot method fills the LastSnapshot field of VolumeSnapshotSend object.
func (*VolumeSnapshotSend) WithSnapshot ¶
func (v *VolumeSnapshotSend) WithSnapshot(Snapshot string) *VolumeSnapshotSend
WithSnapshot method fills the Snapshot field of VolumeSnapshotSend object.
func (*VolumeSnapshotSend) WithTarget ¶
func (v *VolumeSnapshotSend) WithTarget(Target string) *VolumeSnapshotSend
WithTarget method fills the Target field of VolumeSnapshotSend object.