virtual

package
v12.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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 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

func ResourceArtifactoryVirtualAlpineRepository

func ResourceArtifactoryVirtualAlpineRepository() *schema.Resource

func ResourceArtifactoryVirtualBowerRepository

func ResourceArtifactoryVirtualBowerRepository() *schema.Resource

func ResourceArtifactoryVirtualConanRepository

func ResourceArtifactoryVirtualConanRepository() *schema.Resource

func ResourceArtifactoryVirtualDebianRepository

func ResourceArtifactoryVirtualDebianRepository() *schema.Resource

func ResourceArtifactoryVirtualDockerRepository

func ResourceArtifactoryVirtualDockerRepository() *schema.Resource

func ResourceArtifactoryVirtualGenericRepository

func ResourceArtifactoryVirtualGenericRepository(packageType string) *schema.Resource

func ResourceArtifactoryVirtualGoRepository

func ResourceArtifactoryVirtualGoRepository() *schema.Resource

func ResourceArtifactoryVirtualHelmOciRepository

func ResourceArtifactoryVirtualHelmOciRepository() *schema.Resource

func ResourceArtifactoryVirtualHelmRepository

func ResourceArtifactoryVirtualHelmRepository() *schema.Resource

func ResourceArtifactoryVirtualJavaRepository

func ResourceArtifactoryVirtualJavaRepository(packageType string) *schema.Resource

func ResourceArtifactoryVirtualNpmRepository

func ResourceArtifactoryVirtualNpmRepository() *schema.Resource

func ResourceArtifactoryVirtualNugetRepository

func ResourceArtifactoryVirtualNugetRepository() *schema.Resource

func ResourceArtifactoryVirtualOciRepository

func ResourceArtifactoryVirtualOciRepository() *schema.Resource

func ResourceArtifactoryVirtualRepositoryWithRetrievalCachePeriodSecs

func ResourceArtifactoryVirtualRepositoryWithRetrievalCachePeriodSecs(packageType string) *schema.Resource

func ResourceArtifactoryVirtualRpmRepository

func ResourceArtifactoryVirtualRpmRepository() *schema.Resource

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

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 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

Jump to

Keyboard shortcuts

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