Documentation ¶
Index ¶
Constants ¶
View Source
const ( // http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml?search=docker DOCKER_RESERVED_PORT = 2375 DOCKER_RESERVED_SSL_PORT = 2376 SSH_PORT = 22 AGENT_INTROSPECTION_PORT = 51678 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ClusterArn string APIEndpoint string APIPort uint16 DockerEndpoint string AWSRegion string `missing:"warn"` ReservedPorts []uint16 }
func DefaultConfig ¶
func DefaultConfig() Config
func EC2MetadataConfig ¶
func EC2MetadataConfig() Config
func EnvironmentConfig ¶
func EnvironmentConfig() Config
EnvironmentConfig reads the given configs from the environment and attempts to convert them to the given type
func FileConfig ¶
func FileConfig() Config
func (*Config) CheckMissing ¶
func (cfg *Config) CheckMissing()
CheckMissing checks all zero-valued fields for tags of the form missing:STRING and acts based on that string. Current options are: fatal, warn. Fatal will result in a fatal error, warn will result in a warning that the field is missing being logged
type ConfigReader ¶
type ConfigReader interface {
ReadConfig() *Config
}
Click to show internal directories.
Click to hide internal directories.