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 ¶
type Client interface { // Route53 client CreateHostedZone(input *route53.CreateHostedZoneInput) (*route53.CreateHostedZoneOutput, error) DeleteHostedZone(input *route53.DeleteHostedZoneInput) (*route53.DeleteHostedZoneOutput, error) ListHostedZones(input *route53.ListHostedZonesInput) (*route53.ListHostedZonesOutput, error) GetHostedZone(*route53.GetHostedZoneInput) (*route53.GetHostedZoneOutput, error) ChangeResourceRecordSets(*route53.ChangeResourceRecordSetsInput) (*route53.ChangeResourceRecordSetsOutput, error) ListResourceRecordSets(*route53.ListResourceRecordSetsInput) (*route53.ListResourceRecordSetsOutput, error) }
Client is a wrapper object for actual AWS SDK clients to allow for easier testing.
func NewClient ¶
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.