Documentation ¶
Index ¶
- type Capabilities
- type Config
- type ConfigMap
- func (c ConfigMap) Config(name string) (interface{}, bool)
- func (c ConfigMap) Get(name string) (interface{}, bool)
- func (c ConfigMap) GetInteger(name string) int
- func (c ConfigMap) GetMapOfStrings(name string) map[string]string
- func (c ConfigMap) GetSliceOfStrings(name string) []string
- func (c ConfigMap) GetString(name string) string
- func (c ConfigMap) Set(name string, value interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Capabilities ¶
type Capabilities struct { // PublicVirtualIP indicates if the provider has the capability to provide a Virtual IP with public IP address PublicVirtualIP bool // PrivateVirtualIP indicates if the provider has the capability to provide a Virtual IP with private IP address PrivateVirtualIP bool // Layer3Networking indicates if the provider uses Layer3 networking Layer3Networking bool }
Capabilities represents key/value configuration.
type Config ¶
type Config interface { // Config gets a string configuration value and a // bool indicating whether the value was present or not. Config(name string) (interface{}, bool) //Get is an alias to Config() Get(name string) (interface{}, bool) //Set sets the configuration name to specified value Set(name string, value interface{}) //GetString returns a string corresponding to the key, empty string if it doesn't exist GetString(name string) string //GetSliceOfStrings returns a slice of strings corresponding to the key, empty string slice if it doesn't exist GetSliceOfStrings(name string) []string //GetMapOfStrings returns a string map of strings corresponding to the key, empty map if it doesn't exist GetMapOfStrings(name string) map[string]string //GetInteger returns an integer corresponding to the key, 0 if it doesn't exist GetInteger(name string) int }
Config represents key/value configuration.
type ConfigMap ¶
type ConfigMap map[string]interface{}
ConfigMap is a map[string]string that implements the Config method.
func (ConfigMap) Config ¶
Config gets a string configuration value and a bool indicating whether the value was present or not.
func (ConfigMap) GetInteger ¶
GetInteger returns an integer corresponding to the key, 0 if it doesn't exist
func (ConfigMap) GetMapOfStrings ¶
GetMapOfStrings returns a string map of strings corresponding to the key, empty map if it doesn't exist
func (ConfigMap) GetSliceOfStrings ¶
GetSliceOfStrings returns a string slice corresponding to the key, empty string slice if it doesn't exist
Click to show internal directories.
Click to hide internal directories.