common

package
v0.0.0-...-a834cfb Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: UPL-1.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckResourceState

func CheckResourceState(logger logr.Logger, dbClient database.DatabaseClient, Id string, currentState string, expectedState string) (string, error)

func CreateAndGetDbcsId

func CreateAndGetDbcsId(logger logr.Logger, kubeClient client.Client, dbClient database.DatabaseClient, dbcs *databasev1alpha1.DbcsSystem, nwClient core.VirtualNetworkClient, wrClient workrequests.WorkRequestClient) (string, error)

func DeleteDbcsSystemSystem

func DeleteDbcsSystemSystem(dbClient database.DatabaseClient, Id string) error

Delete DbcsSystem System

func GetAdminPassword

func GetAdminPassword(kubeClient client.Client, dbcs *databasev1alpha1.DbcsSystem) (string, error)

Get admin password from Secret then OCI valut secret

func GetDbLatestVersion

func GetDbLatestVersion(dbClient database.DatabaseClient, dbcs *databasev1alpha1.DbcsSystem, dbSystemId string) (string, error)

func GetDbSystemId

func GetDbSystemId(logger logr.Logger, dbClient database.DatabaseClient, dbcs *databasev1alpha1.DbcsSystem) error

func GetFmtStr

func GetFmtStr(pstr string) string

func GetInitialStorage

func GetInitialStorage(
	dbcs *databasev1alpha1.DbcsSystem) int

func GetKeyValue

func GetKeyValue(str1 string) string

func GetListDatabaseRsp

func GetListDatabaseRsp(logger logr.Logger, dbClient database.DatabaseClient, dbcs *databasev1alpha1.DbcsSystem, dbHomeId string) (database.ListDatabasesResponse, error)

func GetNodeCount

func GetNodeCount(
	dbcs *databasev1alpha1.DbcsSystem) int

func GetResourceState

func GetResourceState(logger logr.Logger, dbClient database.DatabaseClient, Id string) (string, error)

func GetTdePassword

func GetTdePassword(kubeClient client.Client, dbcs *databasev1alpha1.DbcsSystem) (string, error)

Get admin password from Secret then OCI valut secret

func PopulateDBDetails

func PopulateDBDetails(logger logr.Logger, dbClient database.DatabaseClient, dbcs *databasev1alpha1.DbcsSystem) error

func SetDBCSDatabaseLifecycleState

func SetDBCSDatabaseLifecycleState(logger logr.Logger, kubeClient client.Client, dbClient database.DatabaseClient, dbcs *databasev1alpha1.DbcsSystem, nwClient core.VirtualNetworkClient, wrClient workrequests.WorkRequestClient) error

func SetLifecycleState

SetLifecycleState set status.state of the reosurce.

func UpdateDbcsSystemId

func UpdateDbcsSystemId(kubeClient client.Client, dbcs *databasev1alpha1.DbcsSystem) error

func UpdateDbcsSystemIdInst

func UpdateDbcsSystemIdInst(log logr.Logger, dbClient database.DatabaseClient, dbcs *databasev1alpha1.DbcsSystem, kubeClient client.Client, nwClient core.VirtualNetworkClient, wrClient workrequests.WorkRequestClient) error

func ValidateSpex

func ValidateSpex(logger logr.Logger, kubeClient client.Client, dbClient database.DatabaseClient, dbcs *databasev1alpha1.DbcsSystem, nwClient core.VirtualNetworkClient, eRecord record.EventRecorder) error

=========== validate Specs ============

Types

This section is empty.

Jump to

Keyboard shortcuts

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