Documentation ¶
Index ¶
- func AvailableInstanceTypes() []string
- func GetInstanceName(ctx context.Context, apiClient MongoDBFlexClient, projectId, instanceId string) (string, error)
- func GetInstanceReplicas(instanceType string) (int64, error)
- func GetInstanceType(numReplicas int64) (string, error)
- func GetLatestMongoDBVersion(ctx context.Context, apiClient MongoDBFlexClient, projectId string) (string, error)
- func GetUserName(ctx context.Context, apiClient MongoDBFlexClient, ...) (string, error)
- func LoadFlavorId(cpu, ram int64, flavors *[]mongodbflex.HandlersInfraFlavor) (*string, error)
- func ValidateFlavorId(flavorId string, flavors *[]mongodbflex.HandlersInfraFlavor) error
- func ValidateStorage(storageClass *string, storageSize *int64, ...) error
- type MongoDBFlexClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AvailableInstanceTypes ¶
func AvailableInstanceTypes() []string
func GetInstanceName ¶
func GetInstanceReplicas ¶
func GetInstanceType ¶
func GetLatestMongoDBVersion ¶
func GetUserName ¶
func LoadFlavorId ¶
func LoadFlavorId(cpu, ram int64, flavors *[]mongodbflex.HandlersInfraFlavor) (*string, error)
func ValidateFlavorId ¶
func ValidateFlavorId(flavorId string, flavors *[]mongodbflex.HandlersInfraFlavor) error
func ValidateStorage ¶
func ValidateStorage(storageClass *string, storageSize *int64, storages *mongodbflex.ListStoragesResponse, flavorId string) error
Types ¶
type MongoDBFlexClient ¶
type MongoDBFlexClient interface { ListVersionsExecute(ctx context.Context, projectId string) (*mongodbflex.ListVersionsResponse, error) GetInstanceExecute(ctx context.Context, projectId, instanceId string) (*mongodbflex.GetInstanceResponse, error) GetUserExecute(ctx context.Context, projectId, instanceId, userId string) (*mongodbflex.GetUserResponse, error) }
Click to show internal directories.
Click to hide internal directories.