delete

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package delete ...

Package delete deletes database clusters.

Package delete ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

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

Cluster implements logic for the cluster command.

func NewCluster

func NewCluster(c ClusterConfig, everestClient everestClientConnector, l *zap.SugaredLogger) (*Cluster, error)

NewCluster returns a new Cluster struct.

func (*Cluster) Run

func (c *Cluster) Run(ctx context.Context) error

Run runs the cluster command.

type ClusterConfig

type ClusterConfig struct {
	// Name is a name of the Kubernetes cluster in Everest
	Name string

	Everest struct {
		// Endpoint stores URL to Everest.
		Endpoint string
	}

	// KubeconfigPath is a path to a kubeconfig
	KubeconfigPath string `mapstructure:"kubeconfig"`

	// Force is true when we shall not prompt for removal.
	Force bool
}

ClusterConfig stores configuration for the Cluster command.

type MySQL

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

MySQL implements logic for the MySQL command.

func NewMySQL

func NewMySQL(c MySQLConfig, everestClient everestClientConnector, l *zap.SugaredLogger) *MySQL

NewMySQL returns a new MySQL struct.

func (*MySQL) Run

func (m *MySQL) Run(ctx context.Context) error

Run runs the MySQL command.

type MySQLConfig

type MySQLConfig struct {
	Name         string
	KubernetesID string `mapstructure:"kubernetes-id"`

	Everest struct {
		// Endpoint stores URL to Everest.
		Endpoint string
	}

	// Force is true when we shall not prompt for removal.
	Force bool
}

MySQLConfig stores configuration for the MySQL command.

Jump to

Keyboard shortcuts

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