cockroachdb

package
v1.87.5 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Adapter

func Adapter(apiLabels *labels.API) operator.AdaptFunc

Types

type Current

type Current struct {
	Common  *tree.Common `yaml:",inline"`
	Current struct {
		Host              string
		Port              string
		Cluster           string
		User              string
		PasswordSecret    *labels.Selectable
		PasswordSecretKey string
		Secure            bool
		CACert            []byte
		CAKey             *rsa.PrivateKey
	}
}

func (*Current) CACert

func (c *Current) CACert() []byte

func (*Current) CAKey

func (c *Current) CAKey() *rsa.PrivateKey

func (*Current) ConnectionParams

func (c *Current) ConnectionParams(certsDir string) string

func (*Current) Host

func (c *Current) Host() string

func (*Current) Options

func (c *Current) Options() string

func (*Current) PasswordSecret

func (c *Current) PasswordSecret() (*labels.Selectable, string)

func (*Current) Port

func (c *Current) Port() string

func (*Current) SSL

func (c *Current) SSL() *db.SSL

func (*Current) User

func (c *Current) User() string

type DesiredV0

type DesiredV0 struct {
	Common *tree.Common `yaml:",inline"`
	Spec   *Spec
}

type Spec

type Spec struct {
	Verbose                bool
	Host                   string
	Port                   uint16
	Cluster                string
	User                   string
	Certificate            *secret.Secret   `yaml:"certificate,omitempty"`
	ExistingCertificate    *secret.Existing `yaml:"existingCertificate,omitempty"`
	CertificateKey         *secret.Secret   `yaml:"certificateKey,omitempty"`
	ExistingCertificateKey *secret.Existing `yaml:"existingCertificateKey,omitempty"`
	Password               *secret.Secret   `yaml:"password,omitempty"`
	ExistingPassword       *secret.Existing `yaml:"existingPassword,omitempty"`
}

Jump to

Keyboard shortcuts

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