Documentation
¶
Index ¶
- type CreateBackupOption
- type CreateBackupOptions
- type CreateBackupPolicyOption
- type CreateBackupPolicyOptions
- type CreateBranchOption
- type CreateBranchOptions
- type CreateFailoverOption
- type CreateFailoverOptions
- type CreateMigrationOption
- type CreateMigrationOptions
- type CreateOption
- type CreateOptions
- type CreateRestorationOption
- type CreateRestorationOptions
- type ListBackupPoliciesOption
- type ListBackupPoliciesOptions
- type ListBackupsOption
- type ListBackupsOptions
- type ListOperationsOption
- type ListOperationsOptions
- type ListOption
- type ListOptions
- type ListRestorationsOption
- type ListRestorationsOptions
- type Mongo
- func (srv *Mongo) Create(DatabaseId string, Name string, optionalSetters ...CreateOption) (*models.DedicatedDatabase, error)
- func (srv *Mongo) CreateBackup(DatabaseId string, optionalSetters ...CreateBackupOption) (*models.DedicatedDatabaseBackup, error)
- func (srv *Mongo) CreateBackupPolicy(DatabaseId string, PolicyId string, Name string, Schedule string, ...) (*models.BackupPolicy, error)
- func (srv *Mongo) CreateBranch(DatabaseId string, optionalSetters ...CreateBranchOption) (*models.DedicatedDatabase, error)
- func (srv *Mongo) CreateFailover(DatabaseId string, optionalSetters ...CreateFailoverOption) (*models.DedicatedDatabase, error)
- func (srv *Mongo) CreateMigration(DatabaseId string, TargetType string, optionalSetters ...CreateMigrationOption) (*models.DedicatedDatabase, error)
- func (srv *Mongo) CreateRestoration(DatabaseId string, optionalSetters ...CreateRestorationOption) (*models.DedicatedDatabaseRestoration, error)
- func (srv *Mongo) CreateUpgrade(DatabaseId string, TargetVersion string) (*models.DedicatedDatabase, error)
- func (srv *Mongo) Delete(DatabaseId string) (*interface{}, error)
- func (srv *Mongo) DeleteBackup(DatabaseId string, BackupId string) (*interface{}, error)
- func (srv *Mongo) DeleteBackupPolicy(DatabaseId string, PolicyId string) (*interface{}, error)
- func (srv *Mongo) DeleteBranch(DatabaseId string, BranchId string) (*models.DedicatedDatabase, error)
- func (srv *Mongo) Get(DatabaseId string) (*models.DedicatedDatabase, error)
- func (srv *Mongo) GetBackup(DatabaseId string, BackupId string) (*models.DedicatedDatabaseBackup, error)
- func (srv *Mongo) GetBackupPolicy(DatabaseId string, PolicyId string) (*models.BackupPolicy, error)
- func (srv *Mongo) GetPitr(DatabaseId string) (*models.DedicatedDatabasePITRWindows, error)
- func (srv *Mongo) GetReplicas(DatabaseId string) (*models.DedicatedDatabaseReplicas, error)
- func (srv *Mongo) GetRestoration(DatabaseId string, RestorationId string) (*models.DedicatedDatabaseRestoration, error)
- func (srv *Mongo) GetStatus(DatabaseId string) (*models.DatabaseStatus, error)
- func (srv *Mongo) List(optionalSetters ...ListOption) (*models.DedicatedDatabaseList, error)
- func (srv *Mongo) ListBackupPolicies(DatabaseId string, optionalSetters ...ListBackupPoliciesOption) (*models.BackupPolicyList, error)
- func (srv *Mongo) ListBackups(DatabaseId string, optionalSetters ...ListBackupsOption) (*models.DedicatedDatabaseBackupList, error)
- func (srv *Mongo) ListBranches(DatabaseId string) (*models.DedicatedDatabaseBranchList, error)
- func (srv *Mongo) ListOperations(DatabaseId string, optionalSetters ...ListOperationsOption) (*models.DedicatedDatabaseOperationList, error)
- func (srv *Mongo) ListRestorations(DatabaseId string, optionalSetters ...ListRestorationsOption) (*models.DedicatedDatabaseRestorationList, error)
- func (srv *Mongo) ListSpecifications() (*models.DedicatedDatabaseSpecificationList, error)
- func (srv *Mongo) Update(DatabaseId string, optionalSetters ...UpdateOption) (*models.DedicatedDatabase, error)
- func (srv *Mongo) UpdateBackupPolicy(DatabaseId string, PolicyId string, ...) (*models.BackupPolicy, error)
- func (srv *Mongo) UpdateBackupStorage(DatabaseId string, Provider string, Bucket string, AccessKey string, ...) (*models.DedicatedDatabaseBackupStorage, error)
- func (srv *Mongo) UpdateCredentials(DatabaseId string) (*models.DedicatedDatabaseOperation, error)
- func (srv *Mongo) UpdateMaintenance(DatabaseId string, Day string, HourUtc int) (*models.DedicatedDatabase, error)
- func (srv *Mongo) WithCreateBackupPolicyEnabled(v bool) CreateBackupPolicyOption
- func (srv *Mongo) WithCreateBackupPolicyType(v string) CreateBackupPolicyOption
- func (srv *Mongo) WithCreateBackupType(v string) CreateBackupOption
- func (srv *Mongo) WithCreateBranchBranchId(v string) CreateBranchOption
- func (srv *Mongo) WithCreateBranchTtl(v int) CreateBranchOption
- func (srv *Mongo) WithCreateFailoverTargetReplicaId(v string) CreateFailoverOption
- func (srv *Mongo) WithCreateIdleTimeoutMinutes(v int) CreateOption
- func (srv *Mongo) WithCreateMigrationSpecification(v string) CreateMigrationOption
- func (srv *Mongo) WithCreateNetworkIPAllowlist(v []string) CreateOption
- func (srv *Mongo) WithCreateNetworkIdleTimeoutSeconds(v int) CreateOption
- func (srv *Mongo) WithCreatePitr(v bool) CreateOption
- func (srv *Mongo) WithCreatePitrRetentionDays(v int) CreateOption
- func (srv *Mongo) WithCreateReplicas(v int) CreateOption
- func (srv *Mongo) WithCreateRestorationBackupId(v string) CreateRestorationOption
- func (srv *Mongo) WithCreateRestorationTargetDatabaseId(v string) CreateRestorationOption
- func (srv *Mongo) WithCreateRestorationTargetTime(v string) CreateRestorationOption
- func (srv *Mongo) WithCreateRestorationType(v string) CreateRestorationOption
- func (srv *Mongo) WithCreateSpecification(v string) CreateOption
- func (srv *Mongo) WithCreateStorageAutoscaling(v bool) CreateOption
- func (srv *Mongo) WithCreateStorageAutoscalingMaxGb(v int) CreateOption
- func (srv *Mongo) WithCreateStorageAutoscalingThresholdPercent(v int) CreateOption
- func (srv *Mongo) WithCreateSyncMode(v string) CreateOption
- func (srv *Mongo) WithCreateVersion(v string) CreateOption
- func (srv *Mongo) WithListBackupPoliciesQueries(v []string) ListBackupPoliciesOption
- func (srv *Mongo) WithListBackupsQueries(v []string) ListBackupsOption
- func (srv *Mongo) WithListOperationsLimit(v int) ListOperationsOption
- func (srv *Mongo) WithListOperationsOffset(v int) ListOperationsOption
- func (srv *Mongo) WithListOperationsStatus(v string) ListOperationsOption
- func (srv *Mongo) WithListQueries(v []string) ListOption
- func (srv *Mongo) WithListRestorationsLimit(v int) ListRestorationsOption
- func (srv *Mongo) WithListRestorationsOffset(v int) ListRestorationsOption
- func (srv *Mongo) WithListRestorationsStatus(v string) ListRestorationsOption
- func (srv *Mongo) WithListRestorationsType(v string) ListRestorationsOption
- func (srv *Mongo) WithUpdateBackupPolicyEnabled(v bool) UpdateBackupPolicyOption
- func (srv *Mongo) WithUpdateBackupPolicyName(v string) UpdateBackupPolicyOption
- func (srv *Mongo) WithUpdateBackupPolicyRetention(v int) UpdateBackupPolicyOption
- func (srv *Mongo) WithUpdateBackupPolicySchedule(v string) UpdateBackupPolicyOption
- func (srv *Mongo) WithUpdateBackupStorageEndpoint(v string) UpdateBackupStorageOption
- func (srv *Mongo) WithUpdateBackupStoragePrefix(v string) UpdateBackupStorageOption
- func (srv *Mongo) WithUpdateBackupStorageRegion(v string) UpdateBackupStorageOption
- func (srv *Mongo) WithUpdateIdleTimeoutMinutes(v int) UpdateOption
- func (srv *Mongo) WithUpdateMetricsSlowQueryLogThresholdMs(v int) UpdateOption
- func (srv *Mongo) WithUpdateMetricsTraceSampleRate(v float64) UpdateOption
- func (srv *Mongo) WithUpdateName(v string) UpdateOption
- func (srv *Mongo) WithUpdateNetworkIPAllowlist(v []string) UpdateOption
- func (srv *Mongo) WithUpdateNetworkIdleTimeoutSeconds(v int) UpdateOption
- func (srv *Mongo) WithUpdatePitr(v bool) UpdateOption
- func (srv *Mongo) WithUpdatePitrRetentionDays(v int) UpdateOption
- func (srv *Mongo) WithUpdateReplicas(v int) UpdateOption
- func (srv *Mongo) WithUpdateSpecification(v string) UpdateOption
- func (srv *Mongo) WithUpdateSqlApiAllowedStatements(v []string) UpdateOption
- func (srv *Mongo) WithUpdateSqlApiEnabled(v bool) UpdateOption
- func (srv *Mongo) WithUpdateSqlApiMaxBytes(v int) UpdateOption
- func (srv *Mongo) WithUpdateSqlApiMaxRows(v int) UpdateOption
- func (srv *Mongo) WithUpdateSqlApiTimeoutSeconds(v int) UpdateOption
- func (srv *Mongo) WithUpdateStatus(v string) UpdateOption
- func (srv *Mongo) WithUpdateStorageAutoscaling(v bool) UpdateOption
- func (srv *Mongo) WithUpdateStorageAutoscalingMaxGb(v int) UpdateOption
- func (srv *Mongo) WithUpdateStorageAutoscalingThresholdPercent(v int) UpdateOption
- func (srv *Mongo) WithUpdateSyncMode(v string) UpdateOption
- type UpdateBackupPolicyOption
- type UpdateBackupPolicyOptions
- type UpdateBackupStorageOption
- type UpdateBackupStorageOptions
- type UpdateOption
- type UpdateOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateBackupOption ¶
type CreateBackupOption func(*CreateBackupOptions)
type CreateBackupOptions ¶
type CreateBackupOptions struct {
Type string
// contains filtered or unexported fields
}
func (CreateBackupOptions) New ¶
func (options CreateBackupOptions) New() *CreateBackupOptions
type CreateBackupPolicyOption ¶
type CreateBackupPolicyOption func(*CreateBackupPolicyOptions)
type CreateBackupPolicyOptions ¶
type CreateBackupPolicyOptions struct {
Type string
Enabled bool
// contains filtered or unexported fields
}
func (CreateBackupPolicyOptions) New ¶
func (options CreateBackupPolicyOptions) New() *CreateBackupPolicyOptions
type CreateBranchOption ¶
type CreateBranchOption func(*CreateBranchOptions)
type CreateBranchOptions ¶
type CreateBranchOptions struct {
BranchId string
Ttl int
// contains filtered or unexported fields
}
func (CreateBranchOptions) New ¶
func (options CreateBranchOptions) New() *CreateBranchOptions
type CreateFailoverOption ¶
type CreateFailoverOption func(*CreateFailoverOptions)
type CreateFailoverOptions ¶
type CreateFailoverOptions struct {
TargetReplicaId string
// contains filtered or unexported fields
}
func (CreateFailoverOptions) New ¶
func (options CreateFailoverOptions) New() *CreateFailoverOptions
type CreateMigrationOption ¶
type CreateMigrationOption func(*CreateMigrationOptions)
type CreateMigrationOptions ¶
type CreateMigrationOptions struct {
Specification string
// contains filtered or unexported fields
}
func (CreateMigrationOptions) New ¶
func (options CreateMigrationOptions) New() *CreateMigrationOptions
type CreateOption ¶
type CreateOption func(*CreateOptions)
type CreateOptions ¶
type CreateOptions struct {
Version string
Specification string
Replicas int
SyncMode string
NetworkIdleTimeoutSeconds int
NetworkIPAllowlist []string
IdleTimeoutMinutes int
Pitr bool
PitrRetentionDays int
StorageAutoscaling bool
StorageAutoscalingThresholdPercent int
StorageAutoscalingMaxGb int
// contains filtered or unexported fields
}
func (CreateOptions) New ¶
func (options CreateOptions) New() *CreateOptions
type CreateRestorationOption ¶
type CreateRestorationOption func(*CreateRestorationOptions)
type CreateRestorationOptions ¶
type CreateRestorationOptions struct {
Type string
BackupId string
TargetDatabaseId string
TargetTime string
// contains filtered or unexported fields
}
func (CreateRestorationOptions) New ¶
func (options CreateRestorationOptions) New() *CreateRestorationOptions
type ListBackupPoliciesOption ¶
type ListBackupPoliciesOption func(*ListBackupPoliciesOptions)
type ListBackupPoliciesOptions ¶
type ListBackupPoliciesOptions struct {
Queries []string
// contains filtered or unexported fields
}
func (ListBackupPoliciesOptions) New ¶
func (options ListBackupPoliciesOptions) New() *ListBackupPoliciesOptions
type ListBackupsOption ¶
type ListBackupsOption func(*ListBackupsOptions)
type ListBackupsOptions ¶
type ListBackupsOptions struct {
Queries []string
// contains filtered or unexported fields
}
func (ListBackupsOptions) New ¶
func (options ListBackupsOptions) New() *ListBackupsOptions
type ListOperationsOption ¶
type ListOperationsOption func(*ListOperationsOptions)
type ListOperationsOptions ¶
type ListOperationsOptions struct {
Status string
Limit int
Offset int
// contains filtered or unexported fields
}
func (ListOperationsOptions) New ¶
func (options ListOperationsOptions) New() *ListOperationsOptions
type ListOption ¶
type ListOption func(*ListOptions)
type ListOptions ¶
type ListOptions struct {
Queries []string
// contains filtered or unexported fields
}
func (ListOptions) New ¶
func (options ListOptions) New() *ListOptions
type ListRestorationsOption ¶
type ListRestorationsOption func(*ListRestorationsOptions)
type ListRestorationsOptions ¶
type ListRestorationsOptions struct {
Status string
Type string
Limit int
Offset int
// contains filtered or unexported fields
}
func (ListRestorationsOptions) New ¶
func (options ListRestorationsOptions) New() *ListRestorationsOptions
type Mongo ¶
type Mongo struct {
// contains filtered or unexported fields
}
Mongo service
func (*Mongo) Create ¶
func (srv *Mongo) Create(DatabaseId string, Name string, optionalSetters ...CreateOption) (*models.DedicatedDatabase, error)
Create create a new dedicated database with the chosen engine and configuration. Status will be 'provisioning' until the database is ready.
func (*Mongo) CreateBackup ¶
func (srv *Mongo) CreateBackup(DatabaseId string, optionalSetters ...CreateBackupOption) (*models.DedicatedDatabaseBackup, error)
CreateBackup create a manual backup of a dedicated database. The backup will be created asynchronously and its status can be checked via the get backup endpoint.
func (*Mongo) CreateBackupPolicy ¶
func (srv *Mongo) CreateBackupPolicy(DatabaseId string, PolicyId string, Name string, Schedule string, Retention int, optionalSetters ...CreateBackupPolicyOption) (*models.BackupPolicy, error)
CreateBackupPolicy create a scheduled backup policy for a dedicated database.
func (*Mongo) CreateBranch ¶
func (srv *Mongo) CreateBranch(DatabaseId string, optionalSetters ...CreateBranchOption) (*models.DedicatedDatabase, error)
CreateBranch create an ephemeral database branch from the primary via PVC snapshot. The branch is a full copy of the database at the current point in time, useful for testing schema migrations or running experiments without affecting production data. Branches expire after the configured TTL (default 24 hours). The branch is created asynchronously.
func (*Mongo) CreateFailover ¶
func (srv *Mongo) CreateFailover(DatabaseId string, optionalSetters ...CreateFailoverOption) (*models.DedicatedDatabase, error)
CreateFailover trigger a manual failover for a dedicated database with high availability enabled. Promotes a replica to primary. The failover runs asynchronously; poll the database document for status updates. A database left mid-operation also accepts this call as a repair once nothing is driving the operation it is stuck in. Repairing a failover that did not finish, a `failed` database, a stranded upgrade or migrate, or a stranded compute resize additionally requires `targetReplicaId` to name the member to promote, because the default target may be the member that operation already promoted.
func (*Mongo) CreateMigration ¶
func (srv *Mongo) CreateMigration(DatabaseId string, TargetType string, optionalSetters ...CreateMigrationOption) (*models.DedicatedDatabase, error)
CreateMigration migrate a database between shared and dedicated types. Shared to dedicated provisions an always-on dedicated instance; dedicated to shared converts to a serverless instance that scales to zero when idle. Data is copied to the target with a brief read-only window during cutover.
func (*Mongo) CreateRestoration ¶
func (srv *Mongo) CreateRestoration(DatabaseId string, optionalSetters ...CreateRestorationOption) (*models.DedicatedDatabaseRestoration, error)
CreateRestoration restore a database from a backup or to a specific point in time (PITR). For backup restoration, provide a backupId. For PITR, provide a targetTime as an ISO 8601 datetime. PITR requires the database to have PITR enabled and is only available for enterprise databases.
func (*Mongo) CreateUpgrade ¶
func (srv *Mongo) CreateUpgrade(DatabaseId string, TargetVersion string) (*models.DedicatedDatabase, error)
CreateUpgrade upgrade a dedicated database to a new engine version. Uses blue-green deployment for zero-downtime cutover.
func (*Mongo) Delete ¶
Delete delete a dedicated database. This action is irreversible. The database status will be set to 'deleting' and all resources will be cleaned up. Deletion is allowed from any state, and repeating the call re-dispatches the cleanup.
func (*Mongo) DeleteBackup ¶
DeleteBackup delete a database backup. This will permanently remove the backup from storage and cannot be undone.
func (*Mongo) DeleteBackupPolicy ¶
DeleteBackupPolicy delete a scheduled backup policy for a dedicated database. Backups already taken by the policy are kept until their retention expires.
func (*Mongo) DeleteBranch ¶
func (srv *Mongo) DeleteBranch(DatabaseId string, BranchId string) (*models.DedicatedDatabase, error)
DeleteBranch delete an ephemeral database branch. This removes the branch namespace, its PVC, and the associated VolumeSnapshot. The deletion runs asynchronously and is irreversible.
func (*Mongo) Get ¶
func (srv *Mongo) Get(DatabaseId string) (*models.DedicatedDatabase, error)
Get get a dedicated database by its unique ID. Returns the database configuration and current status.
func (*Mongo) GetBackup ¶
func (srv *Mongo) GetBackup(DatabaseId string, BackupId string) (*models.DedicatedDatabaseBackup, error)
GetBackup get details of a specific database backup including its status, size, and timestamps.
func (*Mongo) GetBackupPolicy ¶
GetBackupPolicy get a scheduled backup policy for a dedicated database.
func (*Mongo) GetPitr ¶
func (srv *Mongo) GetPitr(DatabaseId string) (*models.DedicatedDatabasePITRWindows, error)
GetPitr get available point-in-time recovery windows for a dedicated database. Returns the earliest and latest recovery points.
func (*Mongo) GetReplicas ¶
func (srv *Mongo) GetReplicas(DatabaseId string) (*models.DedicatedDatabaseReplicas, error)
GetReplicas get high availability status for a dedicated database. Returns replica statuses, replication lag, and sync mode.
func (*Mongo) GetRestoration ¶
func (srv *Mongo) GetRestoration(DatabaseId string, RestorationId string) (*models.DedicatedDatabaseRestoration, error)
GetRestoration get details of a specific database restoration including its status, type, and timestamps.
func (*Mongo) GetStatus ¶
func (srv *Mongo) GetStatus(DatabaseId string) (*models.DatabaseStatus, error)
GetStatus get real-time health and status information for a dedicated database. Returns health status, readiness, uptime, connection info, replica status, and volume information.
func (*Mongo) List ¶
func (srv *Mongo) List(optionalSetters ...ListOption) (*models.DedicatedDatabaseList, error)
List list all dedicated databases. Results support pagination.
func (*Mongo) ListBackupPolicies ¶
func (srv *Mongo) ListBackupPolicies(DatabaseId string, optionalSetters ...ListBackupPoliciesOption) (*models.BackupPolicyList, error)
ListBackupPolicies list scheduled backup policies for a dedicated database.
func (*Mongo) ListBackups ¶
func (srv *Mongo) ListBackups(DatabaseId string, optionalSetters ...ListBackupsOption) (*models.DedicatedDatabaseBackupList, error)
ListBackups list all backups for a dedicated database. Results can be filtered by status and type.
func (*Mongo) ListBranches ¶
func (srv *Mongo) ListBranches(DatabaseId string) (*models.DedicatedDatabaseBranchList, error)
ListBranches list all ephemeral branches for a dedicated database. Returns branch metadata including ID, name, namespace, and expiration time.
func (*Mongo) ListOperations ¶
func (srv *Mongo) ListOperations(DatabaseId string, optionalSetters ...ListOperationsOption) (*models.DedicatedDatabaseOperationList, error)
ListOperations list the lifecycle operations recorded for a dedicated database, newest first. Every provision, update, restore, backup and replication action is recorded here with its outcome, including an attempt that was abandoned because another worker took over the database.
func (*Mongo) ListRestorations ¶
func (srv *Mongo) ListRestorations(DatabaseId string, optionalSetters ...ListRestorationsOption) (*models.DedicatedDatabaseRestorationList, error)
ListRestorations list all restorations for a dedicated database. Results can be filtered by status and type.
func (*Mongo) ListSpecifications ¶
func (srv *Mongo) ListSpecifications() (*models.DedicatedDatabaseSpecificationList, error)
ListSpecifications list the dedicated database specifications available on the current plan. Each specification reports its resource limits, pricing, and whether it is enabled for the organization.
func (*Mongo) Update ¶
func (srv *Mongo) Update(DatabaseId string, optionalSetters ...UpdateOption) (*models.DedicatedDatabase, error)
Update update a dedicated database configuration. All changes are applied with zero downtime. Specification changes (cpu, memory, storage) are handled via rolling cutover. Storage expansion is done online. All other settings are applied in-place.
func (*Mongo) UpdateBackupPolicy ¶
func (srv *Mongo) UpdateBackupPolicy(DatabaseId string, PolicyId string, optionalSetters ...UpdateBackupPolicyOption) (*models.BackupPolicy, error)
UpdateBackupPolicy update a scheduled backup policy for a dedicated database.
func (*Mongo) UpdateBackupStorage ¶
func (srv *Mongo) UpdateBackupStorage(DatabaseId string, Provider string, Bucket string, AccessKey string, SecretKey string, optionalSetters ...UpdateBackupStorageOption) (*models.DedicatedDatabaseBackupStorage, error)
UpdateBackupStorage configure off-cluster backup storage for a dedicated database. Supports S3, GCS, and Azure Blob Storage destinations. Backups will be stored to the configured destination in addition to on-cluster storage.
func (*Mongo) UpdateCredentials ¶
func (srv *Mongo) UpdateCredentials(DatabaseId string) (*models.DedicatedDatabaseOperation, error)
UpdateCredentials queue a rotation of the primary connection credentials for a dedicated database. A hibernated database is woken by the worker before rotation. List database operations until the returned operation reaches a terminal status, then fetch the database again for the refreshed connection string.
func (*Mongo) UpdateMaintenance ¶
func (srv *Mongo) UpdateMaintenance(DatabaseId string, Day string, HourUtc int) (*models.DedicatedDatabase, error)
UpdateMaintenance update the maintenance window for a dedicated database. Maintenance operations like minor version upgrades will be performed during this window.
func (*Mongo) WithCreateBackupPolicyEnabled ¶
func (srv *Mongo) WithCreateBackupPolicyEnabled(v bool) CreateBackupPolicyOption
func (*Mongo) WithCreateBackupPolicyType ¶
func (srv *Mongo) WithCreateBackupPolicyType(v string) CreateBackupPolicyOption
func (*Mongo) WithCreateBackupType ¶
func (srv *Mongo) WithCreateBackupType(v string) CreateBackupOption
func (*Mongo) WithCreateBranchBranchId ¶
func (srv *Mongo) WithCreateBranchBranchId(v string) CreateBranchOption
func (*Mongo) WithCreateBranchTtl ¶
func (srv *Mongo) WithCreateBranchTtl(v int) CreateBranchOption
func (*Mongo) WithCreateFailoverTargetReplicaId ¶
func (srv *Mongo) WithCreateFailoverTargetReplicaId(v string) CreateFailoverOption
func (*Mongo) WithCreateIdleTimeoutMinutes ¶
func (srv *Mongo) WithCreateIdleTimeoutMinutes(v int) CreateOption
func (*Mongo) WithCreateMigrationSpecification ¶
func (srv *Mongo) WithCreateMigrationSpecification(v string) CreateMigrationOption
func (*Mongo) WithCreateNetworkIPAllowlist ¶
func (srv *Mongo) WithCreateNetworkIPAllowlist(v []string) CreateOption
func (*Mongo) WithCreateNetworkIdleTimeoutSeconds ¶
func (srv *Mongo) WithCreateNetworkIdleTimeoutSeconds(v int) CreateOption
func (*Mongo) WithCreatePitr ¶
func (srv *Mongo) WithCreatePitr(v bool) CreateOption
func (*Mongo) WithCreatePitrRetentionDays ¶
func (srv *Mongo) WithCreatePitrRetentionDays(v int) CreateOption
func (*Mongo) WithCreateReplicas ¶
func (srv *Mongo) WithCreateReplicas(v int) CreateOption
func (*Mongo) WithCreateRestorationBackupId ¶
func (srv *Mongo) WithCreateRestorationBackupId(v string) CreateRestorationOption
func (*Mongo) WithCreateRestorationTargetDatabaseId ¶
func (srv *Mongo) WithCreateRestorationTargetDatabaseId(v string) CreateRestorationOption
func (*Mongo) WithCreateRestorationTargetTime ¶
func (srv *Mongo) WithCreateRestorationTargetTime(v string) CreateRestorationOption
func (*Mongo) WithCreateRestorationType ¶
func (srv *Mongo) WithCreateRestorationType(v string) CreateRestorationOption
func (*Mongo) WithCreateSpecification ¶
func (srv *Mongo) WithCreateSpecification(v string) CreateOption
func (*Mongo) WithCreateStorageAutoscaling ¶
func (srv *Mongo) WithCreateStorageAutoscaling(v bool) CreateOption
func (*Mongo) WithCreateStorageAutoscalingMaxGb ¶
func (srv *Mongo) WithCreateStorageAutoscalingMaxGb(v int) CreateOption
func (*Mongo) WithCreateStorageAutoscalingThresholdPercent ¶
func (srv *Mongo) WithCreateStorageAutoscalingThresholdPercent(v int) CreateOption
func (*Mongo) WithCreateSyncMode ¶
func (srv *Mongo) WithCreateSyncMode(v string) CreateOption
func (*Mongo) WithCreateVersion ¶
func (srv *Mongo) WithCreateVersion(v string) CreateOption
func (*Mongo) WithListBackupPoliciesQueries ¶
func (srv *Mongo) WithListBackupPoliciesQueries(v []string) ListBackupPoliciesOption
func (*Mongo) WithListBackupsQueries ¶
func (srv *Mongo) WithListBackupsQueries(v []string) ListBackupsOption
func (*Mongo) WithListOperationsLimit ¶
func (srv *Mongo) WithListOperationsLimit(v int) ListOperationsOption
func (*Mongo) WithListOperationsOffset ¶
func (srv *Mongo) WithListOperationsOffset(v int) ListOperationsOption
func (*Mongo) WithListOperationsStatus ¶
func (srv *Mongo) WithListOperationsStatus(v string) ListOperationsOption
func (*Mongo) WithListQueries ¶
func (srv *Mongo) WithListQueries(v []string) ListOption
func (*Mongo) WithListRestorationsLimit ¶
func (srv *Mongo) WithListRestorationsLimit(v int) ListRestorationsOption
func (*Mongo) WithListRestorationsOffset ¶
func (srv *Mongo) WithListRestorationsOffset(v int) ListRestorationsOption
func (*Mongo) WithListRestorationsStatus ¶
func (srv *Mongo) WithListRestorationsStatus(v string) ListRestorationsOption
func (*Mongo) WithListRestorationsType ¶
func (srv *Mongo) WithListRestorationsType(v string) ListRestorationsOption
func (*Mongo) WithUpdateBackupPolicyEnabled ¶
func (srv *Mongo) WithUpdateBackupPolicyEnabled(v bool) UpdateBackupPolicyOption
func (*Mongo) WithUpdateBackupPolicyName ¶
func (srv *Mongo) WithUpdateBackupPolicyName(v string) UpdateBackupPolicyOption
func (*Mongo) WithUpdateBackupPolicyRetention ¶
func (srv *Mongo) WithUpdateBackupPolicyRetention(v int) UpdateBackupPolicyOption
func (*Mongo) WithUpdateBackupPolicySchedule ¶
func (srv *Mongo) WithUpdateBackupPolicySchedule(v string) UpdateBackupPolicyOption
func (*Mongo) WithUpdateBackupStorageEndpoint ¶
func (srv *Mongo) WithUpdateBackupStorageEndpoint(v string) UpdateBackupStorageOption
func (*Mongo) WithUpdateBackupStoragePrefix ¶
func (srv *Mongo) WithUpdateBackupStoragePrefix(v string) UpdateBackupStorageOption
func (*Mongo) WithUpdateBackupStorageRegion ¶
func (srv *Mongo) WithUpdateBackupStorageRegion(v string) UpdateBackupStorageOption
func (*Mongo) WithUpdateIdleTimeoutMinutes ¶
func (srv *Mongo) WithUpdateIdleTimeoutMinutes(v int) UpdateOption
func (*Mongo) WithUpdateMetricsSlowQueryLogThresholdMs ¶
func (srv *Mongo) WithUpdateMetricsSlowQueryLogThresholdMs(v int) UpdateOption
func (*Mongo) WithUpdateMetricsTraceSampleRate ¶
func (srv *Mongo) WithUpdateMetricsTraceSampleRate(v float64) UpdateOption
func (*Mongo) WithUpdateName ¶
func (srv *Mongo) WithUpdateName(v string) UpdateOption
func (*Mongo) WithUpdateNetworkIPAllowlist ¶
func (srv *Mongo) WithUpdateNetworkIPAllowlist(v []string) UpdateOption
func (*Mongo) WithUpdateNetworkIdleTimeoutSeconds ¶
func (srv *Mongo) WithUpdateNetworkIdleTimeoutSeconds(v int) UpdateOption
func (*Mongo) WithUpdatePitr ¶
func (srv *Mongo) WithUpdatePitr(v bool) UpdateOption
func (*Mongo) WithUpdatePitrRetentionDays ¶
func (srv *Mongo) WithUpdatePitrRetentionDays(v int) UpdateOption
func (*Mongo) WithUpdateReplicas ¶
func (srv *Mongo) WithUpdateReplicas(v int) UpdateOption
func (*Mongo) WithUpdateSpecification ¶
func (srv *Mongo) WithUpdateSpecification(v string) UpdateOption
func (*Mongo) WithUpdateSqlApiAllowedStatements ¶
func (srv *Mongo) WithUpdateSqlApiAllowedStatements(v []string) UpdateOption
func (*Mongo) WithUpdateSqlApiEnabled ¶
func (srv *Mongo) WithUpdateSqlApiEnabled(v bool) UpdateOption
func (*Mongo) WithUpdateSqlApiMaxBytes ¶
func (srv *Mongo) WithUpdateSqlApiMaxBytes(v int) UpdateOption
func (*Mongo) WithUpdateSqlApiMaxRows ¶
func (srv *Mongo) WithUpdateSqlApiMaxRows(v int) UpdateOption
func (*Mongo) WithUpdateSqlApiTimeoutSeconds ¶
func (srv *Mongo) WithUpdateSqlApiTimeoutSeconds(v int) UpdateOption
func (*Mongo) WithUpdateStatus ¶
func (srv *Mongo) WithUpdateStatus(v string) UpdateOption
func (*Mongo) WithUpdateStorageAutoscaling ¶
func (srv *Mongo) WithUpdateStorageAutoscaling(v bool) UpdateOption
func (*Mongo) WithUpdateStorageAutoscalingMaxGb ¶
func (srv *Mongo) WithUpdateStorageAutoscalingMaxGb(v int) UpdateOption
func (*Mongo) WithUpdateStorageAutoscalingThresholdPercent ¶
func (srv *Mongo) WithUpdateStorageAutoscalingThresholdPercent(v int) UpdateOption
func (*Mongo) WithUpdateSyncMode ¶
func (srv *Mongo) WithUpdateSyncMode(v string) UpdateOption
type UpdateBackupPolicyOption ¶
type UpdateBackupPolicyOption func(*UpdateBackupPolicyOptions)
type UpdateBackupPolicyOptions ¶
type UpdateBackupPolicyOptions struct {
Name string
Schedule string
Retention int
Enabled bool
// contains filtered or unexported fields
}
func (UpdateBackupPolicyOptions) New ¶
func (options UpdateBackupPolicyOptions) New() *UpdateBackupPolicyOptions
type UpdateBackupStorageOption ¶
type UpdateBackupStorageOption func(*UpdateBackupStorageOptions)
type UpdateBackupStorageOptions ¶
type UpdateBackupStorageOptions struct {
Region string
Prefix string
Endpoint string
// contains filtered or unexported fields
}
func (UpdateBackupStorageOptions) New ¶
func (options UpdateBackupStorageOptions) New() *UpdateBackupStorageOptions
type UpdateOption ¶
type UpdateOption func(*UpdateOptions)
type UpdateOptions ¶
type UpdateOptions struct {
Name string
Status string
Specification string
Replicas int
SyncMode string
NetworkIdleTimeoutSeconds int
NetworkIPAllowlist []string
IdleTimeoutMinutes int
Pitr bool
PitrRetentionDays int
StorageAutoscaling bool
StorageAutoscalingThresholdPercent int
StorageAutoscalingMaxGb int
MetricsTraceSampleRate float64
MetricsSlowQueryLogThresholdMs int
SqlApiEnabled bool
SqlApiAllowedStatements []string
SqlApiMaxRows int
SqlApiMaxBytes int
SqlApiTimeoutSeconds int
// contains filtered or unexported fields
}
func (UpdateOptions) New ¶
func (options UpdateOptions) New() *UpdateOptions