route53

package
v0.0.0-...-0b682e0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfig

func NewConfig(ctx context.Context) (aws.Config, error)

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(opts ...ClientOption) *Client

func (*Client) ListZones

func (c *Client) ListZones(ctx context.Context) (*HostedZoneResponse, error)

func (*Client) UpdateIP

func (c *Client) UpdateIP(ip string, recordName string, ttl int) error

func (*Client) UpsertRecordSet

func (c *Client) UpsertRecordSet(ctx context.Context, req *RecordSetRequest) (*RecordSetResponse, error)

type ClientOption

type ClientOption func(c *Client)

func WithCredentials

func WithCredentials(creds aws.Config) ClientOption

type HostedZoneResponse

type HostedZoneResponse struct {
	*r53.ListHostedZonesOutput
}

type RecordSetRequest

type RecordSetRequest struct {
	*r53.ChangeResourceRecordSetsInput
}

func NewRecordSetRequest

func NewRecordSetRequest(recordName, recordValue, hostedZoneID string, ttl int64) *RecordSetRequest

type RecordSetResponse

type RecordSetResponse struct {
	*r53.ChangeResourceRecordSetsOutput
}

Jump to

Keyboard shortcuts

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