mirror of
https://tangled.org/evan.jarrett.net/at-container-registry
synced 2026-09-25 11:44:16 +00:00
Merge branch 'presigned-urls'
This commit is contained in:
@@ -5,6 +5,13 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
// AccessEntry represents access permissions for a resource
|
||||
type AccessEntry struct {
|
||||
Type string `json:"type"` // "repository"
|
||||
Name string `json:"name,omitempty"` // e.g., "alice/myapp"
|
||||
Actions []string `json:"actions,omitempty"` // e.g., ["pull", "push"]
|
||||
}
|
||||
|
||||
// ParseScope parses Docker registry scope strings into AccessEntry structures
|
||||
// Scope format: "repository:alice/myapp:pull,push"
|
||||
// Multiple scopes can be provided
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
package auth
|
||||
|
||||
// AccessEntry represents access permissions for a resource
|
||||
type AccessEntry struct {
|
||||
Type string `json:"type"` // "repository"
|
||||
Name string `json:"name,omitempty"` // e.g., "alice/myapp"
|
||||
Actions []string `json:"actions,omitempty"` // e.g., ["pull", "push"]
|
||||
}
|
||||
Reference in New Issue
Block a user