persistence

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSQLconfigFromDatastoreSpec

func NewSQLconfigFromDatastoreSpec(spec *v1alpha1.TemporalDatastoreSpec) *config.SQL

NewSQLconfigFromDatastoreSpec creates a new instance of a temporal SQL config from the provided TemporalDatastoreSpec.

Types

type Manager

type Manager struct {
	client.Client

	SchemaFilePath string
}

Manager handler persistence receonciliation.

func NewManager

func NewManager(c client.Client, schemaFilePath string) *Manager

NewManager creates a new instance of the persistence manager.

func (*Manager) RunDefaultStoreSchemaTasks

func (m *Manager) RunDefaultStoreSchemaTasks(ctx context.Context, cluster *v1alpha1.TemporalCluster) error

RunDefaultStoreSchemaTasks runs the setup and update default schema tasks on the provided cluster's default store.

func (*Manager) RunVisibilityStoreSchemaTasks

func (m *Manager) RunVisibilityStoreSchemaTasks(ctx context.Context, cluster *v1alpha1.TemporalCluster) error

RunVisibilityStoreSchemaTasks runs the setup and update visibility schema tasks on the provided cluster's visibility store.

type Schema

type Schema string
const (
	DefaultSchema    Schema = "default"
	VisibilitySchema Schema = "visibility"
)

Jump to

Keyboard shortcuts

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