snsutils

package
v1.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoesSNSNamespaceExist

func DoesSNSNamespaceExist(sns *objectcontext.ObjectContext) (bool, error)

DoesSNSNamespaceExist checks whether a namespace of a given name exists already in the cluster

func GetAllChildren

GetAllChildren returns a slice of all the descendants of a namespace or subnamespace, including it itself

func GetAncestor

func GetAncestor(source []string, dest []string) (string, bool, error)

GetAncestor finds the nearest joint namespace of two subnamespaces in a hierarchy

func GetNamespaceSNSPointerAnnotation

func GetNamespaceSNSPointerAnnotation(namespace client.Object) string

GetNamespaceSNSPointerAnnotation returns the sns-pointer annotation of a namespace

func GetRqDepthFromSNS

func GetRqDepthFromSNS(sns *objectcontext.ObjectContext) (string, error)

GetRqDepthFromSNS returns the rq-depth of the root namespace based on a given subnamesapce

Types

This section is empty.

Jump to

Keyboard shortcuts

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