http

package
v0.8.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2022 License: BSD-3-Clause Imports: 15 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIHandler added in v0.8.5

func APIHandler(accountManager s.AccountManager, authIssuer string, authAudience string, authKeysLocation string) (http.Handler, error)

APIHandler creates the Management service HTTP API handler registering all the available endpoints.

Types

type Duration added in v0.8.5

type Duration struct {
	time.Duration
}

Duration is used strictly for JSON requests/responses due to duration marshalling issues

func (Duration) MarshalJSON added in v0.8.5

func (d Duration) MarshalJSON() ([]byte, error)

func (*Duration) UnmarshalJSON added in v0.8.5

func (d *Duration) UnmarshalJSON(b []byte) error

type Groups added in v0.8.5

type Groups struct {
	// contains filtered or unexported fields
}

Groups is a handler that returns groups of the account

func NewGroups added in v0.8.5

func NewGroups(accountManager server.AccountManager, authAudience string) *Groups

func (*Groups) CreateGroupHandler added in v0.8.5

func (h *Groups) CreateGroupHandler(w http.ResponseWriter, r *http.Request)

CreateGroupHandler handles group creation request

func (*Groups) DeleteGroupHandler added in v0.8.5

func (h *Groups) DeleteGroupHandler(w http.ResponseWriter, r *http.Request)

DeleteGroupHandler handles group deletion request

func (*Groups) GetAllGroupsHandler added in v0.8.5

func (h *Groups) GetAllGroupsHandler(w http.ResponseWriter, r *http.Request)

GetAllGroupsHandler list for the account

func (*Groups) GetGroupHandler added in v0.8.5

func (h *Groups) GetGroupHandler(w http.ResponseWriter, r *http.Request)

GetGroupHandler returns a group

func (*Groups) PatchGroupHandler added in v0.8.5

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 added in v0.8.5

func (h *Groups) UpdateGroupHandler(w http.ResponseWriter, r *http.Request)

UpdateGroupHandler handles update to a group identified by a given ID

type Peers added in v0.8.5

type Peers struct {
	// contains filtered or unexported fields
}

Peers is a handler that returns peers of the account

func NewPeers added in v0.8.5

func NewPeers(accountManager server.AccountManager, authAudience string) *Peers

func (*Peers) GetPeers added in v0.8.5

func (h *Peers) GetPeers(w http.ResponseWriter, r *http.Request)

func (*Peers) HandlePeer added in v0.8.5

func (h *Peers) HandlePeer(w http.ResponseWriter, r *http.Request)

type Rules added in v0.8.5

type Rules struct {
	// contains filtered or unexported fields
}

Rules is a handler that returns rules of the account

func NewRules added in v0.8.5

func NewRules(accountManager server.AccountManager, authAudience string) *Rules

func (*Rules) CreateRuleHandler added in v0.8.5

func (h *Rules) CreateRuleHandler(w http.ResponseWriter, r *http.Request)

CreateRuleHandler handles rule creation request

func (*Rules) DeleteRuleHandler added in v0.8.5

func (h *Rules) DeleteRuleHandler(w http.ResponseWriter, r *http.Request)

DeleteRuleHandler handles rule deletion request

func (*Rules) GetAllRulesHandler added in v0.8.5

func (h *Rules) GetAllRulesHandler(w http.ResponseWriter, r *http.Request)

GetAllRulesHandler list for the account

func (*Rules) GetRuleHandler added in v0.8.5

func (h *Rules) GetRuleHandler(w http.ResponseWriter, r *http.Request)

GetRuleHandler handles a group Get request identified by ID

func (*Rules) PatchRuleHandler added in v0.8.5

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 added in v0.8.5

func (h *Rules) UpdateRuleHandler(w http.ResponseWriter, r *http.Request)

UpdateRuleHandler handles update to a rule identified by a given ID

type SetupKeys added in v0.8.5

type SetupKeys struct {
	// contains filtered or unexported fields
}

SetupKeys is a handler that returns a list of setup keys of the account

func NewSetupKeysHandler added in v0.8.5

func NewSetupKeysHandler(accountManager server.AccountManager, authAudience string) *SetupKeys

func (*SetupKeys) GetKeys added in v0.8.5

func (h *SetupKeys) GetKeys(w http.ResponseWriter, r *http.Request)

func (*SetupKeys) HandleKey added in v0.8.5

func (h *SetupKeys) HandleKey(w http.ResponseWriter, r *http.Request)

type UserHandler added in v0.8.5

type UserHandler struct {
	// contains filtered or unexported fields
}

func NewUserHandler added in v0.8.5

func NewUserHandler(accountManager server.AccountManager, authAudience string) *UserHandler

func (*UserHandler) GetUsers added in v0.8.5

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.

Directories

Path Synopsis
Package api provides primitives to interact with the openapi HTTP API.
Package api provides primitives to interact with the openapi HTTP API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL