Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ManagedClusterSetDefaultTagValue is the value used for labels that are of kind tag. ManagedClusterSetDefaultTagValue = "true" // HubOfHubsGroup is the group name that prefixes hoh items. HubOfHubsGroup = "hub-of-hubs.open-cluster-management.io" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ManagedClusterLabelsSpecDB ¶
type ManagedClusterLabelsSpecDB interface { // UpdateLabelForManagedClusters receives a map of hub -> set of managed clusters and updates their labels to be // appended by the given label // // If the operation fails, hubToManagedClustersMap will contain un-synced entries only. UpdateLabelForManagedClusters(ctx context.Context, tableName string, labelKey string, labelValue string, hubToManagedClustersMap map[string]set.Set) error // Stop stops db and releases resources (e.g. connection pool). Stop() }
ManagedClusterLabelsSpecDB is the interface needed by the spec transport bridge to sync managed-cluster labels table.
type ManagedClusterLabelsState ¶
ManagedClusterLabelsState wraps the information that define a managed-cluster labels state.
type SpecDB ¶
type SpecDB interface { ManagedClusterLabelsSpecDB // Stop stops db and releases resources (e.g. connection pool). Stop() }
SpecDB is the needed interface for nonk8s-gitops DB related functionality.
type StatusDB ¶
type StatusDB interface { // GetAccessibleManagedClusters gets a map of hub -> set { managed-clusters } that are accessible with the given // filter clause (WHERE ...). GetAccessibleManagedClusters(ctx context.Context, tableName string, filterClause string) (map[string]set.Set, error) // Stop stops db and releases resources (e.g. connection pool). Stop() }
StatusDB is the needed interface for the db transport bridge to fetch information from status DB.
Click to show internal directories.
Click to hide internal directories.