Documentation ¶
Index ¶
- func NewDeployer(l logger.Logger, clusterName string, opts ...Option) (Interface, error)
- func ValidateArtifact(sl validator.StructLevel)
- func ValidateConfig(config *bmconfig.Config) error
- type Deployer
- func (d *Deployer) Config() *config.Config
- func (d *Deployer) CreateEtcdCluster(ctx context.Context, clusterName string, options *CreateEtcdClusterOptions) error
- func (d *Deployer) CreateGreptimeDBCluster(ctx context.Context, clusterName string, ...) error
- func (d *Deployer) CreateGreptimeDBOperator(ctx context.Context, name string, options *CreateGreptimeDBOperatorOptions) error
- func (d *Deployer) DeleteEtcdCluster(ctx context.Context, name string, options *DeleteEtcdClusterOption) error
- func (d *Deployer) DeleteGreptimeDBCluster(ctx context.Context, name string, options *DeleteGreptimeDBClusterOption) error
- func (d *Deployer) GetGreptimeDBCluster(ctx context.Context, name string, options *GetGreptimeDBClusterOptions) (*GreptimeDBCluster, error)
- func (d *Deployer) ListGreptimeDBClusters(ctx context.Context, options *ListGreptimeDBClustersOptions) ([]*GreptimeDBCluster, error)
- func (d *Deployer) UpdateGreptimeDBCluster(ctx context.Context, name string, options *UpdateGreptimeDBClusterOptions) error
- func (d *Deployer) Wait(ctx context.Context, option component.DeleteOptions) error
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDeployer ¶
func ValidateArtifact ¶
func ValidateArtifact(sl validator.StructLevel)
func ValidateConfig ¶
ValidateConfig validate config in bare-metal mode.
Types ¶
type Deployer ¶
type Deployer struct {
// contains filtered or unexported fields
}
func (*Deployer) CreateEtcdCluster ¶
func (*Deployer) CreateGreptimeDBCluster ¶
func (*Deployer) CreateGreptimeDBOperator ¶
func (*Deployer) DeleteEtcdCluster ¶
func (*Deployer) DeleteGreptimeDBCluster ¶
func (*Deployer) GetGreptimeDBCluster ¶
func (*Deployer) ListGreptimeDBClusters ¶
func (*Deployer) UpdateGreptimeDBCluster ¶
type Option ¶
type Option func(*Deployer)
func WithBaseDir ¶
func WithCreateNoDirs ¶
func WithCreateNoDirs() Option
func WithEnableCache ¶
func WithGreptimeVersion ¶
func WithMergeConfig ¶
WithMergeConfig merges config with current deployer config. It will perform WithReplaceConfig if any error occurs during merging or receive nil raw config.
func WithReplaceConfig ¶
WithReplaceConfig replaces config with current deployer config.
Click to show internal directories.
Click to hide internal directories.