hostedzone

package
v0.47.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const IDPrefix = "/hostedzone/"

IDPrefix is the prefix of the actual ID that's returned from GET call.

Variables

This section is empty.

Functions

func AreTagsUpToDate added in v0.42.0

func AreTagsUpToDate(spec map[string]string, obs []route53types.Tag) ([]route53types.Tag, []string, bool)

AreTagsUpToDate checks whether the given spec and observed tags are the same.

func GenerateCreateHostedZoneInput

func GenerateCreateHostedZoneInput(cr *v1alpha1.HostedZone) *route53.CreateHostedZoneInput

GenerateCreateHostedZoneInput returns a route53 CreateHostedZoneInput using which a route53 Hosted Zone can be created.

func GenerateObservation

GenerateObservation generates and returns v1alpha1.HostedZoneObservation which can be used as the status of the runtime object

func GenerateUpdateHostedZoneCommentInput

func GenerateUpdateHostedZoneCommentInput(spec v1alpha1.HostedZoneParameters, id string) *route53.UpdateHostedZoneCommentInput

GenerateUpdateHostedZoneCommentInput returns a route53 UpdateHostedZoneCommentInput using which a route53 Hosted Zone comment can be updated.

func GetHostedZoneID added in v0.42.0

func GetHostedZoneID(cr *v1alpha1.HostedZone) string

GetHostedZoneID for cr.

func IsNotFound

func IsNotFound(err error) bool

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

func IsUpToDate

IsUpToDate check whether the comment in Spec and Response are same or not

func LateInitialize

func LateInitialize(spec *v1alpha1.HostedZoneParameters, obs *route53.GetHostedZoneOutput)

LateInitialize fills the empty fields in *v1alpha1.HostedZoneParameters with the values seen in route53types.HostedZone.

Types

type Client

type Client interface {
	CreateHostedZone(ctx context.Context, input *route53.CreateHostedZoneInput, opts ...func(*route53.Options)) (*route53.CreateHostedZoneOutput, error)
	DeleteHostedZone(ctx context.Context, input *route53.DeleteHostedZoneInput, opts ...func(*route53.Options)) (*route53.DeleteHostedZoneOutput, error)
	GetHostedZone(ctx context.Context, input *route53.GetHostedZoneInput, opts ...func(*route53.Options)) (*route53.GetHostedZoneOutput, error)
	UpdateHostedZoneComment(ctx context.Context, input *route53.UpdateHostedZoneCommentInput, opts ...func(*route53.Options)) (*route53.UpdateHostedZoneCommentOutput, error)
	ListTagsForResource(ctx context.Context, params *route53.ListTagsForResourceInput, opts ...func(*route53.Options)) (*route53.ListTagsForResourceOutput, error)
	ChangeTagsForResource(ctx context.Context, params *route53.ChangeTagsForResourceInput, optFns ...func(*route53.Options)) (*route53.ChangeTagsForResourceOutput, error)
}

Client defines Route53 Client operations

func NewClient

func NewClient(cfg aws.Config) Client

NewClient creates new RDS RDSClient with provided AWS Configurations/Credentials

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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