helper

package
v1.89.3 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const ClusterIDSeparator = ":"

ClusterIDSeparator separates clusterID and ManagedResource key in an origin value.

Variables

This section is empty.

Functions

func OriginForManagedResource

func OriginForManagedResource(clusterID string, mr *resourcesv1alpha1.ManagedResource) string

OriginForManagedResource encodes clusterID and ManagedResource key into an origin value.

func SplitOrigin

func SplitOrigin(origin string) (string, types.NamespacedName, error)

SplitOrigin returns the clusterID and ManagedResource key encoded in an origin value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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