Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Roles = struct { DevOpsAdmin Role DevOpsUser Role DevOpsViewer Role }{ "devops-admin", "devops-user", "devops-viewer", }
View Source
var States = struct { Accepted State Expired State Pending State Rejected State }{ "ACCEPTED", "EXPIRED", "PENDING", "REJECTED", }
Functions ¶
This section is empty.
Types ¶
type Settings ¶
type Settings struct { ID *string `json:"requestId"` // Request id UserId string `json:"userId"` // User id, cannot be changed once created Reason string `json:"reason"` // Request reason description, cannot be changed once created RequestedDays int `json:"requestedDays"` // For how many days access is requested, cannot be changed once created Role Role `json:"role"` // Requested role, cannot be changed once created State *State `json:"state"` // Access request state. Automatically set as `ACCEPTED` on create, state can be changed in subsequent updates. }
The configuration of the user
func (*Settings) MarshalHCL ¶
func (me *Settings) MarshalHCL(properties hcl.Properties) error
type UpdateSettings ¶
type UpdateSettings struct {
State State `json:"state"`
}
Click to show internal directories.
Click to hide internal directories.