plabelclear

package
v0.0.0-...-a88c85e Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

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

Jump to

Keyboard shortcuts

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