cli

package
v3.3.5 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 56 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APP  = "rep"
	VER  = "3.3.5"
	DESC = "DNF/YUM repository management utility"
)

App info

View Source
const (
	COMMAND_INIT         = "init"
	COMMAND_GEN_KEY      = "gen-key"
	COMMAND_LIST         = "list"
	COMMAND_WHICH_SOURCE = "which-source"
	COMMAND_FIND         = "find"
	COMMAND_INFO         = "info"
	COMMAND_PAYLOAD      = "payload"
	COMMAND_CLEANUP      = "cleanup"
	COMMAND_CHECK        = "check"
	COMMAND_SIGN         = "sign"
	COMMAND_RESIGN       = "resign"
	COMMAND_ADD          = "add"
	COMMAND_REMOVE       = "remove"
	COMMAND_RELEASE      = "release"
	COMMAND_UNRELEASE    = "unrelease"
	COMMAND_REINDEX      = "reindex"
	COMMAND_PURGE_CACHE  = "purge-cache"
	COMMAND_STATS        = "stats"
	COMMAND_HELP         = "help"
)

Commands

View Source
const (
	COMMAND_SHORT_LIST         = "l"
	COMMAND_SHORT_WHICH_SOURCE = "ws"
	COMMAND_SHORT_FIND         = "f"
	COMMAND_SHORT_INFO         = "i"
	COMMAND_SHORT_PAYLOAD      = "p"
	COMMAND_SHORT_CLEANUP      = "c"
	COMMAND_SHORT_CHECK        = "ch"
	COMMAND_SHORT_SIGN         = "s"
	COMMAND_SHORT_RESIGN       = "rs"
	COMMAND_SHORT_ADD          = "a"
	COMMAND_SHORT_REMOVE       = "rm"
	COMMAND_SHORT_RELEASE      = "r"
	COMMAND_SHORT_UNRELEASE    = "u"
	COMMAND_SHORT_REINDEX      = "ri"
	COMMAND_SHORT_PURGE_CACHE  = "pc"
	COMMAND_SHORT_STATS        = "st"
	COMMAND_SHORT_HELP         = "h"
)

Commands shortcuts

View Source
const (
	STORAGE_TYPE        = "storage:type"
	STORAGE_DATA        = "storage:data"
	STORAGE_CACHE       = "storage:cache"
	STORAGE_SPLIT_FILES = "storage:split-files"

	INDEX_CHECKSUM         = "index:checksum"
	INDEX_PRETTY           = "index:pretty"
	INDEX_UPDATE           = "index:update"
	INDEX_SPLIT            = "index:split"
	INDEX_SKIP_SYMLINKS    = "index:skip-symlinks"
	INDEX_CHANGELOG_LIMIT  = "index:changelog-limit"
	INDEX_MD_FILENAMES     = "index:md-filenames"
	INDEX_DISTRO           = "index:distro"
	INDEX_CONTENT          = "index:content"
	INDEX_REVISION         = "index:revision"
	INDEX_DELTAS           = "index:deltas"
	INDEX_NUM_DELTAS       = "index:num-deltas"
	INDEX_WORKERS          = "index:workers"
	INDEX_COMPRESSION_TYPE = "index:compression-type"

	LOG_DIR_PERMS  = "log:dir-perms"
	LOG_FILE_PERMS = "log:file-perms"
	LOG_DIR        = "log:dir"

	TEMP_DIR = "temp:dir"
)

Global preferences

View Source
const (
	REPOSITORY_NAME        = "repository:name"
	REPOSITORY_FILE_FILTER = "repository:file-filter"
	REPOSITORY_REPLACE     = "repository:replace"

	PERMISSIONS_USER  = "permissions:user"
	PERMISSIONS_GROUP = "permissions:group"
	PERMISSIONS_FILE  = "permissions:file"
	PERMISSIONS_DIR   = "permissions:dir"

	SIGN_REQUIRED = "sign:required"
	SIGN_KEY      = "sign:key"
)

Repository preferences

View Source
const (
	OPT_TESTING        = "t:testing"
	OPT_RELEASE        = "r:release"
	OPT_ALL            = "a:all"
	OPT_ARCH           = "aa:arch"
	OPT_MOVE           = "m:move"
	OPT_NO_SOURCE      = "ns:no-source"
	OPT_IGNORE_FILTER  = "if:ignore-filter"
	OPT_POSTPONE_INDEX = "pi:postpone-index"
	OPT_FORCE          = "f:force"
	OPT_FULL           = "F:full"
	OPT_SHOW_ALL       = "A:show-all"
	OPT_EPOCH          = "E:epoch"
	OPT_STATUS         = "S:status"
	OPT_PAGER          = "P:pager"
	OPT_NO_COLOR       = "nc:no-color"
	OPT_HELP           = "h:help"
	OPT_VER            = "v:version"

	OPT_DEBUG    = "D:debug"
	OPT_VERB_VER = "vv:verbose-version"

	OPT_COMPLETION   = "completion"
	OPT_GENERATE_MAN = "generate-man"
)

Options

View Source
const (
	FLAG_NONE          uint8 = 0
	FLAG_REQUIRE_CACHE uint8 = 1 << iota // Require cache warming
	FLAG_REQUIRE_LOCK                    // Create and check lock
)
View Source
const CONFIG_DIR = "/etc/rep.d"

Path to directory with repositories configuration files

View Source
const CONFIG_FILE = "/etc/rep.knf"

Path to global configuration file

View Source
const INFO_MAX_OBJECTS = 30

Maximum number of files in info output

View Source
const MIN_KEEP_CLEANUP_VERS = 3

MIN_KEEP_CLEANUP_VERS is minimal number of versions to keep

Variables

This section is empty.

Functions

func Init

func Init(gitRev string, gomod []byte)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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