persistence

package
v0.15.3 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultSchema    Schema = "default"
	VisibilitySchema Schema = "visibility"

	CreateDefaultDatabaseScript             = "create-default-database.sh"
	SetupDefaultSchemaScript                = "setup-default-schema.sh"
	UpdateDefaultSchemaScript               = "update-default-schema.sh"
	CreateVisibilityDatabaseScript          = "create-visibility-database.sh"
	SetupVisibilitySchemaScript             = "setup-visibility-schema.sh"
	UpdateVisibilitySchemaScript            = "update-visibility-schema.sh"
	CreateSecondaryVisibilityDatabaseScript = "create-secondary-visibility-database.sh"
	SetupSecondaryVisibilitySchemaScript    = "setup-secondary-visibility-schema.sh"
	UpdateSecondaryVisibilitySchemaScript   = "update-secondary-visibility-schema.sh"
	CreateAdvancedVisibilityDatabaseScript  = "create-advanced-visibility-database.sh"
	SetupAdvancedVisibilitySchemaScript     = "setup-advanced-visibility-schema.sh"
	UpdateAdvancedVisibilitySchemaScript    = "update-advanced-visibility-schema.sh"
)

Variables

This section is empty.

Functions

func GetDatastoresEnvironmentVariables

func GetDatastoresEnvironmentVariables(datastores []*v1beta1.DatastoreSpec) []corev1.EnvVar

GetDatastoresEnvironmentVariables returns needed env vars for the provided datastores list.

func GetDatastoresVolumeMounts

func GetDatastoresVolumeMounts(datastores []*v1beta1.DatastoreSpec) []corev1.VolumeMount

GetDatastoresVolumeMounts returns needed volume mounts for the provided datastores list.

func GetDatastoresVolumes

func GetDatastoresVolumes(datastores []*v1beta1.DatastoreSpec) []corev1.Volume

GetDatastoresVolumes returns needed volume for the provided datastores list.

Types

type Schema

type Schema string

type SchemaJobBuilder

type SchemaJobBuilder struct {
	// contains filtered or unexported fields
}

func NewSchemaJobBuilder

func NewSchemaJobBuilder(instance *v1beta1.TemporalCluster, scheme *runtime.Scheme, name string, command []string) *SchemaJobBuilder

func (*SchemaJobBuilder) Build

func (b *SchemaJobBuilder) Build() client.Object

func (*SchemaJobBuilder) Enabled

func (b *SchemaJobBuilder) Enabled() bool

func (*SchemaJobBuilder) Update

func (b *SchemaJobBuilder) Update(object client.Object) error

type SchemaScriptsConfigmapBuilder

type SchemaScriptsConfigmapBuilder struct {
	// contains filtered or unexported fields
}

func NewSchemaScriptsConfigmapBuilder

func NewSchemaScriptsConfigmapBuilder(instance *v1beta1.TemporalCluster, scheme *runtime.Scheme) *SchemaScriptsConfigmapBuilder

func (*SchemaScriptsConfigmapBuilder) Build

func (*SchemaScriptsConfigmapBuilder) Enabled

func (b *SchemaScriptsConfigmapBuilder) Enabled() bool

func (*SchemaScriptsConfigmapBuilder) GetStoreCreateTemplate added in v0.14.0

func (b *SchemaScriptsConfigmapBuilder) GetStoreCreateTemplate(spec *v1beta1.DatastoreSpec) (string, error)

func (*SchemaScriptsConfigmapBuilder) GetStoreSetupTemplate added in v0.14.0

func (b *SchemaScriptsConfigmapBuilder) GetStoreSetupTemplate(spec *v1beta1.DatastoreSpec) (string, error)

func (*SchemaScriptsConfigmapBuilder) GetStoreUpdateTemplate added in v0.14.0

func (b *SchemaScriptsConfigmapBuilder) GetStoreUpdateTemplate(spec *v1beta1.DatastoreSpec, targetSchema Schema) (string, error)

func (*SchemaScriptsConfigmapBuilder) Update

Jump to

Keyboard shortcuts

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