smbdriver

package module
v0.0.0-...-f11dbf7 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2017 License: Apache-2.0 Imports: 14 Imported by: 1

README

smbdriver

This driver mounts SMB shares. For more information about using this driver in your Cloud Foundry, visit the smb-volume-release git repository.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSmbMounter

func NewSmbMounter(invoker invoker.Invoker, osutil osshim.Os, ioutil ioutilshim.Ioutil, config *Config) nfsdriver.Mounter

NewSmbMounter create SMB mounter

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 NewSmbConfig

func NewSmbConfig() *Config

NewSmbConfig creates Config for SMB

func (Config) CheckMandatory

func (config Config) CheckMandatory() []string

CheckMandatory get missing mandatory options.

func (*Config) Copy

func (config *Config) Copy() *Config

Copy copy a config

func (Config) MakeConfig

func (config Config) MakeConfig() map[string]interface{}

MakeConfig generate parameters as a map from config.

func (Config) MakeParams

func (config Config) MakeParams() []string

MakeParams generate parameters as an array from config.

func (*Config) ReadConf

func (config *Config) ReadConf(allowedFlag string, defaultFlag string, mandatoryFields []string) error

ReadConf read config.

func (*Config) SetEntries

func (config *Config) SetEntries(opts map[string]interface{}, ignoreList []string) error

SetEntries set options to a config. Those options in ignoreList will be ignored.

Directories

Path Synopsis
cmd
smbdriver command
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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