common

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const PluginModeNormal = "normal"
View Source
const PluginModeRecovery = "recovery"
View Source
const PluginName = "cnpg-extensions.yandex.cloud"

PluginName is the name of the plugin from the instance manager Point-of-view

Variables

View Source
var AllowedPluginModes = []string{PluginModeNormal, PluginModeRecovery}
View Source
var PluginMetadata = identity.GetPluginMetadataResponse{
	Name:          PluginName,
	Version:       version.GetVersion(),
	DisplayName:   "CNPGYandexExtensions",
	ProjectUrl:    "https://github.com/wal-g/cnpg-plugin-wal-g",
	RepositoryUrl: "https://github.com/wal-g/cnpg-plugin-wal-g",
	License:       "APACHE 2.0",
	LicenseUrl:    "https://github.com/wal-g/cnpg-plugin-wal-g/LICENSE",
	Maturity:      "beta",
}

PluginMetadata is the metadata of this plugin.

Functions

func CnpgBackupFromJSON added in v0.2.0

func CnpgBackupFromJSON(backupJSON []byte) (*cnpgv1.Backup, error)

CnpgBackupFromJSON decodes a JSON representation of a CNPG Backup.

func CnpgClusterFromJSON

func CnpgClusterFromJSON(clusterJSON []byte) (*cnpgv1.Cluster, error)

CnpgClusterFromJSON decodes a JSON representation of a CNPG cluster.

func GetInitContainerRestartPolicy added in v0.2.2

func GetInitContainerRestartPolicy(cluster *cnpgv1.Cluster) *corev1.ContainerRestartPolicy

GetInitContainerRestartPolicy returns the restart policy configuration for init containers. Returns the policy pointer, or nil if no restart policy should be set. Supports "Always" (default) and "unset" values.

func GetPluginConfigFromCluster

func GetPluginConfigFromCluster(cluster *cnpgv1.Cluster) *cnpgv1.PluginConfiguration

func GetRecoveryPluginConfigFromCluster

func GetRecoveryPluginConfigFromCluster(cluster *cnpgv1.Cluster) *cnpgv1.PluginConfiguration

Types

This section is empty.

Jump to

Keyboard shortcuts

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