config

package
v0.0.1-v1alpha1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

Config contains the values about the different parsing mechanisms for Config names

func New

func New(automaticENIConfig bool, eniconfigName string, eniconfigTagName string, awsSession *session.Session) Config

New will return and instance of the ENIConfig object

func (Config) GetENIConfigTag

func (c Config) GetENIConfigTag(instanceID string) (name string, err error)

GetENIConfigTag allows you to get the ENIConfig name from the EC2 instances tag, customize this by using the ENIConfig.eniConfigTagName

func (Config) GetInstanceAZ

func (c Config) GetInstanceAZ(providerID string) (string, error)

GetInstanceAZ will return the instance AZ from the provider ID

func (Config) GetName

func (c Config) GetName(providerID string) (string, error)

GetName will return the name of the Config using either the name in the base object OR will load it via the AWS EC2 DescribeTags API.

func (Config) GetSubnetAZ

func (c Config) GetSubnetAZ(subnetID string) (string, error)

GetSubnetAZ will return the AZ of the subnet from the subnet ID

Jump to

Keyboard shortcuts

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