Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into GH-1080-add-retriev…
Browse files Browse the repository at this point in the history
…e-sha256-attribute-to-remote-repos
  • Loading branch information
alexhung committed Sep 25, 2024
2 parents 10ee525 + 0bb9f74 commit 843d05c
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
38 changes: 38 additions & 0 deletions docs/resources/virtual_cocoapods_repository.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
subcategory: "Virtual Repositories"
---
# Artifactory Virtual Cocoapods Repository Resource

Creates a virtual Cocoapods repository. Official documentation can be found [here](https://jfrog.com/help/r/jfrog-artifactory-documentation/set-up-virtual-cocoapods-repositories).

## Example Usage

```hcl
resource "artifactory_virtual_cocoapods_repository" "foo-cocoapods" {
key = "foo-cocoapods"
repositories = []
description = "A test virtual repo"
notes = "Internal description"
includes_pattern = "com/jfrog/**,cloud/jfrog/**"
excludes_pattern = "com/google/**"
}
```

## Argument Reference

Arguments have a one to one mapping with the [JFrog API](https://www.jfrog.com/confluence/display/RTF/Repository+Configuration+JSON).
The following arguments are supported, along with the [common list of arguments for the virtual repositories](virtual.md):

* `key` - (Required) A mandatory identifier for the repository that must be unique. It cannot begin with a number or
contain spaces or special characters.
* `repositories` - (Optional) The effective list of actual repositories included in this virtual repository.
* `description` - (Optional)
* `notes` - (Optional)

## Import

Virtual repositories can be imported using their name, e.g.

```
$ terraform import artifactory_virtual_cocoapods_repository.foo-composer foo-cocoapods
```
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ var defaultRepoLayoutMap = map[string]SupportedRepoClasses{
SupportedRepoTypes: map[string]bool{
"local": true,
"remote": true,
"virtual": true,
"federated": true,
},
},
Expand Down
1 change: 1 addition & 0 deletions pkg/artifactory/resource/repository/virtual/virtual.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ func (bp RepositoryBaseParams) Id() string {
}

var PackageTypesLikeGeneric = []string{
repository.CocoapodsPackageType,
repository.ComposerPackageType,
repository.GemsPackageType,
repository.GenericPackageType,
Expand Down

0 comments on commit 843d05c

Please sign in to comment.