common

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 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 PluginModeNormal = "normal"
View Source
const PluginModeRecovery = "recovery"
View Source
const PluginName = "cnpg-plugin-wal-g"
View Source
const PluginNameDeprecated = "cnpg-extensions.yandex.cloud" // DEPRECATED: Kept for backward compatibility with existing public API

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:          PluginNameDeprecated,
	Version:       version.GetVersion(),
	DisplayName:   "CNPG Plugin WAL-G",
	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