commonnamespace

package
v0.54.2 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2025 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[managedtype namespace] struct {
	// contains filtered or unexported fields
}

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

func NewHooks

func NewHooks[managedtype namespace](kube client.Client, client servicediscoveryiface.ServiceDiscoveryAPI) *Hooks[managedtype]

NewHooks returns a new Hooks object.

func (*Hooks[managedtype]) Delete

func (h *Hooks[managedtype]) Delete(ctx context.Context, cr managedtype) (managed.ExternalDelete, error)

Delete deletes any of HTTPNamespace, PrivateDNSNamespace or PublicDNSNamespace types.

func (*Hooks[managedtype]) Observe

func (h *Hooks[managedtype]) Observe(ctx context.Context, cr managedtype) (managed.ExternalObservation, error)

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