pstatus

package
v1.12.0-RC2 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Operation defines type of zfs operation
	Operation = "dump"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PoolDump

type PoolDump struct {
	//pool name
	Pool string

	// command string
	Command string

	// StripVdevPath to stip partition path if whole disk is used for pool
	StripVdevPath bool

	// Executor is to execute the commands
	Executor bin.Executor
	// contains filtered or unexported fields
}

PoolDump defines structure for pool 'Status' operation

func NewPoolDump

func NewPoolDump() *PoolDump

NewPoolDump returns new instance of object PoolDump

func (*PoolDump) Build

func (p *PoolDump) Build() (*PoolDump, error)

Build returns the PoolDump object generated by builder

func (*PoolDump) Execute

func (p *PoolDump) Execute() (vdump.Topology, error)

Execute is to execute generated PoolDump object

func (*PoolDump) GetCommand

func (p *PoolDump) GetCommand() string

GetCommand method get the Command field of PoolDump object.

func (*PoolDump) GetPool

func (p *PoolDump) GetPool() string

GetPool method get the Pool field of PoolDump object.

func (*PoolDump) SetCommand

func (p *PoolDump) SetCommand(Command string)

SetCommand method set the Command field of PoolDump object.

func (*PoolDump) SetPool

func (p *PoolDump) SetPool(Pool string)

SetPool method set the Pool field of PoolDump object.

func (*PoolDump) Validate

func (p *PoolDump) Validate() *PoolDump

Validate is to validate generated PoolDump object by builder

func (*PoolDump) WithCheck

func (p *PoolDump) WithCheck(check ...PredicateFunc) *PoolDump

WithCheck add given check to checks list

func (*PoolDump) WithCommand

func (p *PoolDump) WithCommand(Command string) *PoolDump

WithCommand method fills the Command field of PoolDump object.

func (*PoolDump) WithExecutor added in v1.11.0

func (p *PoolDump) WithExecutor(executor bin.Executor) *PoolDump

WithExecutor method fills the Executor field of PoolDump object.

func (*PoolDump) WithPool

func (p *PoolDump) WithPool(Pool string) *PoolDump

WithPool method fills the Pool field of PoolDump object.

func (*PoolDump) WithStripVdevPath

func (p *PoolDump) WithStripVdevPath() *PoolDump

WithStripVdevPath method will set StripVdevPath for PoolDump object

type PredicateFunc

type PredicateFunc func(*PoolDump) bool

PredicateFunc defines data-type for validation function

func IsCommandSet

func IsCommandSet() PredicateFunc

IsCommandSet method check if the Command field of PoolDump object is set.

func IsExecutorSet added in v1.11.0

func IsExecutorSet() PredicateFunc

IsExecutorSet method check if the Executor field of PoolDump object is set.

func IsPoolSet

func IsPoolSet() PredicateFunc

IsPoolSet method check if the Pool field of PoolDump object is set.

Jump to

Keyboard shortcuts

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