route53

package
v0.0.0-...-530d8eb Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliasRecord

type AliasRecord struct {
	ZoneID  string
	LbCname string
}

AliasRecord gives alias abstraction with zoneid and lb cname

type RClient

type RClient struct {
	R53Client     *route53.Client
	PublicRecord  AliasRecord
	PrivateRecord AliasRecord
}

RClient is a client r53 with necessary private and public records

func NewRoute53Client

func NewRoute53Client(v *viper.Viper) *RClient

NewRoute53Client initialize a r53 client

func (*RClient) CreateRecordSet

func (r *RClient) CreateRecordSet(record string) ([]*route53.ChangeResourceRecordSetsResponse, error)

CreateRecordSet will create a record on r53

func (*RClient) DeleteRecordSet

func (r *RClient) DeleteRecordSet(record string) ([]*route53.ChangeResourceRecordSetsResponse, error)

DeleteRecordSet will delete a record on r53

Jump to

Keyboard shortcuts

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