opts

package
v0.113.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All(enabled bool) command.Applier

All creates a new all option.

func Cache

func Cache(args args.Cache) command.Applier

Cache maps the Cache arguments to the CLI command options.

func CacheDirectory

func CacheDirectory(dir string) command.Applier

CacheDirectory creates a new cache directory option with a given directory. If the directory is empty, the default cache directory is used.

func CheckForUpdates

func CheckForUpdates(enabled bool) command.Applier

CheckForUpdates creates a new check for updates option.

func Common

func Common(args args.Common) command.Applier

Common maps the common arguments to the CLI command options.

func ConfigFilePath

func ConfigFilePath(path string) command.Applier

ConfigFilePath creates a new config file path option with a given path. If the path is empty, the config file path option is not set.

func ContentCacheSizeLimitMB

func ContentCacheSizeLimitMB(size int) command.Applier

ContentCacheSizeLimitMB creates a new content cache size option with a given size.

func ContentCacheSizeMB

func ContentCacheSizeMB(size int) command.Applier

ContentCacheSizeMB creates a new content cache size option with a given size.

func Delete

func Delete(enabled bool) command.Applier

Delete creates a new delete option.

func Delta

func Delta(enabled bool) command.Applier

Delta creates a new delta option.

func JSON

func JSON(enabled bool) command.Applier

JSON creates a new JSON option.

func LogDirectory

func LogDirectory(dir string) command.Applier

LogDirectory creates a new log directory option with a given directory. if the directory is empty, the log directory option is not set.

func LogLevel

func LogLevel(level string) command.Applier

LogLevel creates a new log level flag with a given level. If the level is empty, the default log level is used.

func MetadataCacheSizeLimitMB

func MetadataCacheSizeLimitMB(size int) command.Applier

MetadataCacheSizeLimitMB creates a new metadata cache size option with a given size.

func MetadataCacheSizeMB

func MetadataCacheSizeMB(size int) command.Applier

MetadataCacheSizeMB creates a new metadata cache size option with a given size.

func ReadOnly

func ReadOnly(enabled bool) command.Applier

ReadOnly creates a new read only option.

func RepoPassword

func RepoPassword(password string) command.Applier

RepoPassword creates a new repository password option with a given password. If the password is empty, the repository password option is not set.

func ShowIdentical

func ShowIdentical(enabled bool) command.Applier

ShowIdentical creates a new show identical option.

Types

This section is empty.

Jump to

Keyboard shortcuts

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