Documentation
¶
Index ¶
- func ToAPIBindingExportLabelValue(clusterName logicalcluster.Name, exportName string) string
- func ToLabelKeyAndValue(exportClusterName logicalcluster.Name, exportName string, ...) (string, string, error)
- func ToReflexiveAPIBindingLabelKeyAndValue(exportClusterName logicalcluster.Name, exportName string) (string, string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToAPIBindingExportLabelValue ¶
ToAPIBindingExportLabelValue returns the label value for the internal.apis.kcp.io/export label on APIBindings to filter them by export.
func ToLabelKeyAndValue ¶
func ToLabelKeyAndValue(exportClusterName logicalcluster.Name, exportName string, permissionClaim apisv1alpha1.PermissionClaim) (string, string, error)
ToLabelKeyAndValue creates a safe key and value for labeling a resource to grant access based on the permissionClaim.
func ToReflexiveAPIBindingLabelKeyAndValue ¶
func ToReflexiveAPIBindingLabelKeyAndValue(exportClusterName logicalcluster.Name, exportName string) (string, string)
ToReflexiveAPIBindingLabelKeyAndValue returns label key and value that is set (as fallback for filtering) on APIBindings that point to the given APIExport and the binding has not accepted a claim to it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.