Documentation
¶
Index ¶
- func NewSmbMounter(invoker invoker.Invoker, osutil osshim.Os, ioutil ioutilshim.Ioutil, ...) nfsdriver.Mounter
- type Config
- func (config Config) CheckMandatory() []string
- func (config *Config) Copy() *Config
- func (config Config) MakeConfig() map[string]interface{}
- func (config Config) MakeParams() []string
- func (config *Config) ReadConf(allowedFlag string, defaultFlag string, mandatoryFields []string) error
- func (config *Config) SetEntries(opts map[string]interface{}, ignoreList []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Allowed []string
Mandatory []string
Forced map[string]string
Options map[string]string
}
Config represents the configurations for SMB mount
func (Config) CheckMandatory ¶
CheckMandatory get missing mandatory options.
func (Config) MakeConfig ¶
MakeConfig generate parameters as a map from config.
func (Config) MakeParams ¶
MakeParams generate parameters as an array from config.
Click to show internal directories.
Click to hide internal directories.