cluster

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterNameFromURI

func ClusterNameFromURI(uri string) string

ClusterNameFromURI extracts the server name from the uri (removing prefix/suffix)

func Difference

Difference returns the difference of the DB & Schema slices i.e. elemnts in a not found in b. in the case of multiple Schemas we only diff them.

func Union

Union returns a union of the DB & Schema slices

Types

type Cluster

type Cluster interface {
	AquireTargets(filter schemav1alpha1.TargetFilter) (schemav1alpha1.ClusterTargets, error)
	Execute(targets schemav1alpha1.ClusterTargets, config schemav1alpha1.ExecutionConfiguration) (schemav1alpha1.ClusterTargets, error)
	CreateExecConfiguration(targets schemav1alpha1.ClusterTargets, cfgMap *v1.ConfigMap, failIfDataLoss bool) (schemav1alpha1.ExecutionConfiguration, error)
}

Cluster interaface represents a DB cluster type that we can execute upon

func NewCluster

func NewCluster(clusterType schemav1alpha1.DBTypeEnum, uri string, c client.Client, notifier utils.NotifyProgressFunc) Cluster

NewCluster will create an appropriate cluster implementation for the given type.

Jump to

Keyboard shortcuts

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