Documentation
¶
Index ¶
- func GetClusterIDFromClusterAnnotations(cluster *v1beta2.Cluster) (int32, error)
- func GetClusterLabelsForDatabase(database *v1beta2.Database) map[string]string
- func GetClusterName(database *v1beta2.Database, cluster int) string
- func GetClusterNamespacedName(database *v1beta2.Database, cluster int) types.NamespacedName
- func GetControllerName() string
- func GetControllerNamespace() string
- func GetDatabaseNamespace(id *api.DatabaseId) string
- func GetPartitionLabelsForCluster(cluster *v1beta2.Cluster) map[string]string
- func GetPartitionLabelsForDatabase(database *v1beta2.Database) map[string]string
- func GetPartitionName(cluster *v1beta2.Cluster, partition int32) string
- func GetPartitionNamespacedName(cluster *v1beta2.Cluster, partition int32) types.NamespacedName
- func GetQualifiedControllerName() string
- func NewCluster(database *v1beta2.Database, cluster int) *v1beta2.Cluster
- func NewDatabaseProto(database *v1beta2.Database) *api.Database
- func NewPartition(cluster *v1beta2.Cluster, partition int32) *v1beta2.Partition
- func NewPartitionProto(p *v1beta2.Partition) (*api.Partition, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClusterIDFromClusterAnnotations ¶
GetClusterIDFromClusterAnnotations returns the cluster ID from the given cluster annotations
func GetClusterLabelsForDatabase ¶
GetClusterLabelsForDatabase returns the labels for the clusters in the given database
func GetClusterName ¶
GetClusterName returns the cluster name for the given cluster
func GetClusterNamespacedName ¶
func GetClusterNamespacedName(database *v1beta2.Database, cluster int) types.NamespacedName
GetClusterNamespacedName returns the NamespacedName for the given cluster
func GetControllerName ¶
func GetControllerName() string
GetControllerName gets the name of the current controller from the environment
func GetControllerNamespace ¶
func GetControllerNamespace() string
GetControllerNamespace gets the controller's namespace from the environment
func GetDatabaseNamespace ¶
func GetDatabaseNamespace(id *api.DatabaseId) string
GetDatabaseNamespace returns the Database namespace for the given database ID
func GetPartitionLabelsForCluster ¶
GetPartitionLabelsForCluster returns the labels for the partitions in the given cluster
func GetPartitionLabelsForDatabase ¶
GetPartitionLabelsForDatabase returns the labels for the partitions in the given database
func GetPartitionName ¶
GetPartitionName returns the partition name for the given cluster
func GetPartitionNamespacedName ¶
func GetPartitionNamespacedName(cluster *v1beta2.Cluster, partition int32) types.NamespacedName
GetPartitionNamespacedName returns the NamespacedName for the given partition
func GetQualifiedControllerName ¶
func GetQualifiedControllerName() string
GetQualifiedControllerName returns the qualified controller name
func NewCluster ¶
NewCluster returns the configuration for the given cluster
func NewDatabaseProto ¶
NewDatabaseProto returns a Database proto message for the given Database
func NewPartition ¶
NewPartition returns the configuration for the given partition
Types ¶
This section is empty.