Help us shape the future of Go! Take the 2026 Go Developer Survey

utils

package
v0.76.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AvailableInstanceTypes

func AvailableInstanceTypes() []string

func GetInstanceName

func GetInstanceName(ctx context.Context, apiClient mongodbflex.DefaultAPI, projectId, instanceId, region string) (string, error)

func GetInstanceReplicas

func GetInstanceReplicas(instanceType string) (int32, error)

func GetLatestMongoDBVersion deprecated

func GetLatestMongoDBVersion(ctx context.Context, apiClient mongodbflex.DefaultAPI, projectId, region string) (string, error)

Deprecated: Will be removed after 2027-03-07.

func GetRestoreStatus added in v0.6.0

func GetRestoreStatus(backupId string, restoreJobs *mongodbflex.ListRestoreJobsResponse) string

func GetUserName

func GetUserName(ctx context.Context, apiClient mongodbflex.DefaultAPI, projectId, instanceId, userId, region string) (string, error)

func LoadFlavorId deprecated

func LoadFlavorId(cpu, ram int32, flavors *[]mongodbflex.InstanceFlavor) (*string, error)

Deprecated: Will be removed after 2027-03-07

Types

This section is empty.

Jump to

Keyboard shortcuts

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