Documentation ¶
Index ¶
- Constants
- type PredicateFunc
- type VolumeGetProperty
- func (v *VolumeGetProperty) Build() (*VolumeGetProperty, error)
- func (v *VolumeGetProperty) Execute() ([]byte, error)
- func (v *VolumeGetProperty) GetCommand() string
- func (v *VolumeGetProperty) GetDataset() string
- func (v *VolumeGetProperty) GetProplist() []string
- func (v *VolumeGetProperty) GetSnapshot() string
- func (v *VolumeGetProperty) SetCommand(Command string)
- func (v *VolumeGetProperty) SetDataset(Dataset string)
- func (v *VolumeGetProperty) SetProperty(key, value string)
- func (v *VolumeGetProperty) SetSnapshot(Snapshot string)
- func (v *VolumeGetProperty) Validate() *VolumeGetProperty
- func (v *VolumeGetProperty) WithCheck(check ...PredicateFunc) *VolumeGetProperty
- func (v *VolumeGetProperty) WithCommand(Command string) *VolumeGetProperty
- func (v *VolumeGetProperty) WithDataset(Dataset string) *VolumeGetProperty
- func (v *VolumeGetProperty) WithExecutor(executor bin.Executor) *VolumeGetProperty
- func (v *VolumeGetProperty) WithField(Field string) *VolumeGetProperty
- func (v *VolumeGetProperty) WithParsableMode(IsParsableMode bool) *VolumeGetProperty
- func (v *VolumeGetProperty) WithProperty(key string) *VolumeGetProperty
- func (v *VolumeGetProperty) WithPropertyList(keys []string) *VolumeGetProperty
- func (v *VolumeGetProperty) WithScriptedMode(IsScriptedMode bool) *VolumeGetProperty
- func (v *VolumeGetProperty) WithSnapshot(Snapshot string) *VolumeGetProperty
Constants ¶
const (
// Operation defines type of zfs operation
Operation = "get"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PredicateFunc ¶
type PredicateFunc func(*VolumeGetProperty) bool
PredicateFunc defines data-type for validation function
func IsCommandSet ¶
func IsCommandSet() PredicateFunc
IsCommandSet method check if the Command field of VolumeGetProperty object is set.
func IsDatasetSet ¶
func IsDatasetSet() PredicateFunc
IsDatasetSet method check if the Dataset field of VolumeGetProperty object is set.
func IsExecutorSet ¶ added in v1.11.0
func IsExecutorSet() PredicateFunc
IsExecutorSet method check if the Executor field of VolumeGetProperty object is set.
func IsFieldListSet ¶
func IsFieldListSet() PredicateFunc
IsFieldListSet method check if the FieldList field of VolumeGetProperty object is set.
func IsParsableModeSet ¶
func IsParsableModeSet() PredicateFunc
IsParsableModeSet method check if the IsParsableMode field of VolumeGetProperty object is set.
func IsProplistSet ¶
func IsProplistSet() PredicateFunc
IsProplistSet method check if the Proplist field of VolumeGetProperty object is set.
func IsScriptedModeSet ¶
func IsScriptedModeSet() PredicateFunc
IsScriptedModeSet method check if the IsScriptedMode field of VolumeGetProperty object is set.
func IsSnapshotSet ¶
func IsSnapshotSet() PredicateFunc
IsSnapshotSet method check if the Snapshot field of VolumeGetProperty object is set.
type VolumeGetProperty ¶
type VolumeGetProperty struct { //list of property Proplist []string //dataset name Dataset string // scripted mode. Will not display headers, and separate fields by a single tab instead of arbitrary space IsScriptedMode bool // Display numbers in parsable (exact) values IsParsableMode bool // Field list to display FieldList []string //snapshot name Snapshot string //command for this structure Command string // Executor is to execute the commands Executor bin.Executor // contains filtered or unexported fields }
VolumeGetProperty defines structure for volume 'Property' operation
func NewVolumeGetProperty ¶
func NewVolumeGetProperty() *VolumeGetProperty
NewVolumeGetProperty returns new instance of object VolumeGetProperty
func (*VolumeGetProperty) Build ¶
func (v *VolumeGetProperty) Build() (*VolumeGetProperty, error)
Build returns the VolumeGetProperty object generated by builder
func (*VolumeGetProperty) Execute ¶
func (v *VolumeGetProperty) Execute() ([]byte, error)
Execute is to execute generated VolumeGetProperty object
func (*VolumeGetProperty) GetCommand ¶
func (v *VolumeGetProperty) GetCommand() string
GetCommand method get the Command field of VolumeGetProperty object.
func (*VolumeGetProperty) GetDataset ¶
func (v *VolumeGetProperty) GetDataset() string
GetDataset method get the Dataset field of VolumeGetProperty object.
func (*VolumeGetProperty) GetProplist ¶
func (v *VolumeGetProperty) GetProplist() []string
GetProplist method get the Proplist field of VolumeGetProperty object.
func (*VolumeGetProperty) GetSnapshot ¶
func (v *VolumeGetProperty) GetSnapshot() string
GetSnapshot method get the Snapshot field of VolumeGetProperty object.
func (*VolumeGetProperty) SetCommand ¶
func (v *VolumeGetProperty) SetCommand(Command string)
SetCommand method set the Command field of VolumeGetProperty object.
func (*VolumeGetProperty) SetDataset ¶
func (v *VolumeGetProperty) SetDataset(Dataset string)
SetDataset method set the Dataset field of VolumeGetProperty object.
func (*VolumeGetProperty) SetProperty ¶
func (v *VolumeGetProperty) SetProperty(key, value string)
SetProperty method append the property to Proplist field of VolumeGetProperty object.
func (*VolumeGetProperty) SetSnapshot ¶
func (v *VolumeGetProperty) SetSnapshot(Snapshot string)
SetSnapshot method set the Snapshot field of VolumeGetProperty object.
func (*VolumeGetProperty) Validate ¶
func (v *VolumeGetProperty) Validate() *VolumeGetProperty
Validate is to validate generated VolumeGetProperty object by builder
func (*VolumeGetProperty) WithCheck ¶
func (v *VolumeGetProperty) WithCheck(check ...PredicateFunc) *VolumeGetProperty
WithCheck add given check to checks list
func (*VolumeGetProperty) WithCommand ¶
func (v *VolumeGetProperty) WithCommand(Command string) *VolumeGetProperty
WithCommand method fills the Command field of VolumeGetProperty object.
func (*VolumeGetProperty) WithDataset ¶
func (v *VolumeGetProperty) WithDataset(Dataset string) *VolumeGetProperty
WithDataset method fills the Dataset field of VolumeGetProperty object.
func (*VolumeGetProperty) WithExecutor ¶ added in v1.11.0
func (v *VolumeGetProperty) WithExecutor(executor bin.Executor) *VolumeGetProperty
WithExecutor method fills the Executor field of VolumeGetProperty object.
func (*VolumeGetProperty) WithField ¶
func (v *VolumeGetProperty) WithField(Field string) *VolumeGetProperty
WithField method fills the FieldList field of VolumeGetProperty object.
func (*VolumeGetProperty) WithParsableMode ¶
func (v *VolumeGetProperty) WithParsableMode(IsParsableMode bool) *VolumeGetProperty
WithParsableMode method update the IsParsableMode field of VolumeGetProperty object.
func (*VolumeGetProperty) WithProperty ¶
func (v *VolumeGetProperty) WithProperty(key string) *VolumeGetProperty
WithProperty method fills the Proplist field of VolumeGetProperty object.
func (*VolumeGetProperty) WithPropertyList ¶ added in v1.11.0
func (v *VolumeGetProperty) WithPropertyList(keys []string) *VolumeGetProperty
WithPropertyList method fills the PropList field of PoolGProperty object.
func (*VolumeGetProperty) WithScriptedMode ¶
func (v *VolumeGetProperty) WithScriptedMode(IsScriptedMode bool) *VolumeGetProperty
WithScriptedMode method update the IsScriptedMode field of VolumeGetProperty object.
func (*VolumeGetProperty) WithSnapshot ¶
func (v *VolumeGetProperty) WithSnapshot(Snapshot string) *VolumeGetProperty
WithSnapshot method fills the Snapshot field of VolumeGetProperty object.