vsnapshotsend

package
v1.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2020 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL