Documentation ¶
Index ¶
Constants ¶
View Source
const ( ArgIdShort = "i" 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 ResourcesMocks ¶
type ResourcesMocks struct { Cluster *mockResources.MockClustersService Backup *mockResources.MockBackupsService Version *mockResources.MockVersionsService Info *mockResources.MockInfosService Log *mockResources.MockLogsService Restore *mockResources.MockRestoresService }
func InitMocksResources ¶
func InitMocksResources(ctrl *gomock.Controller) *ResourcesMocks
InitMocksResources for Test
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
Click to show internal directories.
Click to hide internal directories.