version

package
v1.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureVersion

func EnsureVersion(clientset kubeapi.Interface, cr *api.PerconaPGCluster, vs VersionService) error

func GetPostgresqlVersion added in v1.2.0

func GetPostgresqlVersion(clientset kubeapi.Interface, cluster *crv1.Pgcluster) (string, error)

Types

type DepVersion

type DepVersion struct {
	PGBackrestImage       string `json:"pgBackrestImage,omitempty"`
	PGBackrestVersion     string `json:"pgBackrestVersion,omitempty"`
	PGBackrestRepoImage   string `json:"pgBackrestRepoImage,omitempty"`
	PGBackrestRepoVersion string `json:"pgBackrestRepoVersion,omitempty"`
	PMMImage              string `json:"pmmImage,omitempty"`
	PMMVersion            string `json:"pmmVersion,omitempty"`
	PostgresImage         string `json:"postgresImage,omitempty"`
	PostgresVersion       string `json:"postgresVersion,omitempty"`
	PGBouncerImage        string `json:"pgBouncerImage,omitempty"`
	PGBouncerVersion      string `json:"pgBouncerVersion,omitempty"`
	PGBadgerImage         string `json:"pgBadgerImage,omitempty"`
	PGBadgerVersion       string `json:"pgBadgerVersion,omitempty"`
}

type VersionService

type VersionService interface {
	GetExactVersion(cr *api.PerconaPGCluster, endpoint string, vm versionMeta) (DepVersion, error)
}

type VersionServiceClient

type VersionServiceClient struct {
	OpVersion string
}

func (VersionServiceClient) GetExactVersion

func (vs VersionServiceClient) GetExactVersion(cr *api.PerconaPGCluster, endpoint string, vm versionMeta) (DepVersion, error)

Jump to

Keyboard shortcuts

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