baremetal

package
v0.1.0-beta.5 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDeployer

func NewDeployer(l logger.Logger, clusterName string, opts ...Option) (Interface, error)

func ValidateArtifact

func ValidateArtifact(sl validator.StructLevel)

func ValidateConfig

func ValidateConfig(config *bmconfig.Config) error

ValidateConfig validate config in bare-metal mode.

Types

type Deployer

type Deployer struct {
	// contains filtered or unexported fields
}

func (*Deployer) Config

func (d *Deployer) Config() *config.Config

func (*Deployer) CreateEtcdCluster

func (d *Deployer) CreateEtcdCluster(ctx context.Context, clusterName string, options *CreateEtcdClusterOptions) error

func (*Deployer) CreateGreptimeDBCluster

func (d *Deployer) CreateGreptimeDBCluster(ctx context.Context, clusterName string, options *CreateGreptimeDBClusterOptions) error

func (*Deployer) CreateGreptimeDBOperator

func (d *Deployer) CreateGreptimeDBOperator(ctx context.Context, name string, options *CreateGreptimeDBOperatorOptions) error

func (*Deployer) DeleteEtcdCluster

func (d *Deployer) DeleteEtcdCluster(ctx context.Context, name string, options *DeleteEtcdClusterOption) error

func (*Deployer) DeleteGreptimeDBCluster

func (d *Deployer) DeleteGreptimeDBCluster(ctx context.Context, name string, options *DeleteGreptimeDBClusterOption) error

func (*Deployer) GetGreptimeDBCluster

func (d *Deployer) GetGreptimeDBCluster(ctx context.Context, name string, options *GetGreptimeDBClusterOptions) (*GreptimeDBCluster, error)

func (*Deployer) ListGreptimeDBClusters

func (d *Deployer) ListGreptimeDBClusters(ctx context.Context, options *ListGreptimeDBClustersOptions) ([]*GreptimeDBCluster, error)

func (*Deployer) UpdateGreptimeDBCluster

func (d *Deployer) UpdateGreptimeDBCluster(ctx context.Context, name string, options *UpdateGreptimeDBClusterOptions) error

func (*Deployer) Wait

func (d *Deployer) Wait(ctx context.Context, option component.DeleteOptions) error

type Option

type Option func(*Deployer)

func WithBaseDir

func WithBaseDir(baseDir string) Option

func WithCreateNoDirs

func WithCreateNoDirs() Option

func WithEnableCache

func WithEnableCache(enableCache bool) Option

func WithGreptimeVersion

func WithGreptimeVersion(version string) Option

func WithMergeConfig

func WithMergeConfig(cfg *config.Config, rawConfig []byte) Option

WithMergeConfig merges config with current deployer config. It will perform WithReplaceConfig if any error occurs during merging or receive nil raw config.

func WithReplaceConfig

func WithReplaceConfig(cfg *config.Config) Option

WithReplaceConfig replaces config with current deployer config.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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