cliopt

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	DefaultLockWorkersMax = 4
	LockWorkersMaxLimit   = 64
)

Variables

This section is empty.

Functions

func ApplyFlatSnapshot

func ApplyFlatSnapshot(dirOut *DirOutConfig, version *VersionConfig, snapshot string, expectedAsset string) error

func BindDirOutFlag

func BindDirOutFlag(flags *pflag.FlagSet, cfg *DirOutConfig, usage string)

func BindDownloadControlFlags

func BindDownloadControlFlags(flags *pflag.FlagSet, cfg *DownloadControlConfig)

func BindDryRunFlag

func BindDryRunFlag(flags *pflag.FlagSet, cfg *DryRunConfig, usage string)

func BindInsecureTLSFlag

func BindInsecureTLSFlag(flags *pflag.FlagSet, cfg *InsecureTLSConfig, usage string)

func BindLockWorkersFlag

func BindLockWorkersFlag(flags *pflag.FlagSet, workersMax *int)

func BindLogDirFlag

func BindLogDirFlag(flags *pflag.FlagSet, cfg *LogConfig, usage string)

func BindProgressFlag

func BindProgressFlag(flags *pflag.FlagSet, cfg *ProgressConfig, usage string)

func BindRetryFlags

func BindRetryFlags(flags *pflag.FlagSet, cfg *RetryConfig)

func BindRuleExistingFlag

func BindRuleExistingFlag(flags *pflag.FlagSet, cfg *ExistingRuleConfig, usage string)

func BindStringListFlags

func BindStringListFlags(flags *pflag.FlagSet, values *[]string, optionName string, usage string)

func BindVersionFlag

func BindVersionFlag(flags *pflag.FlagSet, cfg *VersionConfig, usage string)

func ExpandListTokens

func ExpandListTokens(valuesInput []string, filePath string, optionName string) ([]string, error)

func FlatSnapshotRootVersion

func FlatSnapshotRootVersion(snapshot string, expectedAsset string) (string, string, error)

func NestedSnapshotRootDatasetVersion

func NestedSnapshotRootDatasetVersion(snapshot string, expectedAsset string) (string, string, string, error)

func NormalizeLockWorkersMax

func NormalizeLockWorkersMax(workersMax *int) error

func SnapshotVersionToken

func SnapshotVersionToken(dirSnapshot string) (string, error)

func SortedUniqueStrings

func SortedUniqueStrings(values []string) []string

func ValidateDirOutRequired

func ValidateDirOutRequired(dirOut string) error

func ValidateDownloadControlConfig

func ValidateDownloadControlConfig(cfg *DownloadControlConfig) error

func ValidateLockWorkersMax

func ValidateLockWorkersMax(workersMax int) error

func ValidateRetryConfig

func ValidateRetryConfig(cfg *RetryConfig) error

func ValidateRuleExisting

func ValidateRuleExisting(cfg *ExistingRuleConfig) error

func ValidateVersionRequired

func ValidateVersionRequired(versionToken string) error

Types

type DirOutConfig

type DirOutConfig struct {
	DirOut string
}

type DirSnapshotConfig

type DirSnapshotConfig struct {
	DirSnapshot string
}

type DownloadControlConfig

type DownloadControlConfig struct {
	WorkersMax      int
	RequestInterval time.Duration
}

type DryRunConfig

type DryRunConfig struct {
	ShouldDryRun bool
}

type ExistingRuleConfig

type ExistingRuleConfig struct {
	RuleExisting            string
	ShouldOverwriteExisting bool
}

type InsecureTLSConfig

type InsecureTLSConfig struct {
	ShouldAllowInsecureTLS bool
}

type LogConfig

type LogConfig struct {
	DirLogs string
}

type ProgressConfig

type ProgressConfig struct {
	ShouldDisableProgress bool
}

type RetryConfig

type RetryConfig struct {
	RetryMax  int
	RetryWait time.Duration
}

type VersionConfig

type VersionConfig struct {
	VersionToken string
}

Jump to

Keyboard shortcuts

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