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) ToJSON() (string, error)
- func (c *Config) ToSecureJSON() (string, error)
- type JSONMarshalStrategy
Constants ¶
const AwsAccessKey = "awsAccessKey"
AwsAccessKey is a configuration key.
const AwsRegion = "awsRegion"
AwsRegion is a configuration key.
const AwsSecretKey = "awsSecretKey"
AwsSecretKey is a configuration key.
const DockerAvailabilityZone = "dockerAvailabilityZone"
DockerAvailabilityZone is a configuration key.
const DockerIOPS = "dockerIops"
DockerIops is a configuration key.
const DockerSize = "dockerSize"
DockerSize is a configuration key.
const DockerVolumeType = "dockerVolumeType"
DockerVolumeType is a configuration key.
const Host = "host"
Host is a configuration key.
const LogLevel = "logLevel"
LogLevel is a configuration key.
const MinVolSize = "minVolSize"
MinVolSize is a configuration key.
const OSDrivers = "osDrivers"
OsDrivers is a configuration key.
const OpenstackAuthURL = "openstackAuthUrl"
OpenstackAuthUrl is a configuration key.
const OpenstackAvailabilityZoneName = "openstackAvailabilityZoneName"
OpenstackAvailabilityZoneName is a configuration key.
const OpenstackDomainID = "openstackDomainId"
OpenstackDomainId is a configuration key.
const OpenstackDomainName = "openstackDomainName"
OpenstackDomainName is a configuration key.
const OpenstackPassword = "openstackPassword"
OpenstackPassword is a configuration key.
const OpenstackRegionName = "openstackRegionName"
OpenstackRegionName is a configuration key.
const OpenstackTenantID = "openstackTenantId"
OpenstackTenantId is a configuration key.
const OpenstackTenantName = "openstackTenantName"
OpenstackTenantName is a configuration key.
const OpenstackUserID = "openstackUserId"
OpenstackUserId is a configuration key.
const OpenstackUserName = "openstackUserName"
OpenstackUserName is a configuration key.
const RackspaceAuthURL = "rackspaceAuthUrl"
RackspaceAuthUrl is a configuration key.
const RackspaceDomainID = "rackspaceDomainId"
RackspaceDomainId is a configuration key.
const RackspaceDomainName = "rackspaceDomainName"
RackspaceDomainName is a configuration key.
const RackspacePassword = "rackspacePassword"
RackspacePassword is a configuration key.
const RackspaceTenantID = "rackspaceTenantId"
RackspaceTenantId is a configuration key.
const RackspaceTenantName = "rackspaceTenantName"
RackspaceTenantName is a configuration key.
const RackspaceUserID = "rackspaceUserId"
RackspaceUserId is a configuration key.
const RackspaceUserName = "rackspaceUserName"
RackspaceUserName is a configuration key.
const RemoteManagement = "remoteManagement"
RemoteManagement is a configuration key.
const ScaleIOEndpoint = "scaleIoEndpoint"
ScaleIoEndpoint is a configuration key.
const ScaleIOInsecure = "scaleIoInsecure"
ScaleIoInsecure is a configuration key.
const ScaleIOPassword = "scaleIoPassword"
ScaleIoPassword is a configuration key.
const ScaleIOProtectionDomainID = "scaleIoProtectionDomainId"
ScaleIoProtectionDomainId is a configuration key.
const ScaleIOProtectionDomainName = "scaleIoProtectionDomainName"
ScaleIoProtectionDomainName is a configuration key.
const ScaleIOStoragePoolID = "scaleIoStoragePoolId"
ScaleIoStoragePoolId is a configuration key.
const ScaleIOStoragePoolName = "scaleIoStoragePoolName"
ScaleIoStoragePoolName is a configuration key.
const ScaleIOSystemID = "scaleIoSystemId"
ScaleIoSystemId is a configuration key.
const ScaleIOSystemName = "scaleIoSystemName"
ScaleIoSystemName is a configuration key.
const ScaleIOUseCerts = "scaleIoUseCerts"
ScaleIoUseCerts is a configuration key.
const ScaleIOUserName = "scaleIoUserName"
ScaleIoUserName is a configuration key.
const StorageDrivers = "storageDrivers"
StorageDrivers is a configuration key.
const VolumeDrivers = "volumeDrivers"
VolumeDrivers is a configuration key.
const XtremIODeviceMapper = "xtremIoDeviceMapper"
XtremIoDeviceMapper is a configuration key.
const XtremIOEndpoint = "xtremIoEndpoint"
XtremIoEndpoint is a configuration key.
const XtremIOInsecure = "xtremIoInsecure"
XtremIoInsecure is a configuration key.
const XtremIOMultipath = "xtremIoMultipath"
XtremIoMultipath is a configuration key.
const XtremIOPassword = "xtremIoPassword"
XtremIoPassword is a configuration key.
const XtremIORemoteManagement = "xtremIoRemoteManagement"
XtremIoRemoteManagement is a configuration key.
const XtremIOUserName = "xtremIoUserName"
XtremIoUserName is a configuration key.
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) EnvVars ¶
EnvVars returns an array of the initialized configuration keys as key=value strings where the key is configuration key's environment variable key and the value is the current value for that key.
func (*Config) JSONMarshalStrategy ¶
func (c *Config) JSONMarshalStrategy() JSONMarshalStrategy
JSONMarshalStrategy gets the JSON marshalling strategy
func (*Config) MarshalJSON ¶
MarshalJSON implements the encoding/json.Marshaller interface. It allows this type to provide its own marshalling routine.
func (*Config) ReadConfig ¶
ReadConfig reads a configuration stream into the current config instance
func (*Config) ReadConfigFile ¶
ReadConfigFile reads a configuration files into the current config instance
func (*Config) SetJSONMarshalStrategy ¶
func (c *Config) SetJSONMarshalStrategy(s JSONMarshalStrategy)
SetJSONMarshalStrategy sets the JSON marshalling strategy
func (*Config) ToSecureJSON ¶
ToSecureJSON exports this Config instance to a JSON string omitting any of the secure fields
type JSONMarshalStrategy ¶
type JSONMarshalStrategy int
JSONMarshalStrategy is a JSON marshalling strategy
const ( // JSONMarshalSecure indicates that the secure fields should be omitted JSONMarshalSecure JSONMarshalStrategy = iota // JSONMarshalPlainText indicates that all fields should be included JSONMarshalPlainText )