Documentation ¶
Index ¶
- Constants
- Variables
- func ResourceArtifactoryVirtualAlpineRepository() *schema.Resource
- func ResourceArtifactoryVirtualBowerRepository() *schema.Resource
- func ResourceArtifactoryVirtualConanRepository() *schema.Resource
- func ResourceArtifactoryVirtualDebianRepository() *schema.Resource
- func ResourceArtifactoryVirtualDockerRepository() *schema.Resource
- func ResourceArtifactoryVirtualGenericRepository(packageType string) *schema.Resource
- func ResourceArtifactoryVirtualGoRepository() *schema.Resource
- func ResourceArtifactoryVirtualHelmOciRepository() *schema.Resource
- func ResourceArtifactoryVirtualHelmRepository() *schema.Resource
- func ResourceArtifactoryVirtualJavaRepository(packageType string) *schema.Resource
- func ResourceArtifactoryVirtualNpmRepository() *schema.Resource
- func ResourceArtifactoryVirtualNugetRepository() *schema.Resource
- func ResourceArtifactoryVirtualOciRepository() *schema.Resource
- func ResourceArtifactoryVirtualRepositoryWithRetrievalCachePeriodSecs(packageType string) *schema.Resource
- func ResourceArtifactoryVirtualRpmRepository() *schema.Resource
- type CommonJavaVirtualRepositoryParams
- type ConanRepoParams
- type ExternalDependenciesVirtualRepositoryParams
- type HelmOciVirtualRepositoryParams
- type JavaVirtualRepositoryParams
- type NpmVirtualRepositoryParams
- type RepositoryBaseParams
- type RepositoryBaseParamsWithRetrievalCachePeriodSecs
Constants ¶
View Source
const ( Rclass = "virtual" CurrentSchemaVersion = 1 )
Variables ¶
View Source
var AlpineSchemas = GetSchemas(alpineSchema)
View Source
var BaseSchemaV1 = lo.Assign( repository.BaseSchemaV1, baseSchema, )
View Source
var BowerSchemas = GetSchemas(bowerSchema)
View Source
var ConanSchemas = GetSchemas(conanSchema)
View Source
var DebianSchemas = GetSchemas(debianSchema)
View Source
var DockerSchemas = GetSchemas(dockerSchema)
View Source
var GetSchemas = func(s map[string]*schema.Schema) map[int16]map[string]*schema.Schema { return map[int16]map[string]*schema.Schema{ 0: lo.Assign( BaseSchemaV1, s, ), 1: lo.Assign( BaseSchemaV1, s, ), } }
View Source
var GoSchemas = GetSchemas(goSchema)
View Source
var HelmOCISchemas = GetSchemas(helmOCISchema)
View Source
var HelmSchemas = GetSchemas(helmSchema)
View Source
var JavaSchema = map[string]*schema.Schema{ "force_maven_authentication": { Type: schema.TypeBool, Computed: true, Optional: true, Description: "User authentication is required when accessing the repository. An anonymous request will display an HTTP 401 error. This is also enforced when aggregated repositories support anonymous requests.", }, "pom_repository_references_cleanup_policy": { Type: schema.TypeString, Optional: true, Computed: true, ValidateFunc: validation.StringInSlice( []string{"discard_active_reference", "discard_any_reference", "nothing"}, false, ), Description: "(1: discard_active_reference) Discard Active References - Removes repository elements that are declared directly under project or under a profile in the same POM that is activeByDefault.\n" + "(2: discard_any_reference) Discard Any References - Removes all repository elements regardless of whether they are included in an active profile or not.\n" + "(3: nothing) Nothing - Does not remove any repository elements declared in the POM.", }, "key_pair": { Type: schema.TypeString, Optional: true, Description: "The keypair used to sign artifacts", }, }
View Source
var NPMSchemas = GetSchemas(npmSchema)
View Source
var NugetSchemas = GetSchemas(nugetSchema)
View Source
var OCISchemas = GetSchemas(ociSchema)
View Source
var PackageTypesLikeGeneric = []string{ repository.CocoapodsPackageType, repository.ComposerPackageType, repository.GemsPackageType, repository.GenericPackageType, repository.GitLFSPackageType, repository.P2PackageType, repository.PubPackageType, repository.PuppetPackageType, repository.PyPiPackageType, repository.SwiftPackageType, repository.TerraformPackageType, }
View Source
var PackageTypesLikeGenericWithRetrievalCachePeriodSecs = []string{ repository.AnsiblePackageType, repository.ChefPackageType, repository.CondaPackageType, repository.CranPackageType, }
View Source
var RPMSchemas = GetSchemas(rpmSchema)
View Source
var RepoWithRetrivalCachePeriodSecsVirtualSchemas = func(packageType string) map[int16]map[string]*schema.Schema { var repoWithRetrivalCachePeriodSecsVirtualSchema = lo.Assign( RetrievalCachePeriodSecondsSchema, repository.RepoLayoutRefSchema(Rclass, packageType), ) return GetSchemas(repoWithRetrivalCachePeriodSecsVirtualSchema) }
View Source
var RetrievalCachePeriodSecondsSchema = map[string]*schema.Schema{ "retrieval_cache_period_seconds": { Type: schema.TypeInt, Optional: true, Default: 7200, Description: "This value refers to the number of seconds to cache metadata files before checking for newer " + "versions on aggregated repositories. A value of 0 indicates no caching.", ValidateFunc: validation.IntAtLeast(0), }, }
Functions ¶
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 ConanRepoParams ¶
type ConanRepoParams struct { RepositoryBaseParamsWithRetrievalCachePeriodSecs repository.ConanBaseParams }
type ExternalDependenciesVirtualRepositoryParams ¶
type ExternalDependenciesVirtualRepositoryParams struct { RepositoryBaseParams ExternalDependenciesEnabled bool `json:"externalDependenciesEnabled"` ExternalDependenciesRemoteRepo string `json:"externalDependenciesRemoteRepo"` ExternalDependenciesPatterns []string `json:"externalDependenciesPatterns"` }
type HelmOciVirtualRepositoryParams ¶ added in v12.1.0
type HelmOciVirtualRepositoryParams struct { RepositoryBaseParams ResolveOCITagsByTimestamp bool `hcl:"resolve_oci_tags_by_timestamp" json:"resolveDockerTagsByTimestamp"` }
type JavaVirtualRepositoryParams ¶
type JavaVirtualRepositoryParams struct { RepositoryBaseParams CommonJavaVirtualRepositoryParams }
type NpmVirtualRepositoryParams ¶ added in v12.1.0
type NpmVirtualRepositoryParams struct { ExternalDependenciesVirtualRepositoryParams VirtualRetrievalCachePeriodSecs int `hcl:"retrieval_cache_period_seconds" json:"virtualRetrievalCachePeriodSecs"` }
type RepositoryBaseParams ¶
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 ¶
func (bp RepositoryBaseParams) Id() string
type RepositoryBaseParamsWithRetrievalCachePeriodSecs ¶
type RepositoryBaseParamsWithRetrievalCachePeriodSecs struct { RepositoryBaseParams VirtualRetrievalCachePeriodSecs int `hcl:"retrieval_cache_period_seconds" json:"virtualRetrievalCachePeriodSecs"` }
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_conan_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_helmoci_repository.go
- resource_artifactory_virtual_java_repository.go
- resource_artifactory_virtual_npm_repository.go
- resource_artifactory_virtual_nuget_repository.go
- resource_artifactory_virtual_oci_repository.go
- resource_artifactory_virtual_rpm_repository.go
- virtual.go
Click to show internal directories.
Click to hide internal directories.