Documentation ¶
Index ¶
- Constants
- Variables
- func BranchArn(repoID, branchID string) string
- func GroupArn(groupID string) string
- func IsValidAction(name string) error
- func ObjectArn(repoID, key string) string
- func PolicyArn(policyID string) string
- func RepoArn(repoID string) string
- func TagArn(repoID, tagID string) string
- func UserArn(userID string) string
- type Permission
Constants ¶
View Source
const ( ReadRepositoryAction = "fs:ReadRepository" CreateRepositoryAction = "fs:CreateRepository" DeleteRepositoryAction = "fs:DeleteRepository" ListRepositoriesAction = "fs:ListRepositories" ReadObjectAction = "fs:ReadObject" WriteObjectAction = "fs:WriteObject" DeleteObjectAction = "fs:DeleteObject" ListObjectsAction = "fs:ListObjects" CreateCommitAction = "fs:CreateCommit" ReadCommitAction = "fs:ReadCommit" ListCommitsAction = "fs:ListCommits" CreateBranchAction = "fs:CreateBranch" DeleteBranchAction = "fs:DeleteBranch" ReadBranchAction = "fs:ReadBranch" RevertBranchAction = "fs:RevertBranch" ListBranchesAction = "fs:ListBranches" CreateTagAction = "fs:CreateTag" DeleteTagAction = "fs:DeleteTag" ReadTagAction = "fs:ReadTag" ListTagsAction = "fs:ListTags" ReadStorageConfiguration = "fs:ReadConfig" ReadUserAction = "auth:ReadUser" CreateUserAction = "auth:CreateUser" DeleteUserAction = "auth:DeleteUser" ListUsersAction = "auth:ListUsers" ReadGroupAction = "auth:ReadGroup" CreateGroupAction = "auth:CreateGroup" DeleteGroupAction = "auth:DeleteGroup" ListGroupsAction = "auth:ListGroups" AddGroupMemberAction = "auth:AddGroupMember" RemoveGroupMemberAction = "auth:RemoveGroupMember" ReadPolicyAction = "auth:ReadPolicy" CreatePolicyAction = "auth:CreatePolicy" UpdatePolicyAction = "auth:UpdatePolicy" DeletePolicyAction = "auth:DeletePolicy" ListPoliciesAction = "auth:ListPolicies" AttachPolicyAction = "auth:AttachPolicy" DetachPolicyAction = "auth:DetachPolicy" ReadCredentialsAction = "auth:ReadCredentials" CreateCredentialsAction = "auth:CreateCredentials" DeleteCredentialsAction = "auth:DeleteCredentials" ListCredentialsAction = "auth:ListCredentials" ReadActionsAction = "ci:ReadAction" PrepareGarbageCollectionCommitsAction = "retention:PrepareGarbageCollectionCommits" GetGarbageCollectionRulesAction = "retention:GetGarbageCollectionRules" SetGarbageCollectionRulesAction = "retention:SetGarbageCollectionRules" )
View Source
const (
All = "*"
)
Variables ¶
View Source
var ( ErrInvalidAction = errors.New("invalid action") ErrInvalidServiceName = errors.New("invalid service name") )
Functions ¶
func IsValidAction ¶
Types ¶
type Permission ¶
Click to show internal directories.
Click to hide internal directories.