Skip to content

Commit

Permalink
Add managedXrayMeta permission
Browse files Browse the repository at this point in the history
  • Loading branch information
donovanmuller committed Nov 6, 2020
1 parent 6111b34 commit 7cb6523
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 8 additions & 6 deletions artifactory/v2/security.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,21 @@ import (
"context"
"encoding/json"
"fmt"
"github.com/atlassian/go-artifactory/v2/artifactory/client"
"net/http"

"github.com/atlassian/go-artifactory/v2/artifactory/client"
)

type SecurityService Service

// read, write, annotate, delete, manage
const (
PERM_READ = "read"
PERM_WRITE = "write"
PERM_ANNOTATE = "annotate"
PERM_DELETE = "delete"
PERM_MANAGE = "manage"
PERM_READ = "read"
PERM_WRITE = "write"
PERM_ANNOTATE = "annotate"
PERM_DELETE = "delete"
PERM_MANAGE = "manage"
PERM_MANAGE_XRAY_METADATA = "manage"

PERMISSION_SCHEMA = "application/vnd.org.jfrog.artifactory.security.PermissionTargetV2+json"
)
Expand Down
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module github.com/atlassian/go-artifactory/v2

go 1.14

require (
github.com/google/go-querystring v1.0.0
github.com/stretchr/testify v1.3.0
Expand Down

0 comments on commit 7cb6523

Please sign in to comment.