util

package
v0.1.50 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsErrorRetryable

func IsErrorRetryable(err error) bool

func NewAWSRoute53Config

func NewAWSRoute53Config() *aws.Config

NewAWSRoute53Config generates an AWS config with slightly different Retryer timings

func NewConfig

func NewConfig() *aws.Config

NewConfig creates a new config.

func NewSTSSession added in v0.1.32

func NewSTSSession(agent, rolenArn, region string, assumeRoleCreds *credentials.Credentials) (*session.Session, error)

func NewSession

func NewSession(agent, credentialsFile, credKey, credSecretKey, region string) *session.Session

func ParseSTSCredentialsFile added in v0.1.32

func ParseSTSCredentialsFile(credentialsFile string) (*credentials.Credentials, error)

func ValidateVPCCIDR added in v0.1.50

func ValidateVPCCIDR(in string) error

Types

type AWSCredentialsOptions added in v0.1.32

type AWSCredentialsOptions struct {
	AWSCredentialsFile string

	RoleArn            string
	STSCredentialsFile string
}

func (*AWSCredentialsOptions) BindFlags added in v0.1.32

func (opts *AWSCredentialsOptions) BindFlags(flags *pflag.FlagSet)

func (*AWSCredentialsOptions) BindProductFlags added in v0.1.32

func (opts *AWSCredentialsOptions) BindProductFlags(flags *pflag.FlagSet)

func (*AWSCredentialsOptions) BindVPCOwnerFlags added in v0.1.49

func (opts *AWSCredentialsOptions) BindVPCOwnerFlags(flags *pflag.FlagSet)

func (*AWSCredentialsOptions) GetSession added in v0.1.32

func (opts *AWSCredentialsOptions) GetSession(agent string, secretData *util.CredentialsSecretData, region string) (*session.Session, error)

func (*AWSCredentialsOptions) Validate added in v0.1.32

func (opts *AWSCredentialsOptions) Validate() error

type Credentials added in v0.1.32

type Credentials struct {
	AccessKeyId     string `json:"AccessKeyId"`
	SecretAccessKey string `json:"SecretAccessKey"`
	SessionToken    string `json:"SessionToken"`
	Expiration      string `json:"Expiration"`
}

type STSCreds added in v0.1.38

type STSCreds struct {
	Credentials Credentials `json:"Credentials"`
}

Jump to

Keyboard shortcuts

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