config

package
v4.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_AUTOFAIL_SLEEP_SECONDS = "30"

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterStruct

type ClusterStruct struct {
	CCPImagePrefix  string `yaml:"CCPImagePrefix"`
	CCPImageTag     string `yaml:"CCPImageTag"`
	Policies        string `yaml:"Policies"`
	Port            string `yaml:"Port"`
	ArchiveTimeout  string `yaml:"ArchiveTimeout"`
	ArchiveMode     string `yaml:"ArchiveMode"`
	User            string `yaml:"User"`
	Database        string `yaml:"Database"`
	PasswordAgeDays string `yaml:"PasswordAgeDays"`
	PasswordLength  string `yaml:"PasswordLength"`
	Strategy        string `yaml:"Strategy"`
	Replicas        string `yaml:"Replicas"`
}

type ContainerResourcesStruct

type ContainerResourcesStruct struct {
	RequestsMemory string `yaml:"RequestsMemory"`
	RequestsCPU    string `yaml:"RequestsCPU"`
	LimitsMemory   string `yaml:"LimitsMemory"`
	LimitsCPU      string `yaml:"LimitsCPU"`
}

type PgoConfig

type PgoConfig struct {
	BasicAuth                 string                              `yaml:"BasicAuth"`
	Cluster                   ClusterStruct                       `yaml:"Cluster"`
	Pgo                       PgoStruct                           `yaml:"Pgo"`
	ContainerResources        map[string]ContainerResourcesStruct `yaml:"ContainerResources"`
	PrimaryStorage            string                              `yaml:"PrimaryStorage"`
	BackupStorage             string                              `yaml:"BackupStorage"`
	ReplicaStorage            string                              `yaml:"ReplicaStorage"`
	Storage                   map[string]StorageStruct            `yaml:"Storage"`
	DefaultContainerResources string                              `yaml:"DefaultContainerResources"`
}

func (*PgoConfig) GetConf

func (c *PgoConfig) GetConf() *PgoConfig

func (*PgoConfig) GetContainerResource

func (c *PgoConfig) GetContainerResource(name string) (crv1.PgContainerResources, error)

func (*PgoConfig) GetStorageSpec

func (c *PgoConfig) GetStorageSpec(name string) (crv1.PgStorageSpec, error)

func (*PgoConfig) Validate

func (c *PgoConfig) Validate() error

type PgoStruct

type PgoStruct struct {
	AutofailSleepSeconds string `yaml:"AutofailSleepSeconds"`
	Audit                bool   `yaml:"Audit"`
	Metrics              bool   `yaml:"Metrics"`
	LSPVCTemplate        string `yaml:"LSPVCTemplate"`
	LoadTemplate         string `yaml:"LoadTemplate"`
	COImagePrefix        string `yaml:"COImagePrefix"`
	COImageTag           string `yaml:"COImageTag"`
}

type StorageStruct

type StorageStruct struct {
	AccessMode         string `yaml:"AccessMode"`
	Size               string `yaml:"Size"`
	StorageType        string `yaml:"StorageType"`
	StorageClass       string `yaml:"StorageClass"`
	Fsgroup            string `yaml:"Fsgroup"`
	SupplementalGroups string `yaml:"SupplementalGroups"`
}

Jump to

Keyboard shortcuts

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