Documentation ¶
Index ¶
- Constants
- type PoolDump
- func (p *PoolDump) Build() (*PoolDump, error)
- func (p *PoolDump) Execute() (vdump.Topology, error)
- func (p *PoolDump) GetCommand() string
- func (p *PoolDump) GetPool() string
- func (p *PoolDump) SetCommand(Command string)
- func (p *PoolDump) SetPool(Pool string)
- func (p *PoolDump) Validate() *PoolDump
- func (p *PoolDump) WithCheck(check ...PredicateFunc) *PoolDump
- func (p *PoolDump) WithCommand(Command string) *PoolDump
- func (p *PoolDump) WithPool(Pool string) *PoolDump
- func (p *PoolDump) WithStripVdevPath() *PoolDump
- type PredicateFunc
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 // contains filtered or unexported fields }
PoolDump defines structure for pool 'Status' operation
func (*PoolDump) GetCommand ¶
GetCommand method get the Command field of PoolDump object.
func (*PoolDump) SetCommand ¶
SetCommand method set the Command field of PoolDump object.
func (*PoolDump) WithCheck ¶
func (p *PoolDump) WithCheck(check ...PredicateFunc) *PoolDump
WithCheck add given check to checks list
func (*PoolDump) WithCommand ¶
WithCommand method fills the Command field of PoolDump object.
func (*PoolDump) WithStripVdevPath ¶
WithStripVdevPath method will set StripVdevPath for PoolDump object
type PredicateFunc ¶
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 IsPoolSet ¶
func IsPoolSet() PredicateFunc
IsPoolSet method check if the Pool field of PoolDump object is set.
Click to show internal directories.
Click to hide internal directories.