common

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 DoHTTPRequestStream added in v0.6.0

func DoHTTPRequestStream(client *config.AOGClient, method, path string, req interface{}, fn types.PullProgressFunc) error

func IsServerRunning added in v0.6.0

func IsServerRunning() bool

IsServerRunning checks if the AOG server is running

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 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