common

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AskEnableRemoteService

func AskEnableRemoteService() bool

AskEnableRemoteService asks the user whether to enable remote services

func CheckAOGServer

func CheckAOGServer(cmd *cobra.Command, args []string)

CheckAOGServer checks if AOG server is running

func DoHTTPRequest

func DoHTTPRequest(client *config.AOGClient, method, path string, req, resp interface{}) error

DoHTTPRequest performs HTTP request with proper error handling

func GetAPIKey

func GetAPIKey() string

GetAPIKey gets the API Key entered by the user

func NewAOGClient

func NewAOGClient() *config.AOGClient

NewAOGClient creates a new AOG client with context

func NewVersionCommand

func NewVersionCommand() *cobra.Command

NewVersionCommand print client version

func ShowProgressWithMessage

func ShowProgressWithMessage(message string, fn func() error) error

ShowProgressWithMessage shows loading animation with custom message

func StartAOGServer

func StartAOGServer(cmd *cobra.Command, args []string)

StartAOGServer starts AOG server if not running

func ValidateFileExists

func ValidateFileExists(filePath string) error

ValidateFileExists validates that a file exists

func ValidateFlavor

func ValidateFlavor(flavorName string) error

ValidateFlavor validates flavor parameter

func ValidateHybridPolicy

func ValidateHybridPolicy(hybridPolicy string) error

ValidateHybridPolicy validates hybrid policy parameter

func ValidateRequiredFlag

func ValidateRequiredFlag(flagName, flagValue string) error

ValidateRequiredFlag validates that a required flag is provided

func ValidateServiceName

func ValidateServiceName(serviceName string) error

ValidateServiceName validates service name parameter

func ValidateServiceProvider

func ValidateServiceProvider(serviceName, serviceSource, apiFlavor, authType, authKey string) error

ValidateServiceProvider validates service provider configuration

Types

This section is empty.

Jump to

Keyboard shortcuts

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