local

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: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Rclass               = "local"
	CurrentSchemaVersion = 1
)

Variables

View Source
var AlpineLocalSchemas = GetSchemas(alpineSchema)
View Source
var AnsibleSchemas = GetSchemas(ansibleSchema)
View Source
var BaseSchemaV1 = lo.Assign(
	repository.BaseSchemaV1,
	baseSchema,
)
View Source
var CargoSchemas = GetSchemas(cargoSchema)
View Source
var ConanSchemas = GetSchemas(conanSchema)
View Source
var DebianSchemas = GetSchemas(debianSchema)
View Source
var DockerV1Schemas = GetSchemas(dockerV1Schema)
View Source
var DockerV2Schemas = GetSchemas(dockerV2Schema)
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 HelmOCISchemas = GetSchemas(helmOCISchema)
View Source
var NugetSchemas = GetSchemas(nugetSchema)
View Source
var OCILocalSchemas = GetSchemas(ociSchema)
View Source
var RPMSchemas = GetSchemas(rpmSchema)
View Source
var UnpackLocalJavaRepository = func(data *schema.ResourceData, Rclass string, packageType string) JavaLocalRepositoryParams {
	d := &utilsdk.ResourceData{ResourceData: data}
	return JavaLocalRepositoryParams{
		RepositoryBaseParams:         UnpackBaseRepo(Rclass, data, packageType),
		ChecksumPolicyType:           d.GetString("checksum_policy_type", false),
		SnapshotVersionBehavior:      d.GetString("snapshot_version_behavior", false),
		MaxUniqueSnapshots:           d.GetInt("max_unique_snapshots", false),
		HandleReleases:               d.GetBool("handle_releases", false),
		HandleSnapshots:              d.GetBool("handle_snapshots", false),
		SuppressPomConsistencyChecks: d.GetBool("suppress_pom_consistency_checks", false),
	}
}

Functions

func GetGenericSchemas added in v12.1.0

func GetGenericSchemas(packageType string) map[int16]map[string]*schema.Schema

func GetJavaSchemas added in v12.1.0

func GetJavaSchemas(packageType string, suppressPom bool) map[int16]map[string]*schema.Schema

func GetPackageType

func GetPackageType(packageType string) string

GetPackageType `packageType` in the API call payload for Terraform repositories must be "terraform", but we use `terraform_module` and `terraform_provider` as a package types in the Provider. GetPackageType function corrects this discrepancy.

func GetTerraformSchemas added in v12.1.0

func GetTerraformSchemas(registryType string) map[int16]map[string]*schema.Schema

func ResourceArtifactoryLocalAlpineRepository

func ResourceArtifactoryLocalAlpineRepository() *schema.Resource

func ResourceArtifactoryLocalAnsibleRepository

func ResourceArtifactoryLocalAnsibleRepository() *schema.Resource

func ResourceArtifactoryLocalCargoRepository

func ResourceArtifactoryLocalCargoRepository() *schema.Resource

func ResourceArtifactoryLocalConanRepository

func ResourceArtifactoryLocalConanRepository() *schema.Resource

func ResourceArtifactoryLocalDebianRepository

func ResourceArtifactoryLocalDebianRepository() *schema.Resource

func ResourceArtifactoryLocalDockerV1Repository

func ResourceArtifactoryLocalDockerV1Repository() *schema.Resource

func ResourceArtifactoryLocalDockerV2Repository

func ResourceArtifactoryLocalDockerV2Repository() *schema.Resource

func ResourceArtifactoryLocalGenericRepository

func ResourceArtifactoryLocalGenericRepository(packageType string) *schema.Resource

func ResourceArtifactoryLocalHelmOciRepository

func ResourceArtifactoryLocalHelmOciRepository() *schema.Resource

func ResourceArtifactoryLocalJavaRepository

func ResourceArtifactoryLocalJavaRepository(packageType string, suppressPom bool) *schema.Resource

func ResourceArtifactoryLocalNugetRepository

func ResourceArtifactoryLocalNugetRepository() *schema.Resource

func ResourceArtifactoryLocalOciRepository

func ResourceArtifactoryLocalOciRepository() *schema.Resource

func ResourceArtifactoryLocalRpmRepository

func ResourceArtifactoryLocalRpmRepository() *schema.Resource

func ResourceArtifactoryLocalTerraformRepository

func ResourceArtifactoryLocalTerraformRepository(registryType string) *schema.Resource

func UnpackConnanRepository

func UnpackConnanRepository(data *schema.ResourceData) (interface{}, string, error)

Types

type AlpineLocalRepoParams

type AlpineLocalRepoParams struct {
	RepositoryBaseParams
	repository.PrimaryKeyPairRefParam
}

func UnpackLocalAlpineRepository

func UnpackLocalAlpineRepository(data *schema.ResourceData, Rclass string) AlpineLocalRepoParams

type AnsibleLocalRepoParams

type AnsibleLocalRepoParams struct {
	RepositoryBaseParams
	repository.PrimaryKeyPairRefParam
}

func UnpackLocalAnsibleRepository

func UnpackLocalAnsibleRepository(data *schema.ResourceData, Rclass string) AnsibleLocalRepoParams

type CargoLocalRepoParams

type CargoLocalRepoParams struct {
	RepositoryBaseParams
	AnonymousAccess   bool `json:"cargoAnonymousAccess"`
	EnableSparseIndex bool `json:"cargoInternalIndex"`
}

func UnpackLocalCargoRepository

func UnpackLocalCargoRepository(data *schema.ResourceData, Rclass string) CargoLocalRepoParams

type ConanRepoParams

type ConanRepoParams struct {
	RepositoryBaseParams
	repository.ConanBaseParams
}

type DebianLocalRepositoryParams

type DebianLocalRepositoryParams struct {
	RepositoryBaseParams
	repository.PrimaryKeyPairRefParam
	repository.SecondaryKeyPairRefParam
	TrivialLayout           bool     `hcl:"trivial_layout" json:"debianTrivialLayout"`
	IndexCompressionFormats []string `hcl:"index_compression_formats" json:"optionalIndexCompressionFormats,omitempty"`
}

func UnpackLocalDebianRepository

func UnpackLocalDebianRepository(data *schema.ResourceData, Rclass string) DebianLocalRepositoryParams

type DockerLocalRepositoryParams

type DockerLocalRepositoryParams struct {
	RepositoryBaseParams
	MaxUniqueTags       int    `hcl:"max_unique_tags" json:"maxUniqueTags"`
	DockerApiVersion    string `hcl:"api_version" json:"dockerApiVersion"`
	TagRetention        int    `hcl:"tag_retention" json:"dockerTagRetention"`
	BlockPushingSchema1 bool   `hcl:"block_pushing_schema1" json:"blockPushingSchema1"`
}

func UnpackLocalDockerV1Repository

func UnpackLocalDockerV1Repository(data *schema.ResourceData, Rclass string) DockerLocalRepositoryParams

func UnpackLocalDockerV2Repository

func UnpackLocalDockerV2Repository(data *schema.ResourceData, Rclass string) DockerLocalRepositoryParams

type HelmOciLocalRepositoryParams

type HelmOciLocalRepositoryParams struct {
	RepositoryBaseParams
	MaxUniqueTags int `json:"maxUniqueTags"`
	TagRetention  int `json:"dockerTagRetention"`
}

func UnpackLocalHelmOciRepository

func UnpackLocalHelmOciRepository(data *schema.ResourceData, Rclass string) HelmOciLocalRepositoryParams

type JavaLocalRepositoryParams

type JavaLocalRepositoryParams struct {
	RepositoryBaseParams
	ChecksumPolicyType           string `hcl:"checksum_policy_type" json:"checksumPolicyType"`
	SnapshotVersionBehavior      string `hcl:"snapshot_version_behavior" json:"snapshotVersionBehavior"`
	MaxUniqueSnapshots           int    `hcl:"max_unique_snapshots" json:"maxUniqueSnapshots"`
	HandleReleases               bool   `hcl:"handle_releases" json:"handleReleases"`
	HandleSnapshots              bool   `hcl:"handle_snapshots" json:"handleSnapshots"`
	SuppressPomConsistencyChecks bool   `hcl:"suppress_pom_consistency_checks" json:"suppressPomConsistencyChecks"`
}

type NugetLocalRepositoryParams

type NugetLocalRepositoryParams struct {
	RepositoryBaseParams
	MaxUniqueSnapshots       int  `hcl:"max_unique_snapshots" json:"maxUniqueSnapshots"`
	ForceNugetAuthentication bool `hcl:"force_nuget_authentication" json:"forceNugetAuthentication"`
}

func UnpackLocalNugetRepository

func UnpackLocalNugetRepository(data *schema.ResourceData, Rclass string) NugetLocalRepositoryParams

type OciLocalRepositoryParams

type OciLocalRepositoryParams struct {
	RepositoryBaseParams
	MaxUniqueTags    int    `json:"maxUniqueTags"`
	DockerApiVersion string `json:"dockerApiVersion"`
	TagRetention     int    `json:"dockerTagRetention"`
}

func UnpackLocalOciRepository

func UnpackLocalOciRepository(data *schema.ResourceData, Rclass string) OciLocalRepositoryParams

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   `hcl:"includes_pattern" json:"includesPattern,omitempty"`
	ExcludesPattern        string   `hcl:"excludes_pattern" json:"excludesPattern,omitempty"`
	RepoLayoutRef          string   `hcl:"repo_layout_ref" json:"repoLayoutRef,omitempty"`
	BlackedOut             *bool    `hcl:"blacked_out" json:"blackedOut,omitempty"`
	XrayIndex              bool     `json:"xrayIndex"`
	PropertySets           []string `hcl:"property_sets" json:"propertySets,omitempty"`
	ArchiveBrowsingEnabled *bool    `hcl:"archive_browsing_enabled" json:"archiveBrowsingEnabled,omitempty"`
	DownloadRedirect       *bool    `hcl:"download_direct" json:"downloadRedirect,omitempty"`
	CdnRedirect            *bool    `json:"cdnRedirect"`
	PriorityResolution     bool     `hcl:"priority_resolution" json:"priorityResolution"`
	TerraformType          string   `json:"terraformType"`
}

func UnpackBaseRepo

func UnpackBaseRepo(rclassType string, s *schema.ResourceData, packageType string) RepositoryBaseParams

func UnpackLocalTerraformRepository

func UnpackLocalTerraformRepository(data *schema.ResourceData, Rclass string, registryType string) RepositoryBaseParams

func (RepositoryBaseParams) Id

func (bp RepositoryBaseParams) Id() string

type RpmLocalRepositoryParams

type RpmLocalRepositoryParams struct {
	RepositoryBaseParams
	repository.PrimaryKeyPairRefParam
	repository.SecondaryKeyPairRefParam
	RootDepth               int    `hcl:"yum_root_depth" json:"yumRootDepth"`
	CalculateYumMetadata    bool   `hcl:"calculate_yum_metadata" json:"calculateYumMetadata"`
	EnableFileListsIndexing bool   `hcl:"enable_file_lists_indexing" json:"enableFileListsIndexing"`
	GroupFileNames          string `hcl:"yum_group_file_names" json:"yumGroupFileNames"`
}

func UnpackLocalRpmRepository

func UnpackLocalRpmRepository(data *schema.ResourceData, Rclass string) RpmLocalRepositoryParams

Jump to

Keyboard shortcuts

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