Documentation ¶
Index ¶
- Constants
- type PoolImport
- func (p *PoolImport) Build() (*PoolImport, error)
- func (p *PoolImport) Execute() ([]byte, error)
- func (p *PoolImport) GetCachefile() string
- func (p *PoolImport) GetCommand() string
- func (p *PoolImport) GetDirectorylist() []string
- func (p *PoolImport) GetForceImport() bool
- func (p *PoolImport) GetImportAll() bool
- func (p *PoolImport) GetNewPool() string
- func (p *PoolImport) GetPool() string
- func (p *PoolImport) GetProperty() []string
- func (p *PoolImport) SetCachefile(Cachefile string)
- func (p *PoolImport) SetCommand(Command string)
- func (p *PoolImport) SetDirectorylist(dir string)
- func (p *PoolImport) SetForceImport(ForceImport bool)
- func (p *PoolImport) SetImportAll(ImportAll bool)
- func (p *PoolImport) SetNewPool(NewPool string)
- func (p *PoolImport) SetPool(Pool string)
- func (p *PoolImport) SetProperty(key, value string)
- func (p *PoolImport) Validate() *PoolImport
- func (p *PoolImport) WithCachefile(Cachefile string) *PoolImport
- func (p *PoolImport) WithCheck(check ...PredicateFunc) *PoolImport
- func (p *PoolImport) WithCommand(Command string) *PoolImport
- func (p *PoolImport) WithDirectory(dir string) *PoolImport
- func (p *PoolImport) WithForceImport(ForceImport bool) *PoolImport
- func (p *PoolImport) WithImportAll(ImportAll bool) *PoolImport
- func (p *PoolImport) WithNewPool(NewPool string) *PoolImport
- func (p *PoolImport) WithPool(Pool string) *PoolImport
- func (p *PoolImport) WithProperty(key, value string) *PoolImport
- type PredicateFunc
Constants ¶
const (
// Operation defines type of zfs operation
Operation = "import"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PoolImport ¶
type PoolImport struct { //cachefile to do import Cachefile string //directory to search Directorylist []string //import all pools ImportAll bool //force import ForceImport bool //property list Property []string //pool name or id Pool string //new pool name NewPool string // command string Command string // contains filtered or unexported fields }
PoolImport defines structure for pool 'Import' operation
func NewPoolImport ¶
func NewPoolImport() *PoolImport
NewPoolImport returns new instance of object PoolImport
func (*PoolImport) Build ¶
func (p *PoolImport) Build() (*PoolImport, error)
Build returns the PoolImport object generated by builder
func (*PoolImport) Execute ¶
func (p *PoolImport) Execute() ([]byte, error)
Execute is to execute generated PoolImport object
func (*PoolImport) GetCachefile ¶
func (p *PoolImport) GetCachefile() string
GetCachefile method get the Cachefile field of PoolImport object.
func (*PoolImport) GetCommand ¶
func (p *PoolImport) GetCommand() string
GetCommand method get the Command field of PoolImport object.
func (*PoolImport) GetDirectorylist ¶
func (p *PoolImport) GetDirectorylist() []string
GetDirectorylist method get the Directorylist field of PoolImport object.
func (*PoolImport) GetForceImport ¶
func (p *PoolImport) GetForceImport() bool
GetForceImport method get the ForceImport field of PoolImport object.
func (*PoolImport) GetImportAll ¶
func (p *PoolImport) GetImportAll() bool
GetImportAll method get the ImportAll field of PoolImport object.
func (*PoolImport) GetNewPool ¶
func (p *PoolImport) GetNewPool() string
GetNewPool method get the NewPool field of PoolImport object.
func (*PoolImport) GetPool ¶
func (p *PoolImport) GetPool() string
GetPool method get the Pool field of PoolImport object.
func (*PoolImport) GetProperty ¶
func (p *PoolImport) GetProperty() []string
GetProperty method get the Property field of PoolImport object.
func (*PoolImport) SetCachefile ¶
func (p *PoolImport) SetCachefile(Cachefile string)
SetCachefile method set the Cachefile field of PoolImport object.
func (*PoolImport) SetCommand ¶
func (p *PoolImport) SetCommand(Command string)
SetCommand method set the Command field of PoolImport object.
func (*PoolImport) SetDirectorylist ¶
func (p *PoolImport) SetDirectorylist(dir string)
SetDirectorylist method append the directory to Directorylist field of PoolImport object.
func (*PoolImport) SetForceImport ¶
func (p *PoolImport) SetForceImport(ForceImport bool)
SetForceImport method set the ForceImport field of PoolImport object.
func (*PoolImport) SetImportAll ¶
func (p *PoolImport) SetImportAll(ImportAll bool)
SetImportAll method set the ImportAll field of PoolImport object.
func (*PoolImport) SetNewPool ¶
func (p *PoolImport) SetNewPool(NewPool string)
SetNewPool method set the NewPool field of PoolImport object.
func (*PoolImport) SetPool ¶
func (p *PoolImport) SetPool(Pool string)
SetPool method set the Pool field of PoolImport object.
func (*PoolImport) SetProperty ¶
func (p *PoolImport) SetProperty(key, value string)
SetProperty method append the Propertyto field of PoolImport object property.
func (*PoolImport) Validate ¶
func (p *PoolImport) Validate() *PoolImport
Validate is to validate generated PoolImport object by builder
func (*PoolImport) WithCachefile ¶
func (p *PoolImport) WithCachefile(Cachefile string) *PoolImport
WithCachefile method fills the Cachefile field of PoolImport object.
func (*PoolImport) WithCheck ¶
func (p *PoolImport) WithCheck(check ...PredicateFunc) *PoolImport
WithCheck add given check to checks list
func (*PoolImport) WithCommand ¶
func (p *PoolImport) WithCommand(Command string) *PoolImport
WithCommand method fills the Command field of PoolImport object.
func (*PoolImport) WithDirectory ¶
func (p *PoolImport) WithDirectory(dir string) *PoolImport
WithDirectory method fills the Directorylist field of PoolImport object.
func (*PoolImport) WithForceImport ¶
func (p *PoolImport) WithForceImport(ForceImport bool) *PoolImport
WithForceImport method fills the ForceImport field of PoolImport object.
func (*PoolImport) WithImportAll ¶
func (p *PoolImport) WithImportAll(ImportAll bool) *PoolImport
WithImportAll method fills the ImportAll field of PoolImport object.
func (*PoolImport) WithNewPool ¶
func (p *PoolImport) WithNewPool(NewPool string) *PoolImport
WithNewPool method fills the NewPool field of PoolImport object.
func (*PoolImport) WithPool ¶
func (p *PoolImport) WithPool(Pool string) *PoolImport
WithPool method fills the Pool field of PoolImport object.
func (*PoolImport) WithProperty ¶
func (p *PoolImport) WithProperty(key, value string) *PoolImport
WithProperty method fills the Property field of PoolImport object.
type PredicateFunc ¶
type PredicateFunc func(*PoolImport) bool
PredicateFunc defines data-type for validation function
func IsCachefileSet ¶
func IsCachefileSet() PredicateFunc
IsCachefileSet method check if the Cachefile field of PoolImport object is set.
func IsCommandSet ¶
func IsCommandSet() PredicateFunc
IsCommandSet method check if the Command field of PoolImport object is set.
func IsDirectorylistSet ¶
func IsDirectorylistSet() PredicateFunc
IsDirectorylistSet method check if the Directorylist field of PoolImport object is set.
func IsForceImportSet ¶
func IsForceImportSet() PredicateFunc
IsForceImportSet method check if the ForceImport field of PoolImport object is set.
func IsImportAllSet ¶
func IsImportAllSet() PredicateFunc
IsImportAllSet method check if the ImportAll field of PoolImport object is set.
func IsNewPoolSet ¶
func IsNewPoolSet() PredicateFunc
IsNewPoolSet method check if the NewPool field of PoolImport object is set.
func IsPoolSet ¶
func IsPoolSet() PredicateFunc
IsPoolSet method check if the Pool field of PoolImport object is set.
func IsPropertySet ¶
func IsPropertySet() PredicateFunc
IsPropertySet method check if the Property field of PoolImport object is set.