Documentation ¶
Index ¶
- Constants
- type PredicateFunc
- type VolumeSnapshotRecv
- func (v *VolumeSnapshotRecv) Build() (*VolumeSnapshotRecv, error)
- func (v *VolumeSnapshotRecv) Execute() ([]byte, error)
- func (v *VolumeSnapshotRecv) GetCommand() string
- func (v *VolumeSnapshotRecv) GetDataset() string
- func (v *VolumeSnapshotRecv) GetDedup() bool
- func (v *VolumeSnapshotRecv) GetDryRun() bool
- func (v *VolumeSnapshotRecv) GetEnableCompression() bool
- func (v *VolumeSnapshotRecv) GetLastSnapshot() string
- func (v *VolumeSnapshotRecv) GetSnapshot() string
- func (v *VolumeSnapshotRecv) GetTarget() string
- func (v *VolumeSnapshotRecv) SetCommand(Command string)
- func (v *VolumeSnapshotRecv) SetDataset(Dataset string)
- func (v *VolumeSnapshotRecv) SetDedup(Dedup bool)
- func (v *VolumeSnapshotRecv) SetDryRun(DryRun bool)
- func (v *VolumeSnapshotRecv) SetEnableCompression(EnableCompression bool)
- func (v *VolumeSnapshotRecv) SetLastSnapshot(LastSnapshot string)
- func (v *VolumeSnapshotRecv) SetSnapshot(Snapshot string)
- func (v *VolumeSnapshotRecv) SetTarget(Target string)
- func (v *VolumeSnapshotRecv) Validate() *VolumeSnapshotRecv
- func (v *VolumeSnapshotRecv) WithCheck(check ...PredicateFunc) *VolumeSnapshotRecv
- func (v *VolumeSnapshotRecv) WithCommand(Command string) *VolumeSnapshotRecv
- func (v *VolumeSnapshotRecv) WithDataset(Dataset string) *VolumeSnapshotRecv
- func (v *VolumeSnapshotRecv) WithDedup(Dedup bool) *VolumeSnapshotRecv
- func (v *VolumeSnapshotRecv) WithDryRun(DryRun bool) *VolumeSnapshotRecv
- func (v *VolumeSnapshotRecv) WithEnableCompression(EnableCompression bool) *VolumeSnapshotRecv
- func (v *VolumeSnapshotRecv) WithLastSnapshot(LastSnapshot string) *VolumeSnapshotRecv
- func (v *VolumeSnapshotRecv) WithSnapshot(Snapshot string) *VolumeSnapshotRecv
- func (v *VolumeSnapshotRecv) WithTarget(Target string) *VolumeSnapshotRecv
Constants ¶
const (
// Operation defines type of zfs operation
Operation = "receive"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PredicateFunc ¶
type PredicateFunc func(*VolumeSnapshotRecv) bool
PredicateFunc defines data-type for validation function
func IsCommandSet ¶
func IsCommandSet() PredicateFunc
IsCommandSet method check if the Command field of VolumeSnapshotRecv object is set.
func IsDatasetSet ¶
func IsDatasetSet() PredicateFunc
IsDatasetSet method check if the Dataset field of VolumeSnapshotRecv object is set.
func IsDedupSet ¶
func IsDedupSet() PredicateFunc
IsDedupSet method check if the Dedup field of VolumeSnapshotRecv object is set.
func IsDryRunSet ¶
func IsDryRunSet() PredicateFunc
IsDryRunSet method check if the DryRun field of VolumeSnapshotRecv object is set.
func IsEnableCompressionSet ¶
func IsEnableCompressionSet() PredicateFunc
IsEnableCompressionSet method check if the EnableCompression field of VolumeSnapshotRecv object is set.
func IsLastSnapshotSet ¶
func IsLastSnapshotSet() PredicateFunc
IsLastSnapshotSet method check if the LastSnapshot field of VolumeSnapshotRecv object is set.
func IsSnapshotSet ¶
func IsSnapshotSet() PredicateFunc
IsSnapshotSet method check if the Snapshot field of VolumeSnapshotRecv object is set.
func IsTargetSet ¶
func IsTargetSet() PredicateFunc
IsTargetSet method check if the Target field of VolumeSnapshotRecv object is set.
type VolumeSnapshotRecv ¶
type VolumeSnapshotRecv 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 }
VolumeSnapshotRecv defines structure for volume 'Snapshot' operation
func NewVolumeSnapshotRecv ¶
func NewVolumeSnapshotRecv() *VolumeSnapshotRecv
NewVolumeSnapshotRecv returns new instance of object VolumeSnapshotRecv
func (*VolumeSnapshotRecv) Build ¶
func (v *VolumeSnapshotRecv) Build() (*VolumeSnapshotRecv, error)
Build returns the VolumeSnapshotRecv object generated by builder
func (*VolumeSnapshotRecv) Execute ¶
func (v *VolumeSnapshotRecv) Execute() ([]byte, error)
Execute is to execute generated VolumeSnapshotRecv object
func (*VolumeSnapshotRecv) GetCommand ¶
func (v *VolumeSnapshotRecv) GetCommand() string
GetCommand method get the Command field of VolumeSnapshotRecv object.
func (*VolumeSnapshotRecv) GetDataset ¶
func (v *VolumeSnapshotRecv) GetDataset() string
GetDataset method get the Dataset field of VolumeSnapshotRecv object.
func (*VolumeSnapshotRecv) GetDedup ¶
func (v *VolumeSnapshotRecv) GetDedup() bool
GetDedup method get the Dedup field of VolumeSnapshotRecv object.
func (*VolumeSnapshotRecv) GetDryRun ¶
func (v *VolumeSnapshotRecv) GetDryRun() bool
GetDryRun method get the DryRun field of VolumeSnapshotRecv object.
func (*VolumeSnapshotRecv) GetEnableCompression ¶
func (v *VolumeSnapshotRecv) GetEnableCompression() bool
GetEnableCompression method get the EnableCompression field of VolumeSnapshotRecv object.
func (*VolumeSnapshotRecv) GetLastSnapshot ¶
func (v *VolumeSnapshotRecv) GetLastSnapshot() string
GetLastSnapshot method get the LastSnapshot field of VolumeSnapshotRecv object.
func (*VolumeSnapshotRecv) GetSnapshot ¶
func (v *VolumeSnapshotRecv) GetSnapshot() string
GetSnapshot method get the Snapshot field of VolumeSnapshotRecv object.
func (*VolumeSnapshotRecv) GetTarget ¶
func (v *VolumeSnapshotRecv) GetTarget() string
GetTarget method get the Target field of VolumeSnapshotRecv object.
func (*VolumeSnapshotRecv) SetCommand ¶
func (v *VolumeSnapshotRecv) SetCommand(Command string)
SetCommand method set the Command field of VolumeSnapshotRecv object.
func (*VolumeSnapshotRecv) SetDataset ¶
func (v *VolumeSnapshotRecv) SetDataset(Dataset string)
SetDataset method set the Dataset field of VolumeSnapshotRecv object.
func (*VolumeSnapshotRecv) SetDedup ¶
func (v *VolumeSnapshotRecv) SetDedup(Dedup bool)
SetDedup method set the Dedup field of VolumeSnapshotRecv object.
func (*VolumeSnapshotRecv) SetDryRun ¶
func (v *VolumeSnapshotRecv) SetDryRun(DryRun bool)
SetDryRun method set the DryRun field of VolumeSnapshotRecv object.
func (*VolumeSnapshotRecv) SetEnableCompression ¶
func (v *VolumeSnapshotRecv) SetEnableCompression(EnableCompression bool)
SetEnableCompression method set the EnableCompression field of VolumeSnapshotRecv object.
func (*VolumeSnapshotRecv) SetLastSnapshot ¶
func (v *VolumeSnapshotRecv) SetLastSnapshot(LastSnapshot string)
SetLastSnapshot method set the LastSnapshot field of VolumeSnapshotRecv object.
func (*VolumeSnapshotRecv) SetSnapshot ¶
func (v *VolumeSnapshotRecv) SetSnapshot(Snapshot string)
SetSnapshot method set the Snapshot field of VolumeSnapshotRecv object.
func (*VolumeSnapshotRecv) SetTarget ¶
func (v *VolumeSnapshotRecv) SetTarget(Target string)
SetTarget method set the Target field of VolumeSnapshotRecv object.
func (*VolumeSnapshotRecv) Validate ¶
func (v *VolumeSnapshotRecv) Validate() *VolumeSnapshotRecv
Validate is to validate generated VolumeSnapshotRecv object by builder
func (*VolumeSnapshotRecv) WithCheck ¶
func (v *VolumeSnapshotRecv) WithCheck(check ...PredicateFunc) *VolumeSnapshotRecv
WithCheck add given check to checks list
func (*VolumeSnapshotRecv) WithCommand ¶
func (v *VolumeSnapshotRecv) WithCommand(Command string) *VolumeSnapshotRecv
WithCommand method fills the Command field of VolumeSnapshotRecv object.
func (*VolumeSnapshotRecv) WithDataset ¶
func (v *VolumeSnapshotRecv) WithDataset(Dataset string) *VolumeSnapshotRecv
WithDataset method fills the Dataset field of VolumeSnapshotRecv object.
func (*VolumeSnapshotRecv) WithDedup ¶
func (v *VolumeSnapshotRecv) WithDedup(Dedup bool) *VolumeSnapshotRecv
WithDedup method fills the Dedup field of VolumeSnapshotRecv object.
func (*VolumeSnapshotRecv) WithDryRun ¶
func (v *VolumeSnapshotRecv) WithDryRun(DryRun bool) *VolumeSnapshotRecv
WithDryRun method fills the DryRun field of VolumeSnapshotRecv object.
func (*VolumeSnapshotRecv) WithEnableCompression ¶
func (v *VolumeSnapshotRecv) WithEnableCompression(EnableCompression bool) *VolumeSnapshotRecv
WithEnableCompression method fills the EnableCompression field of VolumeSnapshotRecv object.
func (*VolumeSnapshotRecv) WithLastSnapshot ¶
func (v *VolumeSnapshotRecv) WithLastSnapshot(LastSnapshot string) *VolumeSnapshotRecv
WithLastSnapshot method fills the LastSnapshot field of VolumeSnapshotRecv object.
func (*VolumeSnapshotRecv) WithSnapshot ¶
func (v *VolumeSnapshotRecv) WithSnapshot(Snapshot string) *VolumeSnapshotRecv
WithSnapshot method fills the Snapshot field of VolumeSnapshotRecv object.
func (*VolumeSnapshotRecv) WithTarget ¶
func (v *VolumeSnapshotRecv) WithTarget(Target string) *VolumeSnapshotRecv
WithTarget method fills the Target field of VolumeSnapshotRecv object.