Documentation ¶
Index ¶
- func CreatePatch(in *route53types.ResourceRecordSet, ...) (*v1alpha1.ResourceRecordSetParameters, error)
- func GenerateChangeResourceRecordSetsInput(name string, p v1alpha1.ResourceRecordSetParameters, ...) *route53.ChangeResourceRecordSetsInput
- func GetResourceRecordSet(ctx context.Context, name string, params v1alpha1.ResourceRecordSetParameters, ...) (*route53types.ResourceRecordSet, error)
- func IsNotFound(err error) bool
- func IsUpToDate(p v1alpha1.ResourceRecordSetParameters, rrset route53types.ResourceRecordSet) (bool, error)
- func LateInitialize(in *v1alpha1.ResourceRecordSetParameters, ...)
- type Client
- type NotFoundError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePatch ¶
func CreatePatch(in *route53types.ResourceRecordSet, target *v1alpha1.ResourceRecordSetParameters) (*v1alpha1.ResourceRecordSetParameters, error)
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 ¶
func GetResourceRecordSet(ctx context.Context, name string, params v1alpha1.ResourceRecordSetParameters, c Client) (*route53types.ResourceRecordSet, error)
GetResourceRecordSet returns recordSet if present or err
func IsNotFound ¶
IsNotFound returns true if the error code indicates that the requested Resource Record was not found
func IsUpToDate ¶
func IsUpToDate(p v1alpha1.ResourceRecordSetParameters, rrset route53types.ResourceRecordSet) (bool, error)
IsUpToDate checks if object is up to date
func LateInitialize ¶
func LateInitialize(in *v1alpha1.ResourceRecordSetParameters, rrSet *route53types.ResourceRecordSet)
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
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.