Documentation
¶
Index ¶
- Constants
- func HasGlobalRead(user common.User) bool
- func HasGlobalWrite(user common.User) bool
- func HasOrganizationRead(orgID bson.ObjectId, userID bson.ObjectId) bool
- func IsInTeams(userID bson.ObjectId, teams []bson.ObjectId) bool
- func IsOrganizationAdmin(orgID bson.ObjectId, userID bson.ObjectId) bool
- type Credential
- func (Credential) Associate(resourceID bson.ObjectId, grantee bson.ObjectId, roleType string, role string) (err error)
- func (Credential) Disassociate(resourceID bson.ObjectId, grantee bson.ObjectId, roleType string, role string) (err error)
- func (Credential) Read(user common.User, credential common.Credential) bool
- func (c Credential) ReadByID(user common.User, credentialID bson.ObjectId) bool
- func (Credential) Write(user common.User, credential common.Credential) bool
- type Inventory
- func (Inventory) Associate(resourceID bson.ObjectId, grantee bson.ObjectId, roleType string, role string) (err error)
- func (Inventory) Disassociate(resourceID bson.ObjectId, grantee bson.ObjectId, roleType string, role string) (err error)
- func (Inventory) Read(user common.User, inventory ansible.Inventory) bool
- func (i Inventory) ReadByID(user common.User, inventoryID bson.ObjectId) bool
- func (Inventory) Write(user common.User, inventory ansible.Inventory) bool
- func (i Inventory) WriteByID(user common.User, inventoryID bson.ObjectId) bool
- type JobTemplate
- func (JobTemplate) Associate(resourceID bson.ObjectId, grantee bson.ObjectId, roleType string, role string) (err error)
- func (JobTemplate) Disassociate(resourceID bson.ObjectId, grantee bson.ObjectId, roleType string, role string) (err error)
- func (JobTemplate) Read(user common.User, jtemplate ansible.JobTemplate) bool
- func (j JobTemplate) ReadByID(user common.User, templateID bson.ObjectId) bool
- func (JobTemplate) Write(user common.User, jtemplate ansible.JobTemplate) bool
- func (j JobTemplate) WriteByID(user common.User, templateID bson.ObjectId) bool
- type Organization
- func (Organization) Associate(resourceID bson.ObjectId, grantee bson.ObjectId, roleType string, role string) (err error)
- func (Organization) Disassociate(resourceID bson.ObjectId, grantee bson.ObjectId, roleType string, role string) (err error)
- func (Organization) Read(user common.User, organization common.Organization) bool
- func (Organization) Write(user common.User, organization common.Organization) bool
- func (o Organization) WriteByID(user common.User, organizationID bson.ObjectId) bool
- type Project
- func (Project) Associate(resourceID bson.ObjectId, grantee bson.ObjectId, roleType string, role string) (err error)
- func (Project) Disassociate(resourceID bson.ObjectId, grantee bson.ObjectId, roleType string, role string) (err error)
- func (Project) Read(user common.User, project common.Project) bool
- func (p Project) ReadByID(user common.User, projectID bson.ObjectId) bool
- func (Project) Update(user common.User, project common.Project) bool
- func (Project) Write(user common.User, project common.Project) bool
- type Team
- func (Team) Associate(resourceID bson.ObjectId, grantee bson.ObjectId, roleType string, role string) (err error)
- func (Team) Disassociate(resourceID bson.ObjectId, grantee bson.ObjectId, roleType string, role string) (err error)
- func (Team) Read(user common.User, team common.Team) bool
- func (Team) Write(user common.User, team common.Team) bool
- type TerraformJobTemplate
- func (TerraformJobTemplate) Associate(resourceID bson.ObjectId, grantee bson.ObjectId, roleType string, role string) (err error)
- func (TerraformJobTemplate) Disassociate(resourceID bson.ObjectId, grantee bson.ObjectId, roleType string, role string) (err error)
- func (TerraformJobTemplate) Read(user common.User, jtemplate terraform.JobTemplate) bool
- func (j TerraformJobTemplate) ReadByID(user common.User, templateID bson.ObjectId) bool
- func (TerraformJobTemplate) Write(user common.User, jtemplate terraform.JobTemplate) bool
- func (j TerraformJobTemplate) WriteByID(user common.User, templateID bson.ObjectId) bool
- type User
Constants ¶
View Source
const ( CredentialAdmin = "admin" CredentialUse = "use" )
View Source
const ( RoleTypeTeam = "team" RoleTypeUser = "user" )
Important: if you are adding roles to team which means you are adding user to that team
View Source
const ( InventoryAdmin = "admin" InventoryUse = "use" InventoryUpdate = "update" )
View Source
const ( JobTemplateAdmin = "admin" JobTemplateExecute = "execute" )
View Source
const ( OrganizationAdmin = "admin" OrganizationAuditor = "auditor" OrganizationMember = "member" )
View Source
const ( ProjectAdmin = "admin" ProjectUse = "use" ProjectUpdate = "update" )
View Source
const ( TeamAdmin = "admin" TeamMember = "member" )
Variables ¶
This section is empty.
Functions ¶
func HasGlobalRead ¶
func HasGlobalWrite ¶
Types ¶
type Credential ¶
type Credential struct{}
func (Credential) Disassociate ¶
func (Credential) Read ¶
func (Credential) Read(user common.User, credential common.Credential) bool
func (Credential) Write ¶
func (Credential) Write(user common.User, credential common.Credential) bool
type Inventory ¶
type Inventory struct{}
func (Inventory) Disassociate ¶
type JobTemplate ¶
type JobTemplate struct{}
func (JobTemplate) Disassociate ¶
func (JobTemplate) Read ¶
func (JobTemplate) Read(user common.User, jtemplate ansible.JobTemplate) bool
func (JobTemplate) Write ¶
func (JobTemplate) Write(user common.User, jtemplate ansible.JobTemplate) bool
type Organization ¶
type Organization struct{}
func (Organization) Disassociate ¶
func (Organization) Read ¶
func (Organization) Read(user common.User, organization common.Organization) bool
func (Organization) Write ¶
func (Organization) Write(user common.User, organization common.Organization) bool
type TerraformJobTemplate ¶
type TerraformJobTemplate struct{}
func (TerraformJobTemplate) Disassociate ¶
func (TerraformJobTemplate) Read ¶
func (TerraformJobTemplate) Read(user common.User, jtemplate terraform.JobTemplate) bool
func (TerraformJobTemplate) Write ¶
func (TerraformJobTemplate) Write(user common.User, jtemplate terraform.JobTemplate) bool
Click to show internal directories.
Click to hide internal directories.