Documentation ¶
Index ¶
- Constants
- Variables
- type RepoCommand
- type RepoCreateCommand
- func (rcc *RepoCreateCommand) CommandName() string
- func (rcc *RepoCreateCommand) RtDetails() (*config.ArtifactoryDetails, error)
- func (rcc *RepoCreateCommand) Run() (err error)
- func (rcc *RepoCreateCommand) SetRtDetails(rtDetails *config.ArtifactoryDetails) *RepoCreateCommand
- func (rcc *RepoCreateCommand) SetTemplatePath(path string) *RepoCreateCommand
- func (rcc *RepoCreateCommand) SetVars(vars string) *RepoCreateCommand
- type RepoDeleteCommand
- func (rdc *RepoDeleteCommand) CommandName() string
- func (rdc *RepoDeleteCommand) RtDetails() (*config.ArtifactoryDetails, error)
- func (rdc *RepoDeleteCommand) Run() (err error)
- func (rdc *RepoDeleteCommand) SetQuiet(quiet bool) *RepoDeleteCommand
- func (rdc *RepoDeleteCommand) SetRepoKey(repoKey string) *RepoDeleteCommand
- func (rdc *RepoDeleteCommand) SetRtDetails(rtDetails *config.ArtifactoryDetails) *RepoDeleteCommand
- type RepoTemplateCommand
- type RepoUpdateCommand
- func (ruc *RepoUpdateCommand) CommandName() string
- func (ruc *RepoUpdateCommand) RtDetails() (*config.ArtifactoryDetails, error)
- func (ruc *RepoUpdateCommand) Run() (err error)
- func (ruc *RepoUpdateCommand) SetRtDetails(rtDetails *config.ArtifactoryDetails) *RepoUpdateCommand
- func (ruc *RepoUpdateCommand) SetTemplatePath(path string) *RepoUpdateCommand
- func (ruc *RepoUpdateCommand) SetVars(vars string) *RepoUpdateCommand
Constants ¶
View Source
const ( PathErrorSuffixMsg = " please enter a path, in which the new template file will be created" // Strings for prompt questions SelectConfigKeyMsg = "Select the next configuration key" + utils.PressTabMsg InsertValuePromptMsg = "Insert the value for " 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" // Mutual local and remote repository configuration JSON keys HandleReleases = "handleReleases" HandleSnapshots = "handleSnapshots" MaxUniqueSnapshots = "maxUniqueSnapshots" SuppressPomConsistencyChecks = "suppressPomConsistencyChecks" BlackedOut = "blackedOut" PropertySets = "propertySets" DownloadRedirect = "downloadRedirect" BlockPushingSchema1 = "blockPushingSchema1" // Mutual local and virtual repository configuration JSON keys DebianTrivialLayout = "debianTrivialLayout" // Mutual remote and virtual repository configuration JSON keys ExternalDependenciesEnabled = "externalDependenciesEnabled" ExternalDependenciesPatterns = "externalDependenciesPatterns" // Unique local repository configuration JSON keys ChecksumPolicyType = "checksumPolicyType" MaxUniqueTags = "maxUniqueTags" SnapshotVersionBehavior = "snapshotVersionBehavior" XrayIndex = "xrayIndex" ArchiveBrowsingEnabled = "archiveBrowsingEnabled" CalculateYumMetadata = "calculateYumMetadata" YumRootDepth = "yumRootDepth" DockerApiVersion = "dockerApiVersion" EnableFileListsIndexing = "enableFileListsIndexing" OptionalIndexCompressionFormats = "optionalIndexCompressionFormats" 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" 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" // 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" Conda = "conda" P2 = "p2" // 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 = utils.QuestionInfo{ Options: utils.GetBoolSuggests(), AllowVars: true, Writer: utils.WriteStringAnswer, }
Specific writers for repo templates, since all the values in the templates should be written as string
View Source
var IntToStringQuestionInfo = utils.QuestionInfo{ Options: nil, AllowVars: true, Writer: utils.WriteStringAnswer, }
View Source
var StringListToStringQuestionInfo = utils.QuestionInfo{ Msg: utils.CommaSeparatedListMsg, Options: nil, AllowVars: true, Writer: utils.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 ¶ added in v1.39.0
func (rc *RepoCommand) TemplatePath() string
func (*RepoCommand) Vars ¶ added in v1.39.0
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) RtDetails ¶
func (rcc *RepoCreateCommand) RtDetails() (*config.ArtifactoryDetails, error)
func (*RepoCreateCommand) Run ¶
func (rcc *RepoCreateCommand) Run() (err error)
func (*RepoCreateCommand) SetRtDetails ¶
func (rcc *RepoCreateCommand) SetRtDetails(rtDetails *config.ArtifactoryDetails) *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) RtDetails ¶
func (rdc *RepoDeleteCommand) RtDetails() (*config.ArtifactoryDetails, error)
func (*RepoDeleteCommand) Run ¶
func (rdc *RepoDeleteCommand) Run() (err error)
func (*RepoDeleteCommand) SetQuiet ¶
func (rdc *RepoDeleteCommand) SetQuiet(quiet bool) *RepoDeleteCommand
func (*RepoDeleteCommand) SetRepoKey ¶
func (rdc *RepoDeleteCommand) SetRepoKey(repoKey string) *RepoDeleteCommand
func (*RepoDeleteCommand) SetRtDetails ¶
func (rdc *RepoDeleteCommand) SetRtDetails(rtDetails *config.ArtifactoryDetails) *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) RtDetails ¶
func (rtc *RepoTemplateCommand) RtDetails() (*config.ArtifactoryDetails, error)
func (*RepoTemplateCommand) Run ¶
func (rtc *RepoTemplateCommand) Run() (err 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) RtDetails ¶
func (ruc *RepoUpdateCommand) RtDetails() (*config.ArtifactoryDetails, error)
func (*RepoUpdateCommand) Run ¶
func (ruc *RepoUpdateCommand) Run() (err error)
func (*RepoUpdateCommand) SetRtDetails ¶
func (ruc *RepoUpdateCommand) SetRtDetails(rtDetails *config.ArtifactoryDetails) *RepoUpdateCommand
func (*RepoUpdateCommand) SetTemplatePath ¶
func (ruc *RepoUpdateCommand) SetTemplatePath(path string) *RepoUpdateCommand
func (*RepoUpdateCommand) SetVars ¶
func (ruc *RepoUpdateCommand) SetVars(vars string) *RepoUpdateCommand
Click to show internal directories.
Click to hide internal directories.