binlogserver

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2025 License: Apache-2.0 Imports: 9 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	AppName = "binlog-server"

	CredsMountPath = "/etc/mysql/mysql-users-secret"

	ConfigKey = "config.json"
)

Variables

This section is empty.

Functions

func ConfigSecretName

func ConfigSecretName(cr *apiv1.PerconaServerMySQL) string

func MatchLabels

func MatchLabels(cr *apiv1.PerconaServerMySQL) map[string]string

func Name

func StatefulSet

func StatefulSet(cr *apiv1.PerconaServerMySQL, initImage, configHash string) *appsv1.StatefulSet

Types

type Configurable

type Configurable apiv1.PerconaServerMySQL

func (*Configurable) ExecuteConfigurationTemplate

func (c *Configurable) ExecuteConfigurationTemplate(input string, memory *resource.Quantity) (string, error)

func (*Configurable) GetConfigMapKey

func (c *Configurable) GetConfigMapKey() string

func (*Configurable) GetConfigMapName

func (c *Configurable) GetConfigMapName() string

func (*Configurable) GetConfiguration

func (c *Configurable) GetConfiguration() string

func (*Configurable) GetResources

func (c *Configurable) GetResources() corev1.ResourceRequirements

type Configuration

type Configuration struct {
	Logger      Logger      `json:"logger,omitempty"`
	Connection  Connection  `json:"connection"`
	Replication Replication `json:"replication,omitempty"`
	Storage     Storage     `json:"storage,omitempty"`
}

type Connection

type Connection struct {
	Host           string `json:"host,omitempty"`
	Port           int32  `json:"port,omitempty"`
	User           string `json:"user,omitempty"`
	Password       string `json:"password,omitempty"`
	ConnectTimeout int32  `json:"connect_timeout,omitempty"`
	ReadTimeout    int32  `json:"read_timeout,omitempty"`
	WriteTimeout   int32  `json:"write_timeout,omitempty"`
}

type Logger

type Logger struct {
	Level string `json:"level,omitempty"`
	File  string `json:"file,omitempty"`
}

type Replication

type Replication struct {
	ServerID int32 `json:"server_id,omitempty"`
	IdleTime int32 `json:"idle_time,omitempty"`
}

type Storage

type Storage struct {
	URI string `json:"uri,omitempty"`
}

Jump to

Keyboard shortcuts

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