sts

package
v0.0.0-...-fc21188 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_IMAGE        = "docker.io/mariadb:10"
	DEFAULT_CLIENT_PORT  = 3306
	DEFAULT_TRAFFIC_PORT = 4567
	DEFAULT_IST_PORT     = 4568
	DEFAULT_SST_PORT     = 4444
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DatabaseAccount

type DatabaseAccount struct {
	MysqlUser, MysqlPassword, MysqlDatabase, MysqlRootPassword string
}

type MariadbGaleraRecipient

type MariadbGaleraRecipient struct {
	DatabaseAccount
	Name, Namespace                                                            string
	CustomResourceName, ServiceName                                            string
	Image, ClientPortName, TrafficTcpName, TrafficUdpName, IstName, SstName    string
	Replications, ClientPort, TrafficTcpPort, TrafficUdpPort, IstPort, SstPort int
	Quorum                                                                     *uint8
	Weights                                                                    []*uint8
	Count                                                                      int
	ClusterName                                                                string
}

func NewMariadbGaleraRecipient

func NewMariadbGaleraRecipient(name, namespace, crn, service string, count *uint8, dbaccount *DatabaseAccount) *MariadbGaleraRecipient

func NewMariadbGaleraRecipient1

func NewMariadbGaleraRecipient1(name, namespace, crn, service, cluster string, count *uint8, dbaccount *DatabaseAccount) *MariadbGaleraRecipient

func (*MariadbGaleraRecipient) Create

func (recipe *MariadbGaleraRecipient) Create() (*v1beta2.StatefulSet, error)

func (*MariadbGaleraRecipient) Parse

func (recipe *MariadbGaleraRecipient) Parse() (*bytes.Buffer, error)

Jump to

Keyboard shortcuts

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