flagkit

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DownloadMinSplitKb    = 5120
	DownloadSplitCount    = 3
	DownloadMaxSplitCount = 15

	// Upload
	UploadMinSplitMb    = 200
	UploadSplitCount    = 5
	UploadChunkSizeMb   = 20
	UploadMaxSplitCount = 100

	// Common
	Retries                = 3
	RetryWaitMilliSecs     = 0
	ArtifactoryTokenExpiry = 3600
	ChunkSize              = "chunk-size"

	// Artifactory's Commands Keys
	Upload                 = "upload"
	Download               = "download"
	DirectDownload         = "direct-download"
	Move                   = "move"
	Copy                   = "copy"
	Delete                 = "delete"
	Properties             = "properties"
	Search                 = "search"
	BuildPublish           = "build-publish"
	BuildAppend            = "build-append"
	BuildScanLegacy        = "build-scan-legacy"
	BuildPromote           = "build-promote"
	BuildDiscard           = "build-discard"
	BuildAddDependencies   = "build-add-dependencies"
	BuildAddGit            = "build-add-git"
	BuildCollectEnv        = "build-collect-env"
	GitLfsClean            = "git-lfs-clean"
	Mvn                    = "mvn"
	MvnConfig              = "mvn-config"
	CocoapodsConfig        = "cocoapods-config"
	SwiftConfig            = "swift-config"
	Gradle                 = "gradle"
	GradleConfig           = "gradle-config"
	DockerPromote          = "docker-promote"
	Docker                 = "docker"
	DockerPush             = "docker-push"
	DockerPull             = "docker-pull"
	ContainerPull          = "container-pull"
	ContainerPush          = "container-push"
	BuildDockerCreate      = "build-docker-create"
	OcStartBuild           = "oc-start-build"
	NpmConfig              = "npm-config"
	NpmInstallCi           = "npm-install-ci"
	NpmPublish             = "npm-publish"
	PnpmConfig             = "pnpm-config"
	YarnConfig             = "yarn-config"
	Yarn                   = "yarn"
	NugetConfig            = "nuget-config"
	Nuget                  = "nuget"
	Dotnet                 = "dotnet"
	DotnetConfig           = "dotnet-config"
	Go                     = "go"
	GoConfig               = "go-config"
	GoPublish              = "go-publish"
	PipInstall             = "pip-install"
	PipConfig              = "pip-config"
	TerraformConfig        = "terraform-config"
	Terraform              = "terraform"
	Twine                  = "twine"
	PipenvConfig           = "pipenv-config"
	PipenvInstall          = "pipenv-install"
	PoetryConfig           = "poetry-config"
	Poetry                 = "poetry"
	Ping                   = "ping"
	RtCurl                 = "rt-curl"
	TemplateConsumer       = "template-consumer"
	RepoDelete             = "repo-delete"
	ReplicationDelete      = "replication-delete"
	PermissionTargetDelete = "permission-target-delete"
	// #nosec G101 -- False positive - no hardcoded credentials.
	ArtifactoryAccessTokenCreate = "artifactory-access-token-create"
	UserCreate                   = "user-create"
	UsersCreate                  = "users-create"
	UsersDelete                  = "users-delete"
	GroupCreate                  = "group-create"
	GroupAddUsers                = "group-add-users"
	GroupDelete                  = "group-delete"

	// ReleaseBundleSearch command flags
	ReleaseBundleSearch = "release-bundle-search"
	FilterBy            = "filter-by"
	OrderAsc            = "order-asc"
	OrderBy             = "order-by"
	Includes            = "includes"
	Format              = "format"
	Limit               = "limit"
	Offset              = "offset"

	// Config commands keys
	AddConfig    = "config-add"
	EditConfig   = "config-edit"
	DeleteConfig = "delete-config"

	// Client certification flags
	ClientCertPath    = "client-cert-path"
	ClientCertKeyPath = "client-cert-key-path"
	InsecureTls       = "insecure-tls"

	// Build info flags
	BuildName   = "build-name"
	BuildNumber = "build-number"

	Recursive = "recursive"

	Status     = "status"
	MinSplit   = "min-split"
	SplitCount = "split-count"

	EncPassword   = "enc-password"
	BasicAuthOnly = "basic-auth-only"
	Overwrite     = "overwrite"

	Project = "project"

	Async = "async"

	UseWrapper = "use-wrapper"

	Tag = "tag"

	UsersGroups = "users-groups"
	Replace     = "replace"
	Admin       = "admin"

	// Mutual *-access-token-create flags
	Groups      = "groups"
	GrantAdmin  = "grant-admin"
	Expiry      = "expiry"
	Refreshable = "refreshable"
	Audience    = "audience"

	// Common release-bundle-* v1&v2 flags
	DistRules = "dist-rules"

	CreateRepo = "create-repo"

	BypassArchiveLimits = "bypass-archive-limits"

	ExtendedTable = "extended-table"
	MinSeverity   = "min-severity"
	FixableOnly   = "fixable-only"

	IncludeRepos    = "include-repos"
	ExcludeRepos    = "exclude-repos"
	IncludeProjects = "include-projects"
	ExcludeProjects = "exclude-projects"

	// Unique lifecycle flags
	Sync = "sync"

	Builds = "builds"

	ReleaseBundles = "release-bundles"

	SigningKey = "signing-key"

	PathMappingPattern = "mapping-pattern"

	PathMappingTarget = "mapping-target"

	PromotionType = "promotion-type"

	DeleteProperty = "del-prop"

	SourceTypeReleaseBundles = "source-type-release-bundles"
	SourceTypeBuilds         = "source-type-builds"
)

Variables

This section is empty.

Functions

func GetCommandFlags

func GetCommandFlags(cmdKey string) []components.Flag

Types

This section is empty.

Jump to

Keyboard shortcuts

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