Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RoleBindingIndices = []repos.IndexField{ { Field: []repos.IndexKey{ {Key: "id", Value: repos.IndexAsc}, }, Unique: true, }, { Field: []repos.IndexKey{ {Key: "user_id", Value: repos.IndexDesc}, {Key: "resource_ref", Value: repos.IndexDesc}, }, Unique: true, }, { Field: []repos.IndexKey{ {Key: "role", Value: repos.IndexAsc}, {Key: "resource_type", Value: repos.IndexAsc}, }, }, }
Functions ¶
This section is empty.
Types ¶
type RoleBinding ¶
type RoleBinding struct { repos.BaseEntity `json:",inline" bson:",inline"` UserId string `json:"user_id"` ResourceType t.ResourceType `json:"resource_type"` ResourceRef string `json:"resource_ref"` Role t.Role `json:"role"` }
func (*RoleBinding) Validate ¶
func (rb *RoleBinding) Validate() error
Click to show internal directories.
Click to hide internal directories.