Documentation
¶
Index ¶
- Constants
- func ApplyFlatSnapshot(dirOut *DirOutConfig, version *VersionConfig, snapshot string, ...) error
- func BindDirOutFlag(flags *pflag.FlagSet, cfg *DirOutConfig, usage string)
- func BindDownloadControlFlags(flags *pflag.FlagSet, cfg *DownloadControlConfig)
- func BindDryRunFlag(flags *pflag.FlagSet, cfg *DryRunConfig, usage string)
- func BindInsecureTLSFlag(flags *pflag.FlagSet, cfg *InsecureTLSConfig, usage string)
- func BindLockWorkersFlag(flags *pflag.FlagSet, workersMax *int)
- func BindLogDirFlag(flags *pflag.FlagSet, cfg *LogConfig, usage string)
- func BindProgressFlag(flags *pflag.FlagSet, cfg *ProgressConfig, usage string)
- func BindRetryFlags(flags *pflag.FlagSet, cfg *RetryConfig)
- func BindRuleExistingFlag(flags *pflag.FlagSet, cfg *ExistingRuleConfig, usage string)
- func BindStringListFlags(flags *pflag.FlagSet, values *[]string, optionName string, usage string)
- func BindVersionFlag(flags *pflag.FlagSet, cfg *VersionConfig, usage string)
- func ExpandListTokens(valuesInput []string, filePath string, optionName string) ([]string, error)
- func FlatSnapshotRootVersion(snapshot string, expectedAsset string) (string, string, error)
- func NestedSnapshotRootDatasetVersion(snapshot string, expectedAsset string) (string, string, string, error)
- func NormalizeLockWorkersMax(workersMax *int) error
- func SnapshotVersionToken(dirSnapshot string) (string, error)
- func SortedUniqueStrings(values []string) []string
- func ValidateDirOutRequired(dirOut string) error
- func ValidateDownloadControlConfig(cfg *DownloadControlConfig) error
- func ValidateLockWorkersMax(workersMax int) error
- func ValidateRetryConfig(cfg *RetryConfig) error
- func ValidateRuleExisting(cfg *ExistingRuleConfig) error
- func ValidateVersionRequired(versionToken string) error
- type DirOutConfig
- type DirSnapshotConfig
- type DownloadControlConfig
- type DryRunConfig
- type ExistingRuleConfig
- type InsecureTLSConfig
- type LogConfig
- type ProgressConfig
- type RetryConfig
- type VersionConfig
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 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 BindVersionFlag ¶
func BindVersionFlag(flags *pflag.FlagSet, cfg *VersionConfig, usage string)
func ExpandListTokens ¶
func FlatSnapshotRootVersion ¶
func NormalizeLockWorkersMax ¶
func SnapshotVersionToken ¶
func SortedUniqueStrings ¶
func ValidateDirOutRequired ¶
func ValidateDownloadControlConfig ¶
func ValidateDownloadControlConfig(cfg *DownloadControlConfig) error
func ValidateLockWorkersMax ¶
func ValidateRetryConfig ¶
func ValidateRetryConfig(cfg *RetryConfig) error
func ValidateRuleExisting ¶
func ValidateRuleExisting(cfg *ExistingRuleConfig) error
func ValidateVersionRequired ¶
Types ¶
type DirOutConfig ¶
type DirOutConfig struct {
DirOut string
}
type DirSnapshotConfig ¶
type DirSnapshotConfig struct {
DirSnapshot string
}
type DownloadControlConfig ¶
type DryRunConfig ¶
type DryRunConfig struct {
ShouldDryRun bool
}
type ExistingRuleConfig ¶
type InsecureTLSConfig ¶
type InsecureTLSConfig struct {
ShouldAllowInsecureTLS bool
}
type ProgressConfig ¶
type ProgressConfig struct {
ShouldDisableProgress bool
}
type RetryConfig ¶
type VersionConfig ¶
type VersionConfig struct {
VersionToken string
}
Click to show internal directories.
Click to hide internal directories.