deployer

package
v0.1.0-alpha.12 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateEtcdClusterOptions

type CreateEtcdClusterOptions struct {
	EtcdChartVersion string

	ImageRegistry        string `helm:"image.registry"`
	EtcdStorageClassName string `helm:"storage.storageClassName"`
	EtcdStorageSize      string `helm:"storage.volumeSize"`
}

CreateEtcdClusterOptions is the options to create an etcd cluster.

type CreateGreptimeDBClusterOptions

type CreateGreptimeDBClusterOptions struct {
	GreptimeDBChartVersion string

	ImageRegistry               string `helm:"image.registry"`
	DatanodeStorageClassName    string `helm:"datanode.storage.storageClassName"`
	DatanodeStorageSize         string `helm:"datanode.storage.storageSize"`
	DatanodeStorageRetainPolicy string `helm:"datanode.storage.storageRetainPolicy"`
	EtcdEndPoint                string `helm:"etcdEndpoints"`
}

CreateGreptimeDBClusterOptions is the options to create a GreptimeDB cluster.

type CreateGreptimeDBOperatorOptions

type CreateGreptimeDBOperatorOptions struct {
	GreptimeDBOperatorChartVersion string

	ImageRegistry string `helm:"image.registry"`
}

CreateGreptimeDBOperatorOptions is the options to create a GreptimeDB operator.

type DeleteEtcdClusterOption

type DeleteEtcdClusterOption struct{}

DeleteEtcdClusterOption is the options to delete an etcd cluster.

type DeleteGreptimeDBClusterOption

type DeleteGreptimeDBClusterOption struct{}

DeleteGreptimeDBClusterOption is the options to delete a GreptimeDB cluster.

type GetGreptimeDBClusterOptions

type GetGreptimeDBClusterOptions struct{}

GetGreptimeDBClusterOptions is the options to get a GreptimeDB cluster.

type GreptimeDBCluster

type GreptimeDBCluster struct {
	// Raw can be *greptimedbclusterv1alpha1.GreptimeDBCluster.
	Raw interface{}
}

GreptimeDBCluster is the internal type of gtctl to describe GreptimeDB cluster. We want to make the Depolyer decouple from K8s or any other specified envioronment.

type Interface

type Interface interface {
	// GetGreptimeDBCluster get the current deployed GreptimeDBCluster by its name.
	// The name is the namespaced name(<namespace>/<name>) in Kubernetes.
	GetGreptimeDBCluster(ctx context.Context, name string, options *GetGreptimeDBClusterOptions) (*GreptimeDBCluster, error)

	// ListGreptimeDBClusters list all the deployed GreptimeDBClusters.
	ListGreptimeDBClusters(ctx context.Context, options *ListGreptimeDBClustersOptions) ([]*GreptimeDBCluster, error)

	// CreateGreptimeDBCluster create a GreptimeDBCluster with the given cluster name.
	// The name is the namespaced name(<namespace>/<name>) in Kubernetes.
	CreateGreptimeDBCluster(ctx context.Context, name string, options *CreateGreptimeDBClusterOptions) error

	// UpdateGreptimeDBCluster update the GreptimeDBCluster spec with the given cluster name.
	// The name is the namespaced name(<namespace>/<name>) in Kubernetes.
	UpdateGreptimeDBCluster(ctx context.Context, name string, options *UpdateGreptimeDBClusterOptions) error

	// DeleteGreptimeDBCluster delete the GreptimeDBCluster with the given cluster name.
	// The name is the namespaced name(<namespace>/<name>) in Kubernetes.
	DeleteGreptimeDBCluster(ctx context.Context, name string, options *DeleteGreptimeDBClusterOption) error

	// CreateEtcdCluster create etcd cluster with the given cluster name.
	// The name is the namespaced name(<namespace>/<name>) in Kubernetes.
	CreateEtcdCluster(ctx context.Context, name string, options *CreateEtcdClusterOptions) error

	// DeleteEtcdCluster delete the etcd cluster with the given cluster name.
	// The name is the namespaced name(<namespace>/<name>) in Kubernetes.
	DeleteEtcdCluster(ctx context.Context, name string, options *DeleteEtcdClusterOption) error

	// CreateGreptimeDBOperator create a GreptimeDBOperator with the given operator name.
	// The name is the namespaced name(<namespace>/<name>) in Kubernetes.
	// The API only works for Kubernetes.
	CreateGreptimeDBOperator(ctx context.Context, name string, options *CreateGreptimeDBOperatorOptions) error
}

Interface is the general interface to handle the deployment of GreptimeDB cluster in different envrionment.

type ListGreptimeDBClustersOptions

type ListGreptimeDBClustersOptions struct{}

ListGreptimeDBClustersOptions is the options to list all the GreptimeDB clusters.

type UpdateGreptimeDBClusterOptions

type UpdateGreptimeDBClusterOptions struct {
	NewCluster *GreptimeDBCluster
}

UpdateGreptimeDBClusterOptions is the options to update a GreptimeDB cluster.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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