k8s

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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 databaseapi.DatabaseId) string

GetDatabaseNamespace returns the Database namespace for the given database ID

func GetPartitionIDFromPartitionAnnotations

func GetPartitionIDFromPartitionAnnotations(partition *v1beta3.Partition) (int32, error)

GetPartitionIDFromPartitionAnnotations returns the partition ID from the given partition annotations

func GetPartitionLabelsForDatabase

func GetPartitionLabelsForDatabase(database *v1beta3.Database) map[string]string

GetPartitionLabelsForDatabase returns the labels for the partitions in the given database

func GetPartitionName

func GetPartitionName(database *v1beta3.Database, partition int) string

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

func GetPartitionServiceName(database *v1beta3.Database, partition int) string

GetPartitionServiceName returns the service name for the given partition

func GetQualifiedControllerName

func GetQualifiedControllerName() string

GetQualifiedControllerName returns the qualified controller name

func NewDatabaseProto

func NewDatabaseProto(database *v1beta3.Database) *databaseapi.Database

NewDatabaseProto returns a Database proto message for the given Database

func NewPartition

func NewPartition(database *v1beta3.Database, partition int) *v1beta3.Partition

NewPartition returns the configuration for the given partition

func NewPartitionProto

func NewPartitionProto(p *v1beta3.Partition) *databaseapi.Partition

NewPartitionProto returns the partition proto message for the given Partition

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL