Documentation
¶
Index ¶
- func GetControllerName() string
- func GetControllerNamespace() string
- func GetDatabaseNamespace(id *api.DatabaseId) string
- func GetPartitionIDFromPartitionAnnotations(partition *v1beta3.Partition) (int32, error)
- func GetPartitionLabelsForDatabase(database *v1beta3.Database) map[string]string
- func GetPartitionName(database *v1beta3.Database, partition int) string
- func GetPartitionNamespacedName(database *v1beta3.Database, partition int) types.NamespacedName
- func GetPartitionServiceName(database *v1beta3.Database, partition int) string
- func GetQualifiedControllerName() string
- func NewDatabaseProto(database *v1beta3.Database) *api.Database
- func NewPartition(database *v1beta3.Database, partition int) *v1beta3.Partition
- func NewPartitionProto(p *v1beta3.Partition) (*api.Partition, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 GetPartitionIDFromPartitionAnnotations ¶
GetPartitionIDFromPartitionAnnotations returns the partition ID from the given partition annotations
func GetPartitionLabelsForDatabase ¶
GetPartitionLabelsForDatabase returns the labels for the partitions in the given database
func GetPartitionName ¶
GetPartitionName returns the partition name for the given partition
func GetPartitionNamespacedName ¶
func GetPartitionNamespacedName(database *v1beta3.Database, partition int) types.NamespacedName
GetPartitionNamespacedName returns the NamespacedName for the given partition
func GetPartitionServiceName ¶
GetPartitionServiceName returns the service name for the given partition
func GetQualifiedControllerName ¶
func GetQualifiedControllerName() string
GetQualifiedControllerName returns the qualified controller name
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.