util

package
v0.1.49 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: Apache-2.0 Imports: 16 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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)

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