Documentation ¶
Index ¶
- Variables
- func ResourceArtifactoryRemoteBasicRepository(pkt string) *schema.Resource
- func ResourceArtifactoryRemoteBowerRepository() *schema.Resource
- func ResourceArtifactoryRemoteCargoRepository() *schema.Resource
- func ResourceArtifactoryRemoteCocoapodsRepository() *schema.Resource
- func ResourceArtifactoryRemoteComposerRepository() *schema.Resource
- func ResourceArtifactoryRemoteConanRepository() *schema.Resource
- func ResourceArtifactoryRemoteDockerRepository() *schema.Resource
- func ResourceArtifactoryRemoteGenericRepository() *schema.Resource
- func ResourceArtifactoryRemoteGoRepository() *schema.Resource
- func ResourceArtifactoryRemoteHelmRepository() *schema.Resource
- func ResourceArtifactoryRemoteJavaRepository(repoType string, suppressPom bool) *schema.Resource
- func ResourceArtifactoryRemoteMavenRepository() *schema.Resource
- func ResourceArtifactoryRemoteNugetRepository() *schema.Resource
- func ResourceArtifactoryRemotePypiRepository() *schema.Resource
- func ResourceArtifactoryRemoteTerraformRepository() *schema.Resource
- func ResourceArtifactoryRemoteVcsRepository() *schema.Resource
- func ResourceMavenStateUpgradeV1(_ context.Context, rawState map[string]interface{}, _ interface{}) (map[string]interface{}, error)
- func ResourceStateUpgradeV1(_ context.Context, rawState map[string]interface{}, _ interface{}) (map[string]interface{}, error)
- type BowerRemoteRepo
- type CargoRemoteRepo
- type CocoapodsRemoteRepo
- type ComposerRemoteRepo
- type ConanRemoteRepo
- type GenericRemoteRepo
- type GoRemoteRepo
- type JavaRemoteRepo
- type NugetRemoteRepo
- type RepositoryRemoteBaseParams
- type RepositoryVcsParams
- type TerraformRemoteRepo
- type VcsRemoteRepo
Constants ¶
This section is empty.
Variables ¶
View Source
var RepoTypesLikeBasic = []string{
"alpine",
"chef",
"conda",
"cran",
"debian",
"gems",
"gitlfs",
"npm",
"opkg",
"p2",
"pub",
"puppet",
"rpm",
"swift",
}
View Source
var VcsRemoteRepoSchema = map[string]*schema.Schema{ "vcs_git_provider": { Type: schema.TypeString, Optional: true, Default: "GITHUB", ValidateDiagFunc: validation.ToDiagFunc(validation.StringInSlice([]string{"GITHUB", "BITBUCKET", "OLDSTASH", "STASH", "ARTIFACTORY", "CUSTOM"}, false)), Description: `Artifactory supports proxying the following Git providers out-of-the-box: GitHub or a remote Artifactory instance. Default value is "GITHUB".`, }, "vcs_git_download_url": { Type: schema.TypeString, Optional: true, ValidateDiagFunc: validation.ToDiagFunc(validation.All(validation.StringIsNotEmpty, validation.IsURLWithHTTPorHTTPS)), Description: `This attribute is used when vcs_git_provider is set to 'CUSTOM'. Provided URL will be used as proxy.`, }, }
Functions ¶
Types ¶
type BowerRemoteRepo ¶
type BowerRemoteRepo struct { RepositoryRemoteBaseParams RepositoryVcsParams BowerRegistryUrl string `json:"bowerRegistryUrl"` }
type CargoRemoteRepo ¶
type CargoRemoteRepo struct { RepositoryRemoteBaseParams RegistryUrl string `hcl:"git_registry_url" json:"gitRegistryUrl"` AnonymousAccess bool `json:"cargoAnonymousAccess"` EnableSparseIndex bool `json:"cargoInternalIndex"` }
type CocoapodsRemoteRepo ¶
type CocoapodsRemoteRepo struct { RepositoryRemoteBaseParams RepositoryVcsParams PodsSpecsRepoUrl string `json:"podsSpecsRepoUrl"` }
type ComposerRemoteRepo ¶
type ComposerRemoteRepo struct { RepositoryRemoteBaseParams RepositoryVcsParams ComposerRegistryUrl string `json:"composerRegistryUrl"` }
type ConanRemoteRepo ¶
type ConanRemoteRepo struct { RepositoryRemoteBaseParams ForceConanAuthentication bool `json:"forceConanAuthentication"` }
type GenericRemoteRepo ¶
type GenericRemoteRepo struct { RepositoryRemoteBaseParams PropagateQueryParams bool `json:"propagateQueryParams"` }
type GoRemoteRepo ¶
type GoRemoteRepo struct { RepositoryRemoteBaseParams VcsGitProvider string `json:"vcsGitProvider"` }
type JavaRemoteRepo ¶
type JavaRemoteRepo struct { RepositoryRemoteBaseParams FetchJarsEagerly bool `json:"fetchJarsEagerly"` FetchSourcesEagerly bool `json:"fetchSourcesEagerly"` RemoteRepoChecksumPolicyType string `json:"remoteRepoChecksumPolicyType"` HandleReleases bool `json:"handleReleases"` HandleSnapshots bool `json:"handleSnapshots"` SuppressPomConsistencyChecks bool `json:"suppressPomConsistencyChecks"` RejectInvalidJars bool `json:"rejectInvalidJars"` }
func UnpackJavaRemoteRepo ¶
func UnpackJavaRemoteRepo(s *schema.ResourceData, repoType string) JavaRemoteRepo
type NugetRemoteRepo ¶
type NugetRemoteRepo struct { RepositoryRemoteBaseParams FeedContextPath string `json:"feedContextPath"` DownloadContextPath string `json:"downloadContextPath"` V3FeedUrl string `hcl:"v3_feed_url" json:"v3FeedUrl"` // Forced to specify hcl tag because predicate is not parsed by packer.Universal function. ForceNugetAuthentication bool `json:"forceNugetAuthentication"` SymbolServerUrl string `json:"symbolServerUrl"` }
type RepositoryRemoteBaseParams ¶
type RepositoryRemoteBaseParams struct { Key string `json:"key,omitempty"` ProjectKey string `json:"projectKey"` ProjectEnvironments []string `json:"environments"` Rclass string `json:"rclass"` PackageType string `json:"packageType,omitempty"` Url string `json:"url"` Username string `json:"username"` Password string `json:"password,omitempty"` // must have 'omitempty' to avoid sending an empty string on update, if attribute is ignored by the provider. Proxy string `json:"proxy"` Description string `json:"description"` Notes string `json:"notes"` IncludesPattern string `json:"includesPattern"` ExcludesPattern string `json:"excludesPattern"` RepoLayoutRef string `json:"repoLayoutRef"` RemoteRepoLayoutRef string `json:"remoteRepoLayoutRef"` HardFail *bool `json:"hardFail,omitempty"` Offline *bool `json:"offline,omitempty"` BlackedOut *bool `json:"blackedOut,omitempty"` XrayIndex bool `json:"xrayIndex"` QueryParams string `json:"queryParams,omitempty"` PriorityResolution bool `json:"priorityResolution"` StoreArtifactsLocally *bool `json:"storeArtifactsLocally,omitempty"` SocketTimeoutMillis int `json:"socketTimeoutMillis"` LocalAddress string `json:"localAddress"` RetrievalCachePeriodSecs int `hcl:"retrieval_cache_period_seconds" json:"retrievalCachePeriodSecs"` MissedRetrievalCachePeriodSecs int `hcl:"missed_cache_period_seconds" json:"missedRetrievalCachePeriodSecs"` MetadataRetrievalTimeoutSecs int `json:"metadataRetrievalTimeoutSecs"` UnusedArtifactsCleanupPeriodHours int `json:"unusedArtifactsCleanupPeriodHours"` AssumedOfflinePeriodSecs int `hcl:"assumed_offline_period_secs" json:"assumedOfflinePeriodSecs"` SynchronizeProperties *bool `hcl:"synchronize_properties" json:"synchronizeProperties"` BlockMismatchingMimeTypes *bool `hcl:"block_mismatching_mime_types" json:"blockMismatchingMimeTypes"` PropertySets []string `hcl:"property_sets" json:"propertySets,omitempty"` AllowAnyHostAuth *bool `hcl:"allow_any_host_auth" json:"allowAnyHostAuth,omitempty"` EnableCookieManagement *bool `hcl:"enable_cookie_management" json:"enableCookieManagement,omitempty"` BypassHeadRequests *bool `hcl:"bypass_head_requests" json:"bypassHeadRequests,omitempty"` ClientTlsCertificate string `hcl:"client_tls_certificate" json:"clientTlsCertificate,omitempty"` ContentSynchronisation *repository.ContentSynchronisation `hcl:"content_synchronisation" json:"contentSynchronisation,omitempty"` MismatchingMimeTypeOverrideList string `hcl:"mismatching_mime_types_override_list" json:"mismatchingMimeTypesOverrideList"` ListRemoteFolderItems bool `json:"listRemoteFolderItems"` DownloadRedirect bool `hcl:"download_direct" json:"downloadRedirect,omitempty"` CdnRedirect bool `json:"cdnRedirect"` }
func UnpackBaseRemoteRepo ¶
func UnpackBaseRemoteRepo(s *schema.ResourceData, packageType string) RepositoryRemoteBaseParams
func (RepositoryRemoteBaseParams) Id ¶
func (bp RepositoryRemoteBaseParams) Id() string
type RepositoryVcsParams ¶
type RepositoryVcsParams struct { VcsGitProvider string `json:"vcsGitProvider"` VcsGitDownloadUrl string `json:"vcsGitDownloadUrl"` }
func UnpackVcsRemoteRepo ¶
func UnpackVcsRemoteRepo(s *schema.ResourceData) RepositoryVcsParams
type TerraformRemoteRepo ¶
type TerraformRemoteRepo struct { RepositoryRemoteBaseParams TerraformRegistryUrl string `hcl:"terraform_registry_url" json:"terraformRegistryUrl"` TerraformProvidersUrl string `hcl:"terraform_providers_url" json:"terraformProvidersUrl"` }
type VcsRemoteRepo ¶
type VcsRemoteRepo struct { RepositoryRemoteBaseParams RepositoryVcsParams MaxUniqueSnapshots int `json:"maxUniqueSnapshots"` }
Source Files ¶
- remote.go
- resource_artifactory_remote_bower_repository.go
- resource_artifactory_remote_cargo_repository.go
- resource_artifactory_remote_cocoapods_repository.go
- resource_artifactory_remote_composer_repository.go
- resource_artifactory_remote_conan_repository.go
- resource_artifactory_remote_docker_repository.go
- resource_artifactory_remote_generic_repository.go
- resource_artifactory_remote_go_repository.go
- resource_artifactory_remote_helm_repository.go
- resource_artifactory_remote_java_repository.go
- resource_artifactory_remote_maven_repository.go
- resource_artifactory_remote_nuget_repository.go
- resource_artifactory_remote_pypi_repository.go
- resource_artifactory_remote_terraform_repository.go
- resource_artifactory_remote_vcs_repository.go
Click to show internal directories.
Click to hide internal directories.