Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Group ¶
type Group struct { ID primitive.ObjectID `json:"id" bson:"_id,omitempty"` Identifier string `json:"identifier" bson:"identifier"` DisplayName string `json:"display_name" bson:"display_name"` Users []primitive.ObjectID `json:"users,omitempty" bson:"users"` Roles []primitive.ObjectID `json:"roles,omitempty" bson:"roles"` Policies []primitive.ObjectID `json:"policies,omitempty" bson:"policies"` }
type Organization ¶
type Organization struct { ID primitive.ObjectID `json:"id" bson:"_id,omitempty"` Identifier string `json:"identifier" bson:"identifier"` DisplayName string `json:"display_name" bson:"display_name"` API_KEY string `json:"api_key" bson:"api_key"` Resources []Resource `json:"resources,omitempty" bson:"resources"` Users []User `json:"users,omitempty" bson:"users"` Roles []Role `json:"roles,omitempty" bson:"roles"` Groups []Group `json:"groups,omitempty" bson:"groups"` Polices []Policy `json:"policies,omitempty" bson:"policies"` }
type Permission ¶
type Policy ¶
type Policy struct { ID primitive.ObjectID `json:"id" bson:"_id,omitempty"` Identifier string `json:"identifier" bson:"identifier"` DisplayName string `json:"display_name" bson:"display_name"` ActiveVersion string `json:"active_version" bson:"active_version"` PolicyContents []PolicyContent `json:"policy_contents" bson:"policy_contents"` }
type PolicyContent ¶
type ResourceType ¶
type ResourceType string
const ( SystemResource ResourceType = "system" BusinessResource ResourceType = "business" )
type Role ¶
type Role struct { ID primitive.ObjectID `json:"id" bson:"_id,omitempty"` Identifier string `json:"identifier" bson:"identifier"` DisplayName string `json:"display_name" bson:"display_name"` Users []primitive.ObjectID `json:"users,omitempty" bson:"users"` Groups []primitive.ObjectID `json:"groups,omitempty" bson:"groups"` Permissions []Permission `json:"permissions,omitempty" bson:"permissions"` }
type User ¶
type User struct { ID primitive.ObjectID `json:"id" bson:"_id,omitempty"` Username string `json:"username" bson:"username"` Identifier string `json:"identifier" bson:"identifier"` UserProperties map[string]interface{} `json:"user_properties" bson:"user_properties"` Roles []primitive.ObjectID `json:"roles,omitempty" bson:"roles"` Groups []primitive.ObjectID `json:"groups,omitempty" bson:"groups"` Policies []primitive.ObjectID `json:"policies,omitempty" bson:"policies"` }
Click to show internal directories.
Click to hide internal directories.