Documentation
¶
Index ¶
Constants ¶
View Source
const ( RequestStateNew RequestStateType = "NEW" RequestStateApproved RequestStateType = "APPROVED" RequestStateRejected RequestStateType = "REJECTED" RequestAddToGroup RequestType = "GROUP" RequestExitFromGroup RequestType = "GROUP_EXIT" RequestExtendServiceExpiry RequestType = "SERVICE_EXPIRY" )
Variables ¶
View Source
var ExcludeGroups []string
ExcludeGroups is a list of groups to exclude from the list of groups
Functions ¶
This section is empty.
Types ¶
type CatalogStatus ¶
type Group ¶
type Group struct {
ID string `json:"id"`
Name string `json:"name"`
// Membership is a flag to indicate if the user is a member of the group
Membership bool `json:"membership"`
Quota Capacity `json:"quota"`
}
func FilterExcludedGroups ¶
FilterExcludedGroups filters out groups that are excluded
type GroupAdmission ¶
type Key ¶
type NewRequest ¶
type NewRequest struct {
Justification string `json:"justification"`
}
func GetNewRequest ¶
func GetNewRequest() NewRequest
type Request ¶
type Request struct {
ID primitive.ObjectID `json:"id" bson:"_id,omitempty"`
UserID string `json:"user_id" bson:"user_id,omitempty"`
Justification string `json:"justification" bson:"justification,omitempty"`
Comment string `json:"comment" bson:"comment,omitempty"`
CreatedAt time.Time `json:"created_at" bson:"created_at,omitempty"`
State RequestStateType `json:"state" bson:"state,omitempty"`
RequestType RequestType `json:"type" bson:"type,omitempty"`
GroupAdmission *GroupAdmission `json:"group,omitempty" bson:"group,omitempty"`
ServiceExpiry *ServiceExpiry `json:"service,omitempty" bson:"service,omitempty"`
}
func GetRequest ¶
func GetRequest() Request
func GetRequests ¶
func GetRequests() []Request
type RequestStateType ¶
type RequestStateType string
type RequestType ¶
type RequestType string
type Service ¶
type Service struct {
ID string `json:"id"`
UserID string `json:"user_id"`
Name string `json:"name"`
DisplayName string `json:"display_name"`
CatalogName string `json:"catalog_name"`
Expiry time.Time `json:"expiry"`
Status ServiceStatus `json:"status"`
}
Service will have the details of the user provisioned service from catalog
type ServiceExpiry ¶
type ServiceStatus ¶
Click to show internal directories.
Click to hide internal directories.