resourcerecordset

package
v0.38.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePatch

CreatePatch creates a *v1beta1.ResourceRecordSetParameters that has only the changed values between the target *v1beta1.ResourceRecordSetParameters and the current *route53types.ResourceRecordSet

func GenerateChangeResourceRecordSetsInput

func GenerateChangeResourceRecordSetsInput(name string, p v1alpha1.ResourceRecordSetParameters, action route53types.ChangeAction) *route53.ChangeResourceRecordSetsInput

GenerateChangeResourceRecordSetsInput prepares input for a ChangeResourceRecordSetsInput

func GetResourceRecordSet

GetResourceRecordSet returns recordSet if present or err

func IsNotFound

func IsNotFound(err error) bool

IsNotFound returns true if the error code indicates that the requested Resource Record was not found

func IsUpToDate

IsUpToDate checks if object is up to date

func LateInitialize

LateInitialize fills the empty fields in *v1alpha1.ResourceRecordSetParameters with the values seen in route53types.ResourceRecordSet.

Types

type Client

type Client interface {
	ChangeResourceRecordSets(ctx context.Context, input *route53.ChangeResourceRecordSetsInput, opts ...func(*route53.Options)) (*route53.ChangeResourceRecordSetsOutput, error)
	ListResourceRecordSets(ctx context.Context, input *route53.ListResourceRecordSetsInput, opts ...func(*route53.Options)) (*route53.ListResourceRecordSetsOutput, error)
}

Client defines ResourceRecordSet operations

func NewClient

func NewClient(cfg aws.Config) Client

NewClient creates new AWS client with provided AWS Configuration/Credentials

type NotFoundError

type NotFoundError struct{}

NotFoundError will be raised when there is no ResourceRecordSet

func (*NotFoundError) Error

func (r *NotFoundError) Error() string

Error satisfies the Error interface for NotFoundError. We need to implement our own error for this because AWS SDK doesn't have a predefined error for Resource Record not found.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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