config

package
v1.3.32 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultTimeoutSeconds = 0

DefaultTimeoutSeconds is the default request timeout (0 means no timeout)

Variables

View Source
var Global = GlobalFlags{}

Global is the shared instance of GlobalFlags

View Source
var Version = "dev"

Version is the CLI version, set at startup from the ldflags-injected build version.

Functions

func UserAgent added in v1.3.32

func UserAgent() string

UserAgent returns the User-Agent string sent with outgoing HTTP requests.

Types

type GlobalFlags

type GlobalFlags struct {
	// Common authentication and connection flags
	APIBaseURL string
	AuthToken  string
	ConfigPath string
	AccountID  string
	OrgID      string
	ProjectID  string
	Format     string

	// Request timeout in seconds (0 means no timeout)
	TimeoutSeconds int

	// Command-specific configurations
	Registry RegistryConfig
}

GlobalFlags contains common flags used across commands

type MigrateConfig

type MigrateConfig struct {
	Concurrency int
	Overwrite   bool
	DryRun      bool
	Summary     bool
}

MigrateConfig holds migrate command specific configurations

type RegistryConfig

type RegistryConfig struct {
	PkgURL string
	// For migrate command
	Migrate MigrateConfig

	// For status command
	Status StatusConfig
}

RegistryConfig holds ar-specific configurations

type StatusConfig

type StatusConfig struct {
	MigrationID  string
	PollInterval int
}

StatusConfig holds status command specific configurations

Jump to

Keyboard shortcuts

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