config

package
v0.0.1-alpha3 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2018 License: Apache-2.0 Imports: 5 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) GetConfigTag

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

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

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.

Jump to

Keyboard shortcuts

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