Documentation ¶
Index ¶
- func DoesSNSNamespaceExist(sns *objectcontext.ObjectContext) (bool, error)
- func GetAllChildren(obj *objectcontext.ObjectContext) []*objectcontext.ObjectContext
- func GetAncestor(source []string, dest []string) (string, bool, error)
- func GetNamespaceSNSPointerAnnotation(namespace client.Object) string
- func GetRqDepthFromSNS(sns *objectcontext.ObjectContext) (string, error)
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 ¶
func GetAllChildren(obj *objectcontext.ObjectContext) []*objectcontext.ObjectContext
GetAllChildren returns a slice of all the descendants of a namespace or subnamespace, including it itself
func GetAncestor ¶
GetAncestor finds the nearest joint namespace of two subnamespaces in a hierarchy
func GetNamespaceSNSPointerAnnotation ¶
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.
Click to show internal directories.
Click to hide internal directories.