Documentation ¶
Index ¶
- Constants
- type PoolLabelClear
- func (p *PoolLabelClear) Build() (*PoolLabelClear, error)
- func (p *PoolLabelClear) Execute() ([]byte, error)
- func (p *PoolLabelClear) SetCommand(Command string)
- func (p *PoolLabelClear) SetForcefully(Forcefully bool)
- func (p *PoolLabelClear) SetVdev(Vdev string)
- func (p *PoolLabelClear) Validate() *PoolLabelClear
- func (p *PoolLabelClear) WithCheck(check ...PredicateFunc) *PoolLabelClear
- func (p *PoolLabelClear) WithCommand(Command string) *PoolLabelClear
- func (p *PoolLabelClear) WithExecutor(executor bin.Executor) *PoolLabelClear
- func (p *PoolLabelClear) WithForceFully(Forcefully bool) *PoolLabelClear
- func (p *PoolLabelClear) WithVdev(vdev string) *PoolLabelClear
- type PredicateFunc
Constants ¶
const (
// Operation defines type of zfs operation
Operation = "labelclear"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PoolLabelClear ¶
type PoolLabelClear struct { // vdev Vdev string // Forcefully Forcefully bool // command string Command string // Executor is to execute the commands Executor bin.Executor // contains filtered or unexported fields }
PoolLabelClear defines structure for pool 'Clear' operation
func NewPoolLabelClear ¶
func NewPoolLabelClear() *PoolLabelClear
NewPoolLabelClear returns new instance of object PoolLabelClear
func (*PoolLabelClear) Build ¶
func (p *PoolLabelClear) Build() (*PoolLabelClear, error)
Build returns the PoolLabelClear object generated by builder
func (*PoolLabelClear) Execute ¶
func (p *PoolLabelClear) Execute() ([]byte, error)
Execute is to execute generated PoolLabelClear object
func (*PoolLabelClear) SetCommand ¶
func (p *PoolLabelClear) SetCommand(Command string)
SetCommand method set the Command field of PoolLabelClear object.
func (*PoolLabelClear) SetForcefully ¶
func (p *PoolLabelClear) SetForcefully(Forcefully bool)
SetForcefully method set the Forcefully field of PoolLabelClear object.
func (*PoolLabelClear) SetVdev ¶
func (p *PoolLabelClear) SetVdev(Vdev string)
SetVdev method set the Vdev field of PoolLabelClear object.
func (*PoolLabelClear) Validate ¶
func (p *PoolLabelClear) Validate() *PoolLabelClear
Validate is to validate generated PoolLabelClear object by builder
func (*PoolLabelClear) WithCheck ¶
func (p *PoolLabelClear) WithCheck(check ...PredicateFunc) *PoolLabelClear
WithCheck add given check to checks list
func (*PoolLabelClear) WithCommand ¶
func (p *PoolLabelClear) WithCommand(Command string) *PoolLabelClear
WithCommand method fills the Command field of PoolLabelClear object.
func (*PoolLabelClear) WithExecutor ¶ added in v1.11.0
func (p *PoolLabelClear) WithExecutor(executor bin.Executor) *PoolLabelClear
WithExecutor method fills the Vdev field of PoolLabelClear object.
func (*PoolLabelClear) WithForceFully ¶
func (p *PoolLabelClear) WithForceFully(Forcefully bool) *PoolLabelClear
WithForceFully method fills the ForceFully field of PoolLabelClear object.
func (*PoolLabelClear) WithVdev ¶
func (p *PoolLabelClear) WithVdev(vdev string) *PoolLabelClear
WithVdev method fills the Vdev field of PoolLabelClear object.
type PredicateFunc ¶
type PredicateFunc func(*PoolLabelClear) bool
PredicateFunc defines data-type for validation function
func IsCommandSet ¶
func IsCommandSet() PredicateFunc
IsCommandSet method check if the Command field of PoolLabelClear object is set.
func IsExecutorSet ¶ added in v1.11.0
func IsExecutorSet() PredicateFunc
IsExecutorSet method check if the Executor field of PoolLabelClear object is set.
func IsForcefullySet ¶
func IsForcefullySet() PredicateFunc
IsForcefullySet method check if the Forcefully field of PoolLabelClear object is set.
func IsVdevSet ¶
func IsVdevSet() PredicateFunc
IsVdevSet method check if the Vdev field of PoolLabelClear object is set.