commonnamespace

package
v0.47.2 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActualIsNotFound

func ActualIsNotFound(err error) bool

ActualIsNotFound reimplements IsNotFound which doesn't do it's job IsNotFound test for error code UNKNOWN

func AreTagsUpToDate added in v0.37.0

func AreTagsUpToDate(client servicediscoveryiface.ServiceDiscoveryAPI, spec []*v1alpha1.Tag, resourceName *string) (bool, error)

AreTagsUpToDate for spec and resourceName

func DiffTags added in v0.37.0

func DiffTags(spec []*v1alpha1.Tag, current []*svcsdk.Tag) (addTags []*svcsdk.Tag, removeTags []*string)

DiffTags between spec and current

func IsDuplicateRequest

func IsDuplicateRequest(err error) bool

IsDuplicateRequest checks if an error is DuplicateRequest

func ListTagsForResource added in v0.37.0

func ListTagsForResource(client servicediscoveryiface.ServiceDiscoveryAPI, resourceARN *string) ([]*svcsdk.Tag, error)

ListTagsForResource for the given resource

func UpdateTagsForResource added in v0.37.0

func UpdateTagsForResource(client servicediscoveryiface.ServiceDiscoveryAPI, spec []*v1alpha1.Tag, cr v1.Object) error

UpdateTagsForResource with resourceName

Types

type Hooks

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

Hooks implements common hooks so that all ServiceDiscovery Namespace resources can use.

func NewHooks

NewHooks returns a new Hooks object.

func (*Hooks) Delete

func (h *Hooks) Delete(ctx context.Context, mg cpresource.Managed) error

Delete deletes any of HTTPNamespace, PrivateDNSNamespace or PublicDNSNamespace types.

func (*Hooks) Observe

Observe observes any of HTTPNamespace, PrivateDNSNamespace or PublicDNSNamespace types.

Jump to

Keyboard shortcuts

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