Documentation
¶
Index ¶
- Constants
- func GetFlavor(ctx context.Context, client sqlserverflex.DefaultAPI, ...) (*sqlserverflex.ListFlavors, error)
- func GetInstanceName(ctx context.Context, apiClient sqlserverflex.DefaultAPI, ...) (string, error)
- func GetUserName(ctx context.Context, apiClient sqlserverflex.DefaultAPI, ...) (string, error)
- func ListAllFlavors(ctx context.Context, api sqlserverflex.DefaultAPI, projectId, region string) ([]sqlserverflex.ListFlavors, error)
- func LoadFlavorId(cpu, ram int64, flavors []sqlserverflex.ListFlavors) (string, error)
- func ValidateFlavorId(flavorId string, flavors []sqlserverflex.ListFlavors) error
- func ValidateStorage(storageClass string, storageSize *int64, ...) error
Constants ¶
View Source
const (
ServiceCmd = "beta sqlserverflex"
)
Variables ¶
This section is empty.
Functions ¶
func GetFlavor ¶ added in v0.68.0
func GetFlavor(ctx context.Context, client sqlserverflex.DefaultAPI, projectId, region, flavorId string) (*sqlserverflex.ListFlavors, error)
func GetInstanceName ¶
func GetInstanceName(ctx context.Context, apiClient sqlserverflex.DefaultAPI, projectId, instanceId, region string) (string, error)
func GetUserName ¶ added in v0.8.1
func GetUserName(ctx context.Context, apiClient sqlserverflex.DefaultAPI, projectId, instanceId string, userId int64, region string) (string, error)
func ListAllFlavors ¶ added in v0.68.0
func ListAllFlavors(ctx context.Context, api sqlserverflex.DefaultAPI, projectId, region string) ([]sqlserverflex.ListFlavors, error)
func LoadFlavorId ¶
func LoadFlavorId(cpu, ram int64, flavors []sqlserverflex.ListFlavors) (string, error)
func ValidateFlavorId ¶
func ValidateFlavorId(flavorId string, flavors []sqlserverflex.ListFlavors) error
func ValidateStorage ¶
func ValidateStorage(storageClass string, storageSize *int64, storages *sqlserverflex.ListStoragesResponse, flavorId string) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.