awsclient

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildR53Input

func BuildR53Input(hostedZone string) *route53.ChangeResourceRecordSetsInput

BuildR53Input contructs an Input object for a hostedzone. Contains no recordsets.

func CreateR53TXTRecordChange

func CreateR53TXTRecordChange(name *string, action string, value *string) (change route53.Change, err error)

CreateR53TXTRecordChange creates an route53 Change object for a TXT record with a given name and a given action to take. Valid actions are strings matching valid route53 ChangeActions.

func SearchForHostedZone

func SearchForHostedZone(r53svc Client, baseDomain string) (hostedZone route53.HostedZone, err error)

SearchForHostedZone finds a hostedzone when given an aws client and a domain string Returns a hostedzone object

Types

type Client

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

func NewClient

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

NewClient returns an awsclient.Client object to the caller. If NewClient is passed a non-null secretName, an attempt to retrieve the secret from the namespace argument will be performed. AWS credentials are returned as these secrets and a new session is initiated prior to returning a route53Client. If secrets fail to return, the IAM role of the masters is used to create a new session for the client.

Jump to

Keyboard shortcuts

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