Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Map = map[string]Type{ Create.String(): Create, List.String(): List, Update.String(): Update, Read.String(): Read, Delete.String(): Delete, Authenticate.String(): Authenticate, All.String(): All, AuthorizeSession.String(): AuthorizeSession, AddGrants.String(): AddGrants, RemoveGrants.String(): RemoveGrants, SetGrants.String(): SetGrants, AddPrincipals.String(): AddPrincipals, SetPrincipals.String(): SetPrincipals, RemovePrincipals.String(): RemovePrincipals, Deauthenticate.String(): Deauthenticate, AddMembers.String(): AddMembers, SetMembers.String(): SetMembers, RemoveMembers.String(): RemoveMembers, SetPassword.String(): SetPassword, ChangePassword.String(): ChangePassword, AddHosts.String(): AddHosts, SetHosts.String(): SetHosts, RemoveHosts.String(): RemoveHosts, AddHostSets.String(): AddHostSets, SetHostSets.String(): SetHostSets, RemoveHostSets.String(): RemoveHostSets, Cancel.String(): Cancel, AddAccounts.String(): AddAccounts, SetAccounts.String(): SetAccounts, RemoveAccounts.String(): RemoveAccounts, ReadSelf.String(): ReadSelf, CancelSelf.String(): CancelSelf, ChangeState.String(): ChangeState, DeleteSelf.String(): DeleteSelf, NoOp.String(): NoOp, AddCredentialLibraries.String(): AddCredentialLibraries, SetCredentialLibraries.String(): SetCredentialLibraries, RemoveCredentialLibraries.String(): RemoveCredentialLibraries, AddCredentialSources.String(): AddCredentialSources, SetCredentialSources.String(): SetCredentialSources, RemoveCredentialSources.String(): RemoveCredentialSources, AddHostSources.String(): AddHostSources, SetHostSources.String(): SetHostSources, RemoveHostSources.String(): RemoveHostSources, }
Functions ¶
This section is empty.
Types ¶
type ActionSet ¶ added in v0.1.5
type ActionSet []Type
ActionSet stores a slice of action types
func (ActionSet) HasAction ¶ added in v0.2.1
HasAction returns whether the action set contains the given action.
type Type ¶
type Type uint
Type defines a type for the Actions of Resources actions are also stored as a lookup db table named iam_action
const ( Unknown Type = 0 List Type = 1 Create Type = 2 Update Type = 3 Read Type = 4 Delete Type = 5 Authenticate Type = 6 All Type = 7 AuthorizeSession Type = 8 AddGrants Type = 9 RemoveGrants Type = 10 SetGrants Type = 11 AddPrincipals Type = 12 SetPrincipals Type = 13 RemovePrincipals Type = 14 Deauthenticate Type = 15 AddMembers Type = 16 SetMembers Type = 17 RemoveMembers Type = 18 SetPassword Type = 19 ChangePassword Type = 20 AddHosts Type = 21 SetHosts Type = 22 RemoveHosts Type = 23 AddHostSets Type = 24 // DEPRECATED SetHostSets Type = 25 // DEPRECATED RemoveHostSets Type = 26 // DEPRECATED Cancel Type = 27 AddAccounts Type = 28 SetAccounts Type = 29 RemoveAccounts Type = 30 ReadSelf Type = 31 CancelSelf Type = 32 ChangeState Type = 33 DeleteSelf Type = 34 NoOp Type = 35 AddCredentialLibraries Type = 36 // DEPRECATED SetCredentialLibraries Type = 37 // DEPRECATED RemoveCredentialLibraries Type = 38 // DEPRECATED AddCredentialSources Type = 39 SetCredentialSources Type = 40 RemoveCredentialSources Type = 41 AddHostSources Type = 42 SetHostSources Type = 43 RemoveHostSources Type = 44 )
not using iota intentionally, since the values are stored in the db as well.
Click to show internal directories.
Click to hide internal directories.