config

package
v0.0.0-...-21d1597 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppTag       = "Application"
	ASGTag       = "aws:autoscaling:groupName"
	CommitTag    = "BuildCommit"
	LTVersionTag = "aws:ec2launchtemplate:version"
	NameTag      = "Name"
	ServiceTag   = "Service"
	TypeTag      = "Type"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CredentialCache

type CredentialCache struct {
	RootAWSConfig *aws.Config      `yaml:"-"`
	RootSession   *session.Session `yaml:"-"`
	// contains filtered or unexported fields
}

func (*CredentialCache) ForARN

func (cache *CredentialCache) ForARN(arn string) *SessionDetails

type Omat

type Omat struct {
	Credentials *CredentialCache `yaml:"-"`

	OrganizationPrefix string `yaml:"organizationPrefix"`
	Region             string `yaml:"region"`
	Environment        string `yaml:"environment"`
	DeployService      string `yaml:"deployService"`
	BuildAccountSlug   string `yaml:"buildAccountSlug"`
	DeployAccountSlug  string `yaml:"deployAccountSlug"`
}

func NewOmat

func NewOmat() *Omat

func (*Omat) InitCredentials

func (omat *Omat) InitCredentials()

func (*Omat) LoadConfig

func (omat *Omat) LoadConfig() error

func (*Omat) Prefix

func (omat *Omat) Prefix() string

type SessionDetails

type SessionDetails struct {
	Session     *session.Session
	Credentials *credentials.Credentials
	Config      *aws.Config
}

Jump to

Keyboard shortcuts

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