repository

package
v2.57.2 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// Strings for prompt questions
	SelectConfigKeyMsg = "Select the next configuration key" + ioutils.PressTabMsg

	TemplateType = "templateType"
	Create       = "create"
	Update       = "update"

	MandatoryUrl = "mandatoryUrl"

	// Common repository configuration JSON keys
	Key             = "key"
	Rclass          = "rclass"
	PackageType     = "packageType"
	Description     = "description"
	Notes           = "notes"
	IncludePatterns = "includesPattern"
	ExcludePatterns = "excludesPattern"
	RepoLayoutRef   = "repoLayoutRef"
	ProjectKey      = "projectKey"
	Environment     = "environment"

	// Mutual local and remote repository configuration JSON keys
	HandleReleases               = "handleReleases"
	HandleSnapshots              = "handleSnapshots"
	MaxUniqueSnapshots           = "maxUniqueSnapshots"
	SuppressPomConsistencyChecks = "suppressPomConsistencyChecks"
	BlackedOut                   = "blackedOut"
	XrayIndex                    = "xrayIndex"
	PropertySets                 = "propertySets"
	DownloadRedirect             = "downloadRedirect"
	PriorityResolution           = "priorityResolution"
	CdnRedirect                  = "cdnRedirect"
	BlockPushingSchema1          = "blockPushingSchema1"

	// Mutual local and virtual repository configuration JSON keys
	DebianTrivialLayout             = "debianTrivialLayout"
	OptionalIndexCompressionFormats = "optionalIndexCompressionFormats"
	PrimaryKeyPairRef               = "primaryKeyPairRef"

	// Mutual remote and virtual repository configuration JSON keys
	ExternalDependenciesEnabled  = "externalDependenciesEnabled"
	ExternalDependenciesPatterns = "externalDependenciesPatterns"

	// Unique local repository configuration JSON keys
	ChecksumPolicyType       = "checksumPolicyType"
	MaxUniqueTags            = "maxUniqueTags"
	SnapshotVersionBehavior  = "snapshotVersionBehavior"
	ArchiveBrowsingEnabled   = "archiveBrowsingEnabled"
	CalculateYumMetadata     = "calculateYumMetadata"
	YumRootDepth             = "yumRootDepth"
	DockerApiVersion         = "dockerApiVersion"
	EnableFileListsIndexing  = "enableFileListsIndexing"
	ForceNugetAuthentication = "forceNugetAuthentication"

	// Unique remote repository configuration JSON keys
	Url                               = "url"
	Username                          = "username"
	Password                          = "password"
	Proxy                             = "proxy"
	RemoteRepoChecksumPolicyType      = "remoteRepoChecksumPolicyType"
	HardFail                          = "hardFail"
	Offline                           = "offline"
	StoreArtifactsLocally             = "storeArtifactsLocally"
	SocketTimeoutMillis               = "socketTimeoutMillis"
	LocalAddress                      = "localAddress"
	RetrievalCachePeriodSecs          = "retrievalCachePeriodSecs"
	FailedRetrievalCachePeriodSecs    = "failedRetrievalCachePeriodSecs"
	MissedRetrievalCachePeriodSecs    = "missedRetrievalCachePeriodSecs"
	UnusedArtifactsCleanupEnabled     = "unusedArtifactsCleanupEnabled"
	UnusedArtifactsCleanupPeriodHours = "unusedArtifactsCleanupPeriodHours"
	AssumedOfflinePeriodSecs          = "assumedOfflinePeriodSecs"
	FetchJarsEagerly                  = "fetchJarsEagerly"
	FetchSourcesEagerly               = "fetchSourcesEagerly"
	RejectInvalidJars                 = "rejectInvalidJars"
	ShareConfiguration                = "shareConfiguration"
	SynchronizeProperties             = "synchronizeProperties"
	BlockMismatchingMimeTypes         = "blockMismatchingMimeTypes"
	AllowAnyHostAuth                  = "allowAnyHostAuth"
	EnableCookieManagement            = "enableCookieManagement"
	BowerRegistryUrl                  = "bowerRegistryUrl"
	ComposerRegistryUrl               = "composerRegistryUrl"
	PyPIRegistryUrl                   = "pyPIRegistryUrl"
	VcsType                           = "vcsType"
	VcsGitProvider                    = "vcsGitProvider"
	VcsGitDownloadUrl                 = "vcsGitDownloadUrl"
	BypassHeadRequests                = "bypassHeadRequests"
	ClientTlsCertificate              = "clientTlsCertificate"
	FeedContextPath                   = "feedContextPath"
	DownloadContextPath               = "downloadContextPath"
	V3FeedUrl                         = "v3FeedUrl"
	ContentSynchronisation            = "contentSynchronisation"
	ListRemoteFolderItems             = "listRemoteFolderItems"
	EnableTokenAuthentication         = "enableTokenAuthentication"
	PodsSpecsRepoUrl                  = "podsSpecsRepoUrl"

	// Unique virtual repository configuration JSON keys
	Repositories                                  = "repositories"
	ArtifactoryRequestsCanRetrieveRemoteArtifacts = "artifactoryRequestsCanRetrieveRemoteArtifacts"
	KeyPair                                       = "keyPair"
	PomRepositoryReferencesCleanupPolicy          = "pomRepositoryReferencesCleanupPolicy"
	DefaultDeploymentRepo                         = "defaultDeploymentRepo"
	ForceMavenAuthentication                      = "forceMavenAuthentication"
	ExternalDependenciesRemoteRepo                = "externalDependenciesRemoteRepo"

	// rclasses
	Local     = "local"
	Remote    = "remote"
	Virtual   = "virtual"
	Federated = "federated"

	// PackageTypes
	Generic   = "generic"
	Maven     = "maven"
	Gradle    = "gradle"
	Ivy       = "ivy"
	Sbt       = "sbt"
	Helm      = "helm"
	Cocoapods = "cocoapods"
	Opkg      = "opkg"
	Rpm       = "rpm"
	Nuget     = "nuget"
	Cran      = "cran"
	Gems      = "gems"
	Npm       = "npm"
	Bower     = "bower"
	Debian    = "debian"
	Composer  = "composer"
	Pypi      = "pypi"
	Docker    = "docker"
	Vagrant   = "vagrant"
	Gitlfs    = "gitlfs"
	Go        = "go"
	Yum       = "yum"
	Conan     = "conan"
	Chef      = "chef"
	Puppet    = "puppet"
	Vcs       = "vcs"
	Alpine    = "alpine"
	Conda     = "conda"
	P2        = "p2"
	Swift     = "swift"
	Terraform = "terraform"
	Cargo     = "cargo"

	// Repo layout Refs
	BowerDefaultRepoLayout = "bower-default"

	ComposerDefaultRepoLayout = "composer-default"
	ConanDefaultRepoLayout    = "conan-default"
	GoDefaultRepoLayout       = "go-default"
	GradleDefaultRepoLayout   = "maven-2-default"
	IvyDefaultRepoLayout      = "ivy-default"
	Maven1DefaultRepoLayout   = "maven-1-default"
	Maven2DefaultRepoLayout   = "maven-2-default"
	NpmDefaultRepoLayout      = "npm-default"
	NugetDefaultRepoLayout    = "nuget-default"

	SbtDefaultRepoLayout    = "sbt-default"
	SimpleDefaultRepoLayout = "simple-default"
	VcsDefaultRepoLayout    = "vcs-default"

	// Checksum Policies
	ClientChecksumPolicy           = "client-checksums"
	ServerGeneratedChecksumsPolicy = "server-generated-checksums"

	// Snapshot version behaviors
	UniqueBehavior    = "unique"
	NonUniqueBehavior = "non-unique"
	DeployerBehavior  = "deployer"

	// Optional index compression formats
	Bz2Compression  = "bz2"
	LzmaCompression = "lzma"
	XzCompression   = "xz"

	// Docker api versions
	DockerApiV1 = "V1"
	DockerApiV2 = "V2"

	// Remote repo checksum policies
	GenerateIfAbsentPolicy  = "generate-if-absent"
	FailPolicy              = "fail"
	IgnoreAndGeneratePolicy = "ignore-and-generate"
	PassThruPolicy          = "pass-thru"

	// Vcs Types
	Git = "GIT"

	// Vcs git provider
	GithubVcsProvider      = "GITHUB"
	BitbucketVcsProvider   = "BITBUCKET"
	OldstashVcsProvider    = "OLDSTASH"
	StashVcsProvider       = "STASH"
	ArtifactoryVcsProvider = "ARTIFACTORY"
	CustomVcsProvider      = "CUSTOM"

	// POM repository references cleanup policies
	DiscardActiveRefrencePolicy = "discard_active_reference"
	DiscardAnyReferencePolicy   = "discard_any_reference"
	NothingPolicy               = "nothing"
)

Variables

View Source
var BoolToStringQuestionInfo = ioutils.QuestionInfo{
	Options:   ioutils.GetBoolSuggests(),
	AllowVars: true,
	Writer:    ioutils.WriteStringAnswer,
}

Specific writers for repo templates, since all the values in the templates should be written as string

View Source
var IntToStringQuestionInfo = ioutils.QuestionInfo{
	Options:   nil,
	AllowVars: true,
	Writer:    ioutils.WriteStringAnswer,
}
View Source
var StringListToStringQuestionInfo = ioutils.QuestionInfo{
	Msg:       ioutils.CommaSeparatedListMsg,
	Options:   nil,
	AllowVars: true,
	Writer:    ioutils.WriteStringAnswer,
}

Functions

This section is empty.

Types

type RepoCommand

type RepoCommand struct {
	// contains filtered or unexported fields
}

func (*RepoCommand) PerformRepoCmd

func (rc *RepoCommand) PerformRepoCmd(isUpdate bool) (err error)

func (*RepoCommand) TemplatePath

func (rc *RepoCommand) TemplatePath() string

func (*RepoCommand) Vars

func (rc *RepoCommand) Vars() string

type RepoCreateCommand

type RepoCreateCommand struct {
	RepoCommand
}

func NewRepoCreateCommand

func NewRepoCreateCommand() *RepoCreateCommand

func (*RepoCreateCommand) CommandName

func (rcc *RepoCreateCommand) CommandName() string

func (*RepoCreateCommand) Run

func (rcc *RepoCreateCommand) Run() (err error)

func (*RepoCreateCommand) ServerDetails

func (rcc *RepoCreateCommand) ServerDetails() (*config.ServerDetails, error)

func (*RepoCreateCommand) SetServerDetails

func (rcc *RepoCreateCommand) SetServerDetails(serverDetails *config.ServerDetails) *RepoCreateCommand

func (*RepoCreateCommand) SetTemplatePath

func (rcc *RepoCreateCommand) SetTemplatePath(path string) *RepoCreateCommand

func (*RepoCreateCommand) SetVars

func (rcc *RepoCreateCommand) SetVars(vars string) *RepoCreateCommand

type RepoDeleteCommand

type RepoDeleteCommand struct {
	// contains filtered or unexported fields
}

func NewRepoDeleteCommand

func NewRepoDeleteCommand() *RepoDeleteCommand

func (*RepoDeleteCommand) CommandName

func (rdc *RepoDeleteCommand) CommandName() string

func (*RepoDeleteCommand) Run

func (rdc *RepoDeleteCommand) Run() (err error)

func (*RepoDeleteCommand) ServerDetails

func (rdc *RepoDeleteCommand) ServerDetails() (*config.ServerDetails, error)

func (*RepoDeleteCommand) SetQuiet

func (rdc *RepoDeleteCommand) SetQuiet(quiet bool) *RepoDeleteCommand

func (*RepoDeleteCommand) SetRepoPattern

func (rdc *RepoDeleteCommand) SetRepoPattern(repoPattern string) *RepoDeleteCommand

func (*RepoDeleteCommand) SetServerDetails

func (rdc *RepoDeleteCommand) SetServerDetails(serverDetails *config.ServerDetails) *RepoDeleteCommand

type RepoTemplateCommand

type RepoTemplateCommand struct {
	// contains filtered or unexported fields
}

func NewRepoTemplateCommand

func NewRepoTemplateCommand() *RepoTemplateCommand

func (*RepoTemplateCommand) CommandName

func (rtc *RepoTemplateCommand) CommandName() string

func (*RepoTemplateCommand) Run

func (rtc *RepoTemplateCommand) Run() (err error)

func (*RepoTemplateCommand) ServerDetails

func (rtc *RepoTemplateCommand) ServerDetails() (*config.ServerDetails, error)

func (*RepoTemplateCommand) SetTemplatePath

func (rtc *RepoTemplateCommand) SetTemplatePath(path string) *RepoTemplateCommand

type RepoUpdateCommand

type RepoUpdateCommand struct {
	RepoCommand
}

func NewRepoUpdateCommand

func NewRepoUpdateCommand() *RepoUpdateCommand

func (*RepoUpdateCommand) CommandName

func (ruc *RepoUpdateCommand) CommandName() string

func (*RepoUpdateCommand) Run

func (ruc *RepoUpdateCommand) Run() (err error)

func (*RepoUpdateCommand) ServerDetails

func (ruc *RepoUpdateCommand) ServerDetails() (*config.ServerDetails, error)

func (*RepoUpdateCommand) SetServerDetails

func (ruc *RepoUpdateCommand) SetServerDetails(serverDetails *config.ServerDetails) *RepoUpdateCommand

func (*RepoUpdateCommand) SetTemplatePath

func (ruc *RepoUpdateCommand) SetTemplatePath(path string) *RepoUpdateCommand

func (*RepoUpdateCommand) SetVars

func (ruc *RepoUpdateCommand) SetVars(vars string) *RepoUpdateCommand

Jump to

Keyboard shortcuts

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