Versions in this module Expand all Collapse all v0 v0.16.2 Dec 23, 2024 v0.16.1 Dec 20, 2024 Changes in this version type Transport + ExternalProxy string v0.16.0 Dec 20, 2024 Changes in this version type Config + Diff Diff + Merge Merge + type Diff struct + Algorithm string + func (d *Diff) Overwrite(o *Diff) + type Merge struct + ConflictStyle string + func (m *Merge) Overwrite(o *Merge) v0.15.1 Dec 16, 2024 v0.15.0 Dec 16, 2024 v0.14.0 Nov 29, 2024 v0.13.0 Nov 22, 2024 Changes in this version + const BOOLEAN + const BOOLEAN_FALSE + const BOOLEAN_TRUE + const BOOLEAN_UNSET + const BOOLORINT + const DATETIME + const ENV_ZETA_CONFIG_SYSTEM + const FragmentSize + const FragmentThreshold + const INTEGER + const NUL + const NoZetaDir + const PATH + const UNSPECIFIED + var ErrInvalidArgument = errors.New("invalid argument") + var ErrKeyNotFound = errors.New("key not found") + var False = Boolean + var True = Boolean + func DisplayGlobal(opts *DisplayOptions) error + func DisplayLocal(opts *DisplayOptions, zetaDir string) error + func DisplaySystem(opts *DisplayOptions) error + func Encode(zetaDir string, config *Config) error + func EncodeGlobal(config *Config) error + func Get(opts *GetOptions, zetaDir string, found bool) error + func GetGlobal(opts *GetOptions) error + func GetLocal(opts *GetOptions, zetaDir string) error + func GetSystem(opts *GetOptions) error + func IsErrBadConfigKey(err error) bool + func UnsetGlobal(keys ...string) error + func UnsetLocal(zetaDir string, keys ...string) error + func UnsetSystem(keys ...string) error + func UpdateGlobal(opts *UpdateOptions) error + func UpdateLocal(zetaDir string, opts *UpdateOptions) error + func UpdateSystem(opts *UpdateOptions) error + type Accelerator string + const Aria2 + const Direct + const Dragonfly + type Boolean struct + func (b *Boolean) False() bool + func (b *Boolean) IsUnset() bool + func (b *Boolean) Merge(other *Boolean) + func (b *Boolean) Set(v bool) bool + func (b *Boolean) True() bool + func (b *Boolean) UnmarshalTOML(a any) error + func (b *Boolean) Unset() + type Config struct + Core Core + Fragment Fragment + HTTP HTTP + Transport Transport + User User + func Load(zetaDir string) (*Config, error) + func LoadBaseline() (*Config, error) + func LoadGlobal() (*Config, error) + func LoadSystem() (*Config, error) + func (c *Config) Overwrite(co *Config) + type Core struct + Accelerator Accelerator + CompressionALGO string + ConcurrentTransfers int + Editor string + HashALGO string + HooksPath string + OptimizeStrategy Strategy + Remote string + SharingRoot string + Snapshot bool + SparseDirs StringArray + func (c *Core) IsExtreme() bool + func (c *Core) Overwrite(o *Core) + type Display interface + Show func(a any, keys ...string) error + type DisplayOptions struct + Verbose bool + Z bool + func (opts *DisplayOptions) DbgPrint(format string, args ...any) + func (opts *DisplayOptions) Show(a any, keys ...string) error + type ErrBadConfigKey struct + func (err *ErrBadConfigKey) Error() string + type Fragment struct + SizeRaw Size + ThresholdRaw Size + func (f *Fragment) Overwrite(o *Fragment) + func (f Fragment) Size() int64 + func (f Fragment) Threshold() int64 + type GetOptions struct + ALL bool + Keys []string + Verbose bool + Z bool + func (opts *GetOptions) DbgPrint(format string, args ...any) + type HTTP struct + ExtraHeader StringArray + SSLVerify Boolean + func (h *HTTP) Overwrite(o *HTTP) + type Section map[string]any + type Sections map[string]Section + type Size struct + Size int64 + func (s *Size) UnmarshalText(text []byte) (err error) + type Strategy string + const STRATEGY_EAGER + const STRATEGY_EXTREME + const STRATEGY_HEURISTICAL + const STRATEGY_UNSPECIFIED + type StringArray []string + func (a *StringArray) UnmarshalTOML(data any) error + type Transport struct + LargeSizeRaw Size + MaxEntries int + func (t *Transport) Overwrite(o *Transport) + func (t Transport) LargeSize() int64 + type UpdateOptions struct + Append bool + Values map[string]any + type User struct + Email string + Name string + func (u *User) Empty() bool + func (u *User) Overwrite(o *User)