Documentation ¶
Index ¶
- func AvailableInstanceTypes() []string
- func GetInstanceName(ctx context.Context, apiClient PostgresFlexClient, ...) (string, error)
- func GetInstanceReplicas(instanceType string) (int64, error)
- func GetInstanceStatus(ctx context.Context, apiClient PostgresFlexClient, ...) (string, error)
- func GetInstanceType(numReplicas int64) (string, error)
- func GetLatestPostgreSQLVersion(ctx context.Context, apiClient PostgresFlexClient, projectId 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 { ListVersionsExecute(ctx context.Context, projectId string) (*postgresflex.ListVersionsResponse, error) GetInstanceExecute(ctx context.Context, projectId, instanceId string) (*postgresflex.InstanceResponse, error) GetUserExecute(ctx context.Context, projectId, instanceId, userId string) (*postgresflex.GetUserResponse, error) }
Click to show internal directories.
Click to hide internal directories.