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.
Click to show internal directories.
Click to hide internal directories.