{"modulePath":"github.com/MG-RAST/SHock","version":"v0.9.29","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package acl\n\n## Types\n\n```go\ntype Acl struct {\n\tOwner  string   `bson:\"owner\" json:\"owner\"`\n\tRead   []string `bson:\"read\" json:\"read\"`\n\tWrite  []string `bson:\"write\" json:\"write\"`\n\tDelete []string `bson:\"delete\" json:\"delete\"`\n}\n```\nNode.Acl struct\n\n```go\nfunc (a *Acl) Check(str string) (r Rights)\n```\n\n```go\nfunc (a *Acl) FormatDisplayAcl(verbosity string) (i interface{})\n```\n\n```go\nfunc (a *Acl) Set(str string, r Rights)\n```\n\n```go\nfunc (a *Acl) SetOwner(str string)\n```\n\n```go\nfunc (a *Acl) UnSet(str string, r Rights)\n```\n\n```go\ntype DisplayAcl struct {\n\tOwner  string    `bson:\"owner\" json:\"owner\"`\n\tRead   []string  `bson:\"read\" json:\"read\"`\n\tWrite  []string  `bson:\"write\" json:\"write\"`\n\tDelete []string  `bson:\"delete\" json:\"delete\"`\n\tPublic publicAcl `bson:\"public\" json:\"public\"`\n}\n```\nACL struct that is returned to user for verbosity = minimal (default)\n\n```go\ntype DisplayVerboseAcl struct {\n\tOwner  user.User   `bson:\"owner\" json:\"owner\"`\n\tRead   []user.User `bson:\"read\" json:\"read\"`\n\tWrite  []user.User `bson:\"write\" json:\"write\"`\n\tDelete []user.User `bson:\"delete\" json:\"delete\"`\n\tPublic publicAcl   `bson:\"public\" json:\"public\"`\n}\n```\nACL struct that is returned to user for verbosity = full\n\n```go\ntype Rights map[string]bool\n```\n\n","path":"github.com/MG-RAST/SHock/shock-server/node/acl","name":"acl","synopsis":"","isRedistributable":true}
