Documentation ¶
Index ¶
- Constants
- type PredicateFunc
- type SnapshotList
- type VolumeListSnapshot
- func (v *VolumeListSnapshot) Build() (*VolumeListSnapshot, error)
- func (v *VolumeListSnapshot) Execute() (SnapshotList, error)
- func (v *VolumeListSnapshot) Validate() *VolumeListSnapshot
- func (v *VolumeListSnapshot) WithCheck(check ...PredicateFunc) *VolumeListSnapshot
- func (v *VolumeListSnapshot) WithDataset(Dataset string) *VolumeListSnapshot
Constants ¶
View Source
const (
// Operation defines type of zfs operation
Operation = "listsnap"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PredicateFunc ¶
type PredicateFunc func(*VolumeListSnapshot) bool
PredicateFunc defines data-type for validation function
func IsDatasetSet ¶
func IsDatasetSet() PredicateFunc
IsDatasetSet method check if the Dataset field of VolumeListSnapshot object is set.
type SnapshotList ¶
SnapshotList is used to convert json format into go structure
type VolumeListSnapshot ¶
type VolumeListSnapshot struct { //name of dataset on which snapshot should be taken Dataset string // Command command needs to be executed Command string // contains filtered or unexported fields }
func NewVolumeListSnapshot ¶
func NewVolumeListSnapshot() *VolumeListSnapshot
NewVolumeListSnapshot initilize the VolumeListSnapshot
func (*VolumeListSnapshot) Build ¶
func (v *VolumeListSnapshot) Build() (*VolumeListSnapshot, error)
Build returns the VolumeListSnapshot object generated by builder
func (*VolumeListSnapshot) Execute ¶
func (v *VolumeListSnapshot) Execute() (SnapshotList, error)
Execute is to execute generated VolumeListSnapshot object
func (*VolumeListSnapshot) Validate ¶
func (v *VolumeListSnapshot) Validate() *VolumeListSnapshot
Validate is to validate generated VolumeListSnapshot object by builder
func (*VolumeListSnapshot) WithCheck ¶
func (v *VolumeListSnapshot) WithCheck(check ...PredicateFunc) *VolumeListSnapshot
WithCheck add given check to checks list
func (*VolumeListSnapshot) WithDataset ¶
func (v *VolumeListSnapshot) WithDataset(Dataset string) *VolumeListSnapshot
WithDataset method fills the Dataset field of VolumeListSnapshot object.
Click to show internal directories.
Click to hide internal directories.