hostparams

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostParams

type HostParams struct {
	Engine                          string
	Shape                           string
	MinStorageGB                    int
	EngineVersion                   string
	MasterUsername                  string
	SkipFinalSnapshotBeforeDeletion bool
	PubliclyAccessible              bool
	EnableIAMDatabaseAuthentication bool
	DeletionPolicy                  xpv1.DeletionPolicy
	Port                            int64
	// contains filtered or unexported fields
}

func GetActiveHostParams

func GetActiveHostParams(dbClaim *persistancev1.DatabaseClaim) *HostParams

func New

func New(config *viper.Viper, fragmentKey string, dbClaim *persistancev1.DatabaseClaim) (*HostParams, error)

func (*HostParams) HasEngineChanged

func (p *HostParams) HasEngineChanged(activeEngine string) bool

func (*HostParams) HasShapeChanged

func (p *HostParams) HasShapeChanged(activeShape string) bool

func (*HostParams) HasStorageChanged

func (p *HostParams) HasStorageChanged(activeStorage int) bool

func (*HostParams) HasVersionChanged

func (p *HostParams) HasVersionChanged(activeVersion string) bool

func (*HostParams) Hash

func (p *HostParams) Hash() string

func (*HostParams) IsUpgradeRequested

func (p *HostParams) IsUpgradeRequested(np *HostParams) bool

func (*HostParams) String

func (p *HostParams) String() string

Jump to

Keyboard shortcuts

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