dbaas_postgres

package
v0.0.0-...-e6112dc Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ArgIdShort              = "i"
	ArgClusterId            = "cluster-id"
	ArgStartTime            = "start-time"
	ArgStartTimeShort       = "s"
	ArgEndTime              = "end-time"
	ArgEndTimeShort         = "e"
	ArgSince                = "since"
	ArgSinceShort           = "S"
	ArgUntil                = "until"
	ArgUntilShort           = "U"
	ArgLimit                = "limit"
	ArgLimitShort           = "l"
	ArgDirection            = "direction"
	ArgDirectionShort       = "D"
	ArgVersion              = "version"
	ArgVersionShort         = "V"
	ArgBackupLocation       = "backup-location"
	ArgBackupLocationShort  = "B"
	ArgInstances            = "instances"
	ArgInstancesShort       = "I"
	ArgSyncMode             = "sync"
	ArgSyncModeShort        = "S"
	ArgCores                = "cores"
	ArgRam                  = "ram"
	ArgStorageSize          = "storage-size"
	ArgStorageType          = "storage-type"
	ArgDatacenterId         = "datacenter-id"
	ArgDatacenterIdShort    = "D"
	ArgBackupId             = "backup-id"
	ArgBackupIdShort        = "b"
	ArgRecoveryTime         = "recovery-time"
	ArgRecoveryTimeShort    = "R"
	ArgCidr                 = "cidr"
	ArgCidrShort            = "C"
	ArgLanId                = "lan-id"
	ArgLanIdShort           = "L"
	ArgLocation             = "location-id"
	ArgName                 = "name"
	ArgNameShort            = "n"
	ArgDbUsername           = "db-username"
	ArgDbUsernameShort      = "U"
	ArgDbPassword           = "db-password"
	ArgDbPasswordShort      = "P"
	ArgMaintenanceTime      = "maintenance-time"
	ArgMaintenanceTimeShort = "T"
	ArgMaintenanceDay       = "maintenance-day"
	ArgMaintenanceDayShort  = "d"
	ArgRemoveConnection     = "remove-connection"
)
View Source
const (
	ClusterId             = "The unique ID of the Cluster"
	BackupId              = "The unique ID of the Backup"
	DefaultClusterTimeout = int(1200)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Services

type Services struct {
	// Dbaas Pgsql Resources Services
	Clusters func() resources.ClustersService
	Backups  func() resources.BackupsService
	Versions func() resources.VersionsService
	Infos    func() resources.InfosService
	Restores func() resources.RestoresService
	Logs     func() resources.LogsService
	// Context
	Context context.Context
}

func InitMockServices

func InitMockServices(c *Services, tm *ResourcesMocks) *Services

InitMockServices for Command Test

func (*Services) InitServices

func (c *Services) InitServices(client *config.Client) error

InitServices for Commands

Directories

Path Synopsis
mocks
Package mock_resources is a generated GoMock package.
Package mock_resources is a generated GoMock package.

Jump to

Keyboard shortcuts

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