Documentation
¶
Index ¶
- func AvailableInstanceTypes() []string
- func GetInstanceName(ctx context.Context, apiClient PostgresFlexClient, ...) (string, error)
- func GetInstanceReplicas(instanceType string) (int32, error)
- func GetInstanceStatus(ctx context.Context, apiClient PostgresFlexClient, ...) (string, error)
- func GetInstanceType(numReplicas int32) (string, error)
- func GetLatestPostgreSQLVersion(ctx context.Context, apiClient PostgresFlexClient, projectId, region string) (string, error)
- func GetUserName(ctx context.Context, apiClient PostgresFlexClient, ...) (string, error)
- func LoadFlavorId(cpu, ram int64, flavors []postgresflex.Flavor) (*string, error)
- func ValidateFlavorId(flavorId string, flavors []postgresflex.Flavor) error
- func ValidateStorage(storageClass *string, storageSize *int64, ...) error
- type PostgresFlexClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AvailableInstanceTypes ¶
func AvailableInstanceTypes() []string
func GetInstanceName ¶
func GetInstanceReplicas ¶
func GetInstanceStatus ¶
func GetInstanceType ¶
func GetUserName ¶
func LoadFlavorId ¶
func LoadFlavorId(cpu, ram int64, flavors []postgresflex.Flavor) (*string, error)
func ValidateFlavorId ¶
func ValidateFlavorId(flavorId string, flavors []postgresflex.Flavor) error
func ValidateStorage ¶
func ValidateStorage(storageClass *string, storageSize *int64, storages *postgresflex.ListStoragesResponse, flavorId string) error
Types ¶
type PostgresFlexClient ¶
type PostgresFlexClient interface {
ListVersions(ctx context.Context, projectId, region string) postgresflex.ApiListVersionsRequest
GetInstance(ctx context.Context, projectId, region, instanceId string) postgresflex.ApiGetInstanceRequest
GetUser(ctx context.Context, projectId, region, instanceId, userId string) postgresflex.ApiGetUserRequest
}
Click to show internal directories.
Click to hide internal directories.