config

package
v0.0.0-...-7652ffb Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2017 License: MIT Imports: 11 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSConfig

type AWSConfig struct {
	// contains filtered or unexported fields
}

func NewAWSConfig

func NewAWSConfig() (*AWSConfig, error)

func (*AWSConfig) ClientConfig

func (this *AWSConfig) ClientConfig(serviceName string, cfgs ...*aws.Config) client.Config

func (*AWSConfig) MetaData

func (this *AWSConfig) MetaData() (*InstanceMeta, error)

returns existing metadata

func (*AWSConfig) Session

func (this *AWSConfig) Session() (*session.Session, error)

type Config

type Config struct {
	CustomerId          string
	CustomerEmail       string
	BastionAuthEndpoint string
	BartnetHost         string
	BastionAuthType     string
	BastionId           string
	NsqdHost            string
	EtcdHost            string
	SlateHost           string
	LogLevel            string
	BezosHost           string
	ExecutionGroupId    string
	AWS                 *AWSConfig
}

Global config provides shared aws session, metadata, and environmental variables declared in etc/opsee/bastion-env.sh.

func GetConfig

func GetConfig() *Config

type InstanceMeta

type InstanceMeta struct {
	Region string
	VpcId  string
}

func (*InstanceMeta) Update

func (this *InstanceMeta) Update() error

Jump to

Keyboard shortcuts

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