db

package
v1.83.5 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CACert = "ca.crt"
	CAKey  = "ca.key"
)

Variables

View Source
var ErrNoCurrentState = errors.New("no current state for database found")

Functions

func CertsSecret

func CertsSecret(user string) string

func InitChownCerts

func InitChownCerts(
	customImageRegistry string,
	permissions string,
	users []string,
	to corev1.VolumeMount,
) (
	volumes []corev1.Volume,
	init corev1.Container,
)

func SetQueriedForDatabase

func SetQueriedForDatabase(queried map[string]interface{}, databaseCurrent *tree.Tree)

func UserCert

func UserCert(user string) string

func UserKey

func UserKey(user string) string

Types

type Connection

type Connection interface {
	Host() string
	Port() string
	User() string
	PasswordSecret() (*labels.Selectable, string)
	SSL() *SSL
	Options() string
	CACert() []byte
	CAKey() *rsa.PrivateKey
}

func ParseQueriedForDatabase

func ParseQueriedForDatabase(queried map[string]interface{}) (Connection, error)

type SSL

type SSL struct {
	RootCert       bool
	UserCertAndKey bool
}

Jump to

Keyboard shortcuts

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