Documentation ¶
Index ¶
- Variables
- func ResourceArtifactoryVirtualAlpineRepository() *schema.Resource
- func ResourceArtifactoryVirtualBowerRepository() *schema.Resource
- func ResourceArtifactoryVirtualDebianRepository() *schema.Resource
- func ResourceArtifactoryVirtualDockerRepository() *schema.Resource
- func ResourceArtifactoryVirtualGenericRepository(pkt string) *schema.Resource
- func ResourceArtifactoryVirtualGoRepository() *schema.Resource
- func ResourceArtifactoryVirtualHelmRepository() *schema.Resource
- func ResourceArtifactoryVirtualJavaRepository(repoType string) *schema.Resource
- func ResourceArtifactoryVirtualNpmRepository() *schema.Resource
- func ResourceArtifactoryVirtualNugetRepository() *schema.Resource
- func ResourceArtifactoryVirtualRepositoryWithRetrievalCachePeriodSecs(pkt string) *schema.Resource
- func ResourceArtifactoryVirtualRpmRepository() *schema.Resource
- type CommonJavaVirtualRepositoryParams
- type ExternalDependenciesVirtualRepositoryParams
- type JavaVirtualRepositoryParams
- type RepositoryBaseParams
- type RepositoryBaseParamsWithRetrievalCachePeriodSecs
Constants ¶
This section is empty.
Variables ¶
View Source
var BaseVirtualRepoSchema = map[string]*schema.Schema{ "key": { Type: schema.TypeString, Required: true, ForceNew: true, Description: "The Repository Key. A mandatory identifier for the repository and must be unique. It cannot begin with a number or contain spaces or special characters. For local repositories, we recommend using a '-local' suffix (e.g. 'libs-release-local').", }, "project_key": { Type: schema.TypeString, Optional: true, ValidateDiagFunc: validator.ProjectKey, Description: "Project key for assigning this repository to. Must be 2 - 20 lowercase alphanumeric and hyphen characters. When assigning repository to a project, repository key must be prefixed with project key, separated by a dash.", }, "project_environments": { Type: schema.TypeSet, Elem: &schema.Schema{Type: schema.TypeString}, MaxItems: 2, Set: schema.HashString, Optional: true, Computed: true, Description: "Project environment for assigning this repository to. Allow values: \"DEV\" or \"PROD\". " + "The attribute should only be used if the repository is already assigned to the existing project. If not, " + "the attribute will be ignored by Artifactory, but will remain in the Terraform state, which will create " + "state drift during the update.", }, "package_type": { Type: schema.TypeString, Required: false, Computed: true, ForceNew: true, Description: "The Package Type. This must be specified when the repository is created, and once set, cannot be changed.", }, "description": { Type: schema.TypeString, Optional: true, Description: "A free text field that describes the content and purpose of the repository. " + "If you choose to insert a link into this field, clicking the link will prompt the user to confirm that " + "they might be redirected to a new domain.", }, "notes": { Type: schema.TypeString, Optional: true, Description: "A free text field to add additional notes about the repository. These are only visible to the administrator.", }, "includes_pattern": { Type: schema.TypeString, Optional: true, Default: "**/*", Description: "List of comma-separated artifact patterns to include when evaluating artifact requests in the form of x/y/**/z/*. " + "When used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (**/*).", }, "excludes_pattern": { Type: schema.TypeString, Optional: true, Description: "List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**/z/*." + "By default no artifacts are excluded.", }, "repo_layout_ref": { Type: schema.TypeString, Optional: true, ValidateDiagFunc: repository.ValidateRepoLayoutRefSchemaOverride, Description: "Sets the layout that the repository should use for storing and identifying modules. A recommended layout that corresponds to the package type defined is suggested, and index packages uploaded and calculate metadata accordingly.", }, "repositories": { Type: schema.TypeList, Elem: &schema.Schema{Type: schema.TypeString}, Optional: true, Description: "The effective list of actual repositories included in this virtual repository.", }, "artifactory_requests_can_retrieve_remote_artifacts": { Type: schema.TypeBool, Optional: true, Default: false, Description: "Whether the virtual repository should search through remote repositories when trying to resolve an artifact requested by another Artifactory instance.", }, "default_deployment_repo": { Type: schema.TypeString, Optional: true, Description: "Default repository to deploy artifacts.", }, }
View Source
var RepoTypesLikeGeneric = []string{
"gems",
"generic",
"gitlfs",
"composer",
"p2",
"pub",
"puppet",
"pypi",
"swift",
"terraform",
}
View Source
var RepoTypesLikeGenericWithRetrievalCachePeriodSecs = []string{
"chef",
"conan",
"conda",
"cran",
}
Functions ¶
func ResourceArtifactoryVirtualDockerRepository ¶ added in v6.19.0
func ResourceArtifactoryVirtualNpmRepository ¶ added in v6.9.1
Types ¶
type CommonJavaVirtualRepositoryParams ¶
type CommonJavaVirtualRepositoryParams struct { ForceMavenAuthentication bool `json:"forceMavenAuthentication,omitempty"` PomRepositoryReferencesCleanupPolicy string `hcl:"pom_repository_references_cleanup_policy" json:"pomRepositoryReferencesCleanupPolicy,omitempty"` KeyPair string `hcl:"key_pair" json:"keyPair,omitempty"` }
type ExternalDependenciesVirtualRepositoryParams ¶ added in v6.9.1
type ExternalDependenciesVirtualRepositoryParams struct { RepositoryBaseParams ExternalDependenciesEnabled bool `json:"externalDependenciesEnabled"` ExternalDependenciesRemoteRepo string `json:"externalDependenciesRemoteRepo"` ExternalDependenciesPatterns []string `json:"externalDependenciesPatterns"` }
type JavaVirtualRepositoryParams ¶
type JavaVirtualRepositoryParams struct { RepositoryBaseParams CommonJavaVirtualRepositoryParams }
type RepositoryBaseParams ¶ added in v6.10.0
type RepositoryBaseParams struct { Key string `hcl:"key" json:"key,omitempty"` ProjectKey string `json:"projectKey"` ProjectEnvironments []string `json:"environments"` Rclass string `json:"rclass"` PackageType string `hcl:"package_type" json:"packageType,omitempty"` Description string `json:"description"` Notes string `json:"notes"` IncludesPattern string `json:"includesPattern"` ExcludesPattern string `json:"excludesPattern"` RepoLayoutRef string `hcl:"repo_layout_ref" json:"repoLayoutRef,omitempty"` Repositories []string `hcl:"repositories" json:"repositories,omitempty"` ArtifactoryRequestsCanRetrieveRemoteArtifacts bool `hcl:"artifactory_requests_can_retrieve_remote_artifacts" json:"artifactoryRequestsCanRetrieveRemoteArtifacts"` DefaultDeploymentRepo string `hcl:"default_deployment_repo" json:"defaultDeploymentRepo,omitempty"` }
func UnpackBaseVirtRepo ¶
func UnpackBaseVirtRepo(s *schema.ResourceData, packageType string) RepositoryBaseParams
func (RepositoryBaseParams) Id ¶ added in v6.10.0
func (bp RepositoryBaseParams) Id() string
type RepositoryBaseParamsWithRetrievalCachePeriodSecs ¶ added in v6.10.0
type RepositoryBaseParamsWithRetrievalCachePeriodSecs struct { RepositoryBaseParams VirtualRetrievalCachePeriodSecs int `hcl:"retrieval_cache_period_seconds" json:"virtualRetrievalCachePeriodSecs,omitempty"` }
func UnpackBaseVirtRepoWithRetrievalCachePeriodSecs ¶
func UnpackBaseVirtRepoWithRetrievalCachePeriodSecs(s *schema.ResourceData, packageType string) RepositoryBaseParamsWithRetrievalCachePeriodSecs
Source Files ¶
- resource_artifactory_virtual_alpine_repository.go
- resource_artifactory_virtual_bower_repository.go
- resource_artifactory_virtual_debian_repository.go
- resource_artifactory_virtual_docker_repository.go
- resource_artifactory_virtual_generic_repository.go
- resource_artifactory_virtual_go_repository.go
- resource_artifactory_virtual_helm_repository.go
- resource_artifactory_virtual_java_repository.go
- resource_artifactory_virtual_npm_repository.go
- resource_artifactory_virtual_nuget_repository.go
- resource_artifactory_virtual_rpm_repository.go
- virtual.go
Click to show internal directories.
Click to hide internal directories.