pstatus

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 = "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.

Jump to

Keyboard shortcuts

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