vget

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
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 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
	// 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) 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) 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.

Jump to

Keyboard shortcuts

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