config

package
v1.3.16 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: MIT Imports: 0 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

Functions

This section is empty.

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
}

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