Documentation ¶
Index ¶
- Constants
- func GetInstanceName(ctx context.Context, apiClient SQLServerFlexClient, ...) (string, error)
- func GetUserName(ctx context.Context, apiClient SQLServerFlexClient, ...) (string, error)
- func LoadFlavorId(cpu, ram int64, flavors *[]sqlserverflex.InstanceFlavorEntry) (*string, error)
- func ValidateFlavorId(flavorId string, flavors *[]sqlserverflex.InstanceFlavorEntry) error
- func ValidateStorage(storageClass *string, storageSize *int64, ...) error
- type SQLServerFlexClient
Constants ¶
View Source
const (
ServiceCmd = "beta sqlserverflex"
)
Variables ¶
This section is empty.
Functions ¶
func GetInstanceName ¶
func GetUserName ¶ added in v0.8.1
func LoadFlavorId ¶
func LoadFlavorId(cpu, ram int64, flavors *[]sqlserverflex.InstanceFlavorEntry) (*string, error)
func ValidateFlavorId ¶
func ValidateFlavorId(flavorId string, flavors *[]sqlserverflex.InstanceFlavorEntry) error
func ValidateStorage ¶
func ValidateStorage(storageClass *string, storageSize *int64, storages *sqlserverflex.ListStoragesResponse, flavorId string) error
Types ¶
type SQLServerFlexClient ¶
type SQLServerFlexClient interface { ListVersionsExecute(ctx context.Context, projectId string) (*sqlserverflex.ListVersionsResponse, error) GetInstanceExecute(ctx context.Context, projectId, instanceId string) (*sqlserverflex.GetInstanceResponse, error) GetUserExecute(ctx context.Context, projectId, instanceId, userId string) (*sqlserverflex.GetUserResponse, error) }
Click to show internal directories.
Click to hide internal directories.