Documentation
¶
Index ¶
- func CheckAOGServer(cmd *cobra.Command, args []string)
- func DoHTTPRequest(client *config.AOGClient, method, path string, req, resp interface{}) error
- func DoHTTPRequestStream(client *config.AOGClient, method, path string, req interface{}, ...) error
- func IsServerRunning() bool
- func NewAOGClient() *config.AOGClient
- func NewVersionCommand() *cobra.Command
- func ShowProgressWithMessage(message string, fn func() error) error
- func ValidateFileExists(filePath string) error
- func ValidateFlavor(flavorName string) error
- func ValidateHybridPolicy(hybridPolicy string) error
- func ValidateRequiredFlag(flagName, flagValue string) error
- func ValidateServiceName(serviceName string) error
- func ValidateServiceProvider(serviceName, serviceSource, apiFlavor, authType, authKey string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAOGServer ¶
CheckAOGServer checks if AOG server is running
func DoHTTPRequest ¶
DoHTTPRequest performs HTTP request with proper error handling
func DoHTTPRequestStream ¶ added in v0.6.0
func IsServerRunning ¶ added in v0.6.0
func IsServerRunning() bool
IsServerRunning checks if the AOG server is running
func NewAOGClient ¶
NewAOGClient creates a new AOG client with context
func NewVersionCommand ¶
NewVersionCommand print client version
func ShowProgressWithMessage ¶
ShowProgressWithMessage shows loading animation with custom message
func ValidateFileExists ¶
ValidateFileExists validates that a file exists
func ValidateFlavor ¶
ValidateFlavor validates flavor parameter
func ValidateHybridPolicy ¶
ValidateHybridPolicy validates hybrid policy parameter
func ValidateRequiredFlag ¶
ValidateRequiredFlag validates that a required flag is provided
func ValidateServiceName ¶
ValidateServiceName validates service name parameter
func ValidateServiceProvider ¶
ValidateServiceProvider validates service provider configuration
Types ¶
This section is empty.