utils

package
v0.68.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL