Documentation ¶
Index ¶
- Constants
- type PoolStatus
- func (p *PoolStatus) Build() (*PoolStatus, error)
- func (p *PoolStatus) Execute() ([]byte, error)
- func (p *PoolStatus) GetCommand() string
- func (p *PoolStatus) GetPool() string
- func (p *PoolStatus) SetCommand(Command string)
- func (p *PoolStatus) SetPool(Pool string)
- func (p *PoolStatus) Validate() *PoolStatus
- func (p *PoolStatus) WithCheck(check ...PredicateFunc) *PoolStatus
- func (p *PoolStatus) WithCommand(Command string) *PoolStatus
- func (p *PoolStatus) WithPool(Pool string) *PoolStatus
- type PredicateFunc
Constants ¶
const (
// Operation defines type of zfs operation
Operation = "status"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PoolStatus ¶
type PoolStatus struct { //pool name Pool string // command string Command string // contains filtered or unexported fields }
PoolStatus defines structure for pool 'Status' operation
func NewPoolStatus ¶
func NewPoolStatus() *PoolStatus
NewPoolStatus returns new instance of object PoolStatus
func (*PoolStatus) Build ¶
func (p *PoolStatus) Build() (*PoolStatus, error)
Build returns the PoolStatus object generated by builder
func (*PoolStatus) Execute ¶
func (p *PoolStatus) Execute() ([]byte, error)
Execute is to execute generated PoolStatus object
func (*PoolStatus) GetCommand ¶
func (p *PoolStatus) GetCommand() string
GetCommand method get the Command field of PoolStatus object.
func (*PoolStatus) GetPool ¶
func (p *PoolStatus) GetPool() string
GetPool method get the Pool field of PoolStatus object.
func (*PoolStatus) SetCommand ¶
func (p *PoolStatus) SetCommand(Command string)
SetCommand method set the Command field of PoolStatus object.
func (*PoolStatus) SetPool ¶
func (p *PoolStatus) SetPool(Pool string)
SetPool method set the Pool field of PoolStatus object.
func (*PoolStatus) Validate ¶
func (p *PoolStatus) Validate() *PoolStatus
Validate is to validate generated PoolStatus object by builder
func (*PoolStatus) WithCheck ¶
func (p *PoolStatus) WithCheck(check ...PredicateFunc) *PoolStatus
WithCheck add given check to checks list
func (*PoolStatus) WithCommand ¶
func (p *PoolStatus) WithCommand(Command string) *PoolStatus
WithCommand method fills the Command field of PoolStatus object.
func (*PoolStatus) WithPool ¶
func (p *PoolStatus) WithPool(Pool string) *PoolStatus
WithPool method fills the Pool field of PoolStatus object.
type PredicateFunc ¶
type PredicateFunc func(*PoolStatus) bool
PredicateFunc defines data-type for validation function
func IsCommandSet ¶
func IsCommandSet() PredicateFunc
IsCommandSet method check if the Command field of PoolStatus object is set.
func IsPoolSet ¶
func IsPoolSet() PredicateFunc
IsPoolSet method check if the Pool field of PoolStatus object is set.