provision

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Overview

Package provision provisions database clusters.

Package provision ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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
	}

	DB struct {
		Version string
	}

	Nodes  int
	CPU    string
	Memory string
	Disk   string

	ExternalAccess bool `mapstructure:"external-access"`
}

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