Documentation ¶
Index ¶
- Constants
- Variables
- func PackMembers(members []Member, d *schema.ResourceData) error
- func ResourceArtifactoryFederatedAlpineRepository() *schema.Resource
- func ResourceArtifactoryFederatedCargoRepository() *schema.Resource
- func ResourceArtifactoryFederatedConanRepository() *schema.Resource
- func ResourceArtifactoryFederatedDebianRepository() *schema.Resource
- func ResourceArtifactoryFederatedDockerV1Repository() *schema.Resource
- func ResourceArtifactoryFederatedDockerV2Repository() *schema.Resource
- func ResourceArtifactoryFederatedGenericRepository(repoType string) *schema.Resource
- func ResourceArtifactoryFederatedJavaRepository(repoType string, suppressPom bool) *schema.Resource
- func ResourceArtifactoryFederatedNugetRepository() *schema.Resource
- func ResourceArtifactoryFederatedRpmRepository() *schema.Resource
- func ResourceArtifactoryFederatedTerraformRepository(registryType string) *schema.Resource
- type AlpineRepositoryParams
- type CargoFederatedRepositoryParams
- type ConanRepositoryParams
- type DebianFederatedRepositoryParams
- type DockerFederatedRepositoryParams
- type GenericRepositoryParams
- type JavaFederatedRepositoryParams
- type Member
- type NugetFederatedRepositoryParams
- type RepoParams
- type RpmFederatedRepositoryParams
- type TerraformFederatedRepositoryParams
Constants ¶
View Source
const RepositoriesEndpoint = "artifactory/api/repositories/{key}"
Variables ¶
View Source
var PackageTypesLikeGeneric = []string{
"bower",
"chef",
"cocoapods",
"composer",
"conda",
"cran",
"gems",
"generic",
"gitlfs",
"go",
"helm",
"npm",
"opkg",
"puppet",
"pypi",
"swift",
"vagrant",
}
View Source
var SchemaGenerator = func(isRequired bool) map[string]*schema.Schema { return utilsdk.MergeMaps( repository.ProxySchema, map[string]*schema.Schema{ "cleanup_on_delete": { Type: schema.TypeBool, Optional: true, Default: false, Description: "Delete all federated members on `terraform destroy` if set to `true`. Caution: it will delete all the repositories in the federation on other Artifactory instances.", }, "member": { Type: schema.TypeSet, Required: isRequired, Optional: !isRequired, Description: "The list of Federated members. If a Federated member receives a request that does not include the repository URL, it will " + "automatically be added with the combination of the configured base URL and `key` field value. " + "Note that each of the federated members will need to have a base URL set. Please follow the [instruction](https://www.jfrog.com/confluence/display/JFROG/Working+with+Federated+Repositories#WorkingwithFederatedRepositories-SettingUpaFederatedRepository)" + " to set up Federated repositories correctly.", Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "url": { Type: schema.TypeString, Required: true, Description: "Full URL to ending with the repositoryName", ValidateDiagFunc: validation.ToDiagFunc(validation.IsURLWithHTTPorHTTPS), }, "enabled": { Type: schema.TypeBool, Required: true, Description: "Represents the active state of the federated member. It is supported to " + "change the enabled status of my own member. The config will be updated on the other " + "federated members automatically.", }, }, }, }, }, ) }
Functions ¶
func PackMembers ¶
func PackMembers(members []Member, d *schema.ResourceData) error
Types ¶
type AlpineRepositoryParams ¶ added in v9.9.0
type AlpineRepositoryParams struct { local.AlpineLocalRepoParams Members []Member `hcl:"member" json:"members"` RepoParams }
type CargoFederatedRepositoryParams ¶
type CargoFederatedRepositoryParams struct { local.CargoLocalRepoParams Members []Member `hcl:"member" json:"members"` RepoParams }
type ConanRepositoryParams ¶
type ConanRepositoryParams struct { local.ConanRepoParams Members []Member `hcl:"member" json:"members"` RepoParams }
type DebianFederatedRepositoryParams ¶
type DebianFederatedRepositoryParams struct { local.DebianLocalRepositoryParams Members []Member `hcl:"member" json:"members"` RepoParams }
type DockerFederatedRepositoryParams ¶
type DockerFederatedRepositoryParams struct { local.DockerLocalRepositoryParams Members []Member `hcl:"member" json:"members"` RepoParams }
type GenericRepositoryParams ¶ added in v9.9.0
type GenericRepositoryParams struct { local.RepositoryBaseParams Members []Member `hcl:"member" json:"members"` RepoParams }
type JavaFederatedRepositoryParams ¶
type JavaFederatedRepositoryParams struct { local.JavaLocalRepositoryParams Members []Member `hcl:"member" json:"members"` RepoParams }
type NugetFederatedRepositoryParams ¶
type NugetFederatedRepositoryParams struct { local.NugetLocalRepositoryParams Members []Member `hcl:"member" json:"members"` RepoParams }
type RepoParams ¶ added in v9.9.0
type RpmFederatedRepositoryParams ¶
type RpmFederatedRepositoryParams struct { local.RpmLocalRepositoryParams Members []Member `hcl:"member" json:"members"` RepoParams }
type TerraformFederatedRepositoryParams ¶
type TerraformFederatedRepositoryParams struct { local.RepositoryBaseParams Members []Member `hcl:"member" json:"members"` RepoParams }
Source Files ¶
- federated.go
- resource_artifactory_federated_alpine_repository.go
- resource_artifactory_federated_cargo_repository.go
- resource_artifactory_federated_conan_repository.go
- resource_artifactory_federated_debian_repository.go
- resource_artifactory_federated_docker_repository.go
- resource_artifactory_federated_generic_repository.go
- resource_artifactory_federated_java_repository.go
- resource_artifactory_federated_nuget_repository.go
- resource_artifactory_federated_rpm_repository.go
- resource_artifactory_federated_terraform_repository.go
Click to show internal directories.
Click to hide internal directories.