Documentation ¶
Index ¶
- type Duration
- type Groups
- func (h *Groups) CreateGroupHandler(w http.ResponseWriter, r *http.Request)
- func (h *Groups) DeleteGroupHandler(w http.ResponseWriter, r *http.Request)
- func (h *Groups) GetAllGroupsHandler(w http.ResponseWriter, r *http.Request)
- func (h *Groups) GetGroupHandler(w http.ResponseWriter, r *http.Request)
- func (h *Groups) PatchGroupHandler(w http.ResponseWriter, r *http.Request)
- func (h *Groups) UpdateGroupHandler(w http.ResponseWriter, r *http.Request)
- type Peers
- type Rules
- func (h *Rules) CreateRuleHandler(w http.ResponseWriter, r *http.Request)
- func (h *Rules) DeleteRuleHandler(w http.ResponseWriter, r *http.Request)
- func (h *Rules) GetAllRulesHandler(w http.ResponseWriter, r *http.Request)
- func (h *Rules) GetRuleHandler(w http.ResponseWriter, r *http.Request)
- func (h *Rules) PatchRuleHandler(w http.ResponseWriter, r *http.Request)
- func (h *Rules) UpdateRuleHandler(w http.ResponseWriter, r *http.Request)
- type SetupKeys
- type UserHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Duration ¶
Duration is used strictly for JSON requests/responses due to duration marshalling issues
func (Duration) MarshalJSON ¶
func (*Duration) UnmarshalJSON ¶
type Groups ¶
type Groups struct {
// contains filtered or unexported fields
}
Groups is a handler that returns groups of the account
func (*Groups) CreateGroupHandler ¶
func (h *Groups) CreateGroupHandler(w http.ResponseWriter, r *http.Request)
CreateGroupHandler handles group creation request
func (*Groups) DeleteGroupHandler ¶
func (h *Groups) DeleteGroupHandler(w http.ResponseWriter, r *http.Request)
DeleteGroupHandler handles group deletion request
func (*Groups) GetAllGroupsHandler ¶
func (h *Groups) GetAllGroupsHandler(w http.ResponseWriter, r *http.Request)
GetAllGroupsHandler list for the account
func (*Groups) GetGroupHandler ¶
func (h *Groups) GetGroupHandler(w http.ResponseWriter, r *http.Request)
GetGroupHandler returns a group
func (*Groups) PatchGroupHandler ¶
func (h *Groups) PatchGroupHandler(w http.ResponseWriter, r *http.Request)
PatchGroupHandler handles patch updates to a group identified by a given ID
func (*Groups) UpdateGroupHandler ¶
func (h *Groups) UpdateGroupHandler(w http.ResponseWriter, r *http.Request)
UpdateGroupHandler handles update to a group identified by a given ID
type Peers ¶
type Peers struct {
// contains filtered or unexported fields
}
Peers is a handler that returns peers of the account
func (*Peers) HandlePeer ¶
func (h *Peers) HandlePeer(w http.ResponseWriter, r *http.Request)
type Rules ¶
type Rules struct {
// contains filtered or unexported fields
}
Rules is a handler that returns rules of the account
func (*Rules) CreateRuleHandler ¶
func (h *Rules) CreateRuleHandler(w http.ResponseWriter, r *http.Request)
CreateRuleHandler handles rule creation request
func (*Rules) DeleteRuleHandler ¶
func (h *Rules) DeleteRuleHandler(w http.ResponseWriter, r *http.Request)
DeleteRuleHandler handles rule deletion request
func (*Rules) GetAllRulesHandler ¶
func (h *Rules) GetAllRulesHandler(w http.ResponseWriter, r *http.Request)
GetAllRulesHandler list for the account
func (*Rules) GetRuleHandler ¶
func (h *Rules) GetRuleHandler(w http.ResponseWriter, r *http.Request)
GetRuleHandler handles a group Get request identified by ID
func (*Rules) PatchRuleHandler ¶
func (h *Rules) PatchRuleHandler(w http.ResponseWriter, r *http.Request)
PatchRuleHandler handles patch updates to a rule identified by a given ID
func (*Rules) UpdateRuleHandler ¶
func (h *Rules) UpdateRuleHandler(w http.ResponseWriter, r *http.Request)
UpdateRuleHandler handles update to a rule identified by a given ID
type SetupKeys ¶
type SetupKeys struct {
// contains filtered or unexported fields
}
SetupKeys is a handler that returns a list of setup keys of the account
func NewSetupKeysHandler ¶
func NewSetupKeysHandler(accountManager server.AccountManager, authAudience string) *SetupKeys
type UserHandler ¶
type UserHandler struct {
// contains filtered or unexported fields
}
func NewUserHandler ¶
func NewUserHandler(accountManager server.AccountManager, authAudience string) *UserHandler
func (*UserHandler) GetUsers ¶
func (h *UserHandler) GetUsers(w http.ResponseWriter, r *http.Request)
GetUsers returns a list of users of the account this user belongs to. It also gathers additional user data (like email and name) from the IDP manager.