instance

package
v0.0.0-...-413204d Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupAuthNetworks

func CleanupAuthNetworks(ctx context.Context, target *resolved.Instance, mgr *common_main.Manager) error

func CleanupConnectionProfiles

func CleanupConnectionProfiles(ctx context.Context, cfg *config.Config, gcpProject *resolved.GcpProject, mgr *common_main.Manager) error

func CreateConnectionProfiles

func CreateConnectionProfiles(ctx context.Context, cfg *config.Config, gcpProject *resolved.GcpProject, source *resolved.Instance, target *resolved.Instance, mgr *common_main.Manager) error

func CreateInstance

func CreateInstance(ctx context.Context, cfg *config.Config, source *resolved.Instance, gcpProject *resolved.GcpProject, databaseName string, mgr *common_main.Manager) (*resolved.Instance, error)

func DeleteInstance

func DeleteInstance(ctx context.Context, instanceName string, gcpProject *resolved.GcpProject, mgr *common_main.Manager) error

func DeleteSslCertByCommonName

func DeleteSslCertByCommonName(ctx context.Context, instanceName, commonName string, gcpProject *resolved.GcpProject, mgr *common_main.Manager) error

func PrepareSourceInstance

func PrepareSourceInstance(ctx context.Context, source *resolved.Instance, target *resolved.Instance, mgr *common_main.Manager) error

func PrepareTargetInstance

func PrepareTargetInstance(ctx context.Context, target *resolved.Instance, mgr *common_main.Manager) error

func UpdateTargetInstanceAfterPromotion

func UpdateTargetInstanceAfterPromotion(ctx context.Context, target *resolved.Instance, mgr *common_main.Manager) error

func WaitForCnrmResourcesToGoAway

func WaitForCnrmResourcesToGoAway(ctx context.Context, instanceName, applicationName string, mgr *common_main.Manager) error

func WaitForSQLDatabaseResourceToGoAway

func WaitForSQLDatabaseResourceToGoAway(ctx context.Context, appName string, mgr *common_main.Manager) error

Types

type CertPaths

type CertPaths struct {
	RootCertPath string
	CertPath     string
	KeyPath      string
}

func CreateSslCert

func CreateSslCert(ctx context.Context, cfg *config.Config, mgr *common_main.Manager, instance string, sslCert *resolved.SslCert) (*CertPaths, error)

Jump to

Keyboard shortcuts

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