manager

package
v0.1.0-alpha.6 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultGreptimeDBChartVersion         = "0.1.1-alpha.2"
	DefaultGreptimeDBOperatorChartVersion = "0.1.1-alpha.2"
	DefaultEtcdChartVersion               = "0.1.1-alpha.1"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateClusterOptions

type CreateClusterOptions struct {
	ClusterName         string
	Namespace           string
	StorageClassName    string
	StorageSize         string
	StorageRetainPolicy string
	GreptimeDBVersion   string
	Registry            string
	EtcdEndPoint        string

	Timeout time.Duration
	DryRun  bool
}

type CreateEtcdOptions

type CreateEtcdOptions struct {
	Name                 string
	Namespace            string
	Registry             string
	EtcdChartsVersion    string
	EtcdStorageClassName string
	EtcdStorageSize      string

	Timeout time.Duration
	DryRun  bool
}

type CreateOperatorOptions

type CreateOperatorOptions struct {
	Namespace       string
	OperatorVersion string
	Registry        string

	Timeout time.Duration
	DryRun  bool
}

type DeleteClusterOption

type DeleteClusterOption struct {
	ClusterName string
	Namespace   string
}

type DeleteEtcdClusterOption

type DeleteEtcdClusterOption struct {
	Name      string
	Namespace string
}

type GetClusterOptions

type GetClusterOptions struct {
	ClusterName string
	Namespace   string
}

type ListClusterOptions

type ListClusterOptions struct{}

type Manager

type Manager interface {
	GetCluster(ctx context.Context, options *GetClusterOptions) (*greptimedbv1alpha1.GreptimeDBCluster, error)
	ListClusters(ctx context.Context, options *ListClusterOptions) (*greptimedbv1alpha1.GreptimeDBClusterList, error)
	CreateCluster(ctx context.Context, options *CreateClusterOptions) error
	UpdateCluster(ctx context.Context, options *UpdateClusterOptions) error
	DeleteCluster(ctx context.Context, options *DeleteClusterOption) error
	CreateOperator(ctx context.Context, options *CreateOperatorOptions) error
	DeleteEtcdCluster(ctx context.Context, options *DeleteEtcdClusterOption) error
	CreateEtcdCluster(ctx context.Context, options *CreateEtcdOptions) error
}

Manager manage the cluster resources.

func New

func New(l log.Logger, dryRun bool) (Manager, error)

type UpdateClusterOptions

type UpdateClusterOptions struct {
	ClusterName string
	Namespace   string
	Timeout     time.Duration
	NewCluster  *greptimedbv1alpha1.GreptimeDBCluster
}

Jump to

Keyboard shortcuts

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