persistence

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 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"
)
View Source
const ServiceNameSuffix = "schema-setup"

ServiceNameSuffix is used as suffix in resource names for persistence setup jobs in place of a ServiceName.

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