Documentation ¶
Index ¶
- Constants
- type Config
- func (c *Config) Copy() (*Config, error)
- func (c *Config) EnvVars() []string
- func (c *Config) JsonMarshalStrategy() JsonMarshalStrategy
- func (c *Config) MarshalJSON() ([]byte, error)
- func (c *Config) ReadConfig(in io.Reader) error
- func (c *Config) ReadConfigFile(filePath string) error
- func (c *Config) SetJsonMarshalStrategy(s JsonMarshalStrategy)
- func (c *Config) Sync()
- func (c *Config) ToJson() (string, error)
- func (c *Config) ToSecureJson() (string, error)
- type ConfigKey
- type ConfigKeyMap
- type JsonMarshalStrategy
- type SetVapFun
Constants ¶
View Source
const AwsAccessKey = "awsAccessKey"
View Source
const AwsRegion = "awsRegion"
View Source
const AwsSecretKey = "awsSecretKey"
View Source
const DockerAvailabilityZone = "dockerAvailabilityZone"
View Source
const DockerIops = "dockerIops"
View Source
const DockerSize = "dockerSize"
View Source
const DockerVolumeType = "dockerVolumeType"
View Source
const Host = "host"
View Source
const LogLevel = "logLevel"
View Source
const MinVolSize = "minVolSize"
View Source
const OsDrivers = "osDrivers"
View Source
const RackspaceAuthUrl = "rackspaceAuthUrl"
View Source
const RackspaceDomainId = "rackspaceDomainId"
View Source
const RackspaceDomainName = "rackspaceDomainName"
View Source
const RackspacePassword = "rackspacePassword"
View Source
const RackspaceTenantId = "rackspaceTenantId"
View Source
const RackspaceTenantName = "rackspaceTenantName"
View Source
const RackspaceUserId = "rackspaceUserId"
View Source
const RackspaceUserName = "rackspaceUserName"
View Source
const RemoteManagement = "remoteManagement"
View Source
const ScaleIoEndpoint = "scaleIoEndpoint"
View Source
const ScaleIoInsecure = "scaleIoInsecure"
View Source
const ScaleIoPassword = "scaleIoPassword"
View Source
const ScaleIoProtectionDomainId = "scaleIoProtectionDomainId"
View Source
const ScaleIoProtectionDomainName = "scaleIoProtectionDomainName"
View Source
const ScaleIoStoragePoolId = "scaleIoStoragePoolId"
View Source
const ScaleIoStoragePoolName = "scaleIoStoragePoolName"
View Source
const ScaleIoSystemId = "scaleIoSystemId"
View Source
const ScaleIoSystemName = "scaleIoSystemName"
View Source
const ScaleIoUseCerts = "scaleIoUseCerts"
View Source
const ScaleIoUserName = "scaleIoUserName"
View Source
const StorageDrivers = "storageDrivers"
View Source
const VolumeDrivers = "volumeDrivers"
View Source
const XtremIoDeviceMapper = "xtremIoDeviceMapper"
View Source
const XtremIoEndpoint = "xtremIoEndpoint"
View Source
const XtremIoInsecure = "xtremIoInsecure"
View Source
const XtremIoMultipath = "xtremIoMultipath"
View Source
const XtremIoPassword = "xtremIoPassword"
View Source
const XtremIoRemoteManagement = "xtremIoRemoteManagement"
View Source
const XtremIoUserName = "xtremIoUserName"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { GlobalFlags *flag.FlagSet `json:"-"` AdditionalFlags *flag.FlagSet `json:"-"` Viper *viper.Viper `json:"-"` Host string `json:"-"` // contains filtered or unexported fields }
Config contains the configuration information
func (*Config) JsonMarshalStrategy ¶
func (c *Config) JsonMarshalStrategy() JsonMarshalStrategy
func (*Config) MarshalJSON ¶
The implementation of the encoding/json.Marshaller interface. It allows this type to provide its own marshalling routine.
func (*Config) ReadConfigFile ¶
func (*Config) SetJsonMarshalStrategy ¶
func (c *Config) SetJsonMarshalStrategy(s JsonMarshalStrategy)
func (*Config) ToSecureJson ¶
type ConfigKeyMap ¶
type JsonMarshalStrategy ¶
type JsonMarshalStrategy int
const ( JsonMarshalSecure JsonMarshalStrategy = iota JsonMarshalPlainText )
Click to show internal directories.
Click to hide internal directories.