client

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// AwsCredsSecretIDKey is secret key containing AWS KeyId
	AwsCredsSecretIDKey = "awsAccessKeyId"
	// AwsCredsSecretAccessKey is secret key containing AWS Secret Key
	AwsCredsSecretAccessKey = "awsSecretAccessKey"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsClientBuilderFuncType

type AwsClientBuilderFuncType func(client client.Client, secretName, namespace, region string) (Client, error)

AwsClientBuilderFuncType is function type for building aws client

type Client

Client is a wrapper object for actual AWS SDK clients to allow for easier testing.

func NewClient

func NewClient(ctrlRuntimeClient client.Client, secretName, namespace, region string) (Client, error)

NewClient creates our client wrapper object for the actual AWS clients we use. For authentication the underlying clients will use either the cluster AWS credentials secret if defined (i.e. in the root cluster), otherwise the IAM profile of the master where the actuator will run. (target clusters)

func NewClientFromKeys

func NewClientFromKeys(accessKey, secretAccessKey, region string) (Client, error)

NewClientFromKeys creates our client wrapper object for the actual AWS clients we use. For authentication the underlying clients will use AWS credentials.

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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