http

package
v0.10.7 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: BSD-3-Clause Imports: 19 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,
	appMetrics telemetry.AppMetrics) (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 Nameservers added in v0.9.8

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

Nameservers is the nameserver group handler of the account

func NewNameservers added in v0.9.8

func NewNameservers(accountManager server.AccountManager, authAudience string) *Nameservers

NewNameservers returns a new instance of Nameservers handler

func (*Nameservers) CreateNameserverGroupHandler added in v0.9.8

func (h *Nameservers) CreateNameserverGroupHandler(w http.ResponseWriter, r *http.Request)

CreateNameserverGroupHandler handles nameserver group creation request

func (*Nameservers) DeleteNameserverGroupHandler added in v0.9.8

func (h *Nameservers) DeleteNameserverGroupHandler(w http.ResponseWriter, r *http.Request)

DeleteNameserverGroupHandler handles nameserver group deletion request

func (*Nameservers) GetAllNameserversHandler added in v0.9.8

func (h *Nameservers) GetAllNameserversHandler(w http.ResponseWriter, r *http.Request)

GetAllNameserversHandler returns the list of nameserver groups for the account

func (*Nameservers) GetNameserverGroupHandler added in v0.9.8

func (h *Nameservers) GetNameserverGroupHandler(w http.ResponseWriter, r *http.Request)

GetNameserverGroupHandler handles a nameserver group Get request identified by ID

func (*Nameservers) PatchNameserverGroupHandler added in v0.9.8

func (h *Nameservers) PatchNameserverGroupHandler(w http.ResponseWriter, r *http.Request)

PatchNameserverGroupHandler handles patch updates to a nameserver group identified by a given ID

func (*Nameservers) UpdateNameserverGroupHandler added in v0.9.8

func (h *Nameservers) UpdateNameserverGroupHandler(w http.ResponseWriter, r *http.Request)

UpdateNameserverGroupHandler handles update to a nameserver 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 Routes added in v0.8.9

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

Routes is the routes handler of the account

func NewRoutes added in v0.8.9

func NewRoutes(accountManager server.AccountManager, authAudience string) *Routes

NewRoutes returns a new instance of Routes handler

func (*Routes) CreateRouteHandler added in v0.8.9

func (h *Routes) CreateRouteHandler(w http.ResponseWriter, r *http.Request)

CreateRouteHandler handles route creation request

func (*Routes) DeleteRouteHandler added in v0.8.9

func (h *Routes) DeleteRouteHandler(w http.ResponseWriter, r *http.Request)

DeleteRouteHandler handles route deletion request

func (*Routes) GetAllRoutesHandler added in v0.8.9

func (h *Routes) GetAllRoutesHandler(w http.ResponseWriter, r *http.Request)

GetAllRoutesHandler returns the list of routes for the account

func (*Routes) GetRouteHandler added in v0.8.9

func (h *Routes) GetRouteHandler(w http.ResponseWriter, r *http.Request)

GetRouteHandler handles a route Get request identified by ID

func (*Routes) PatchRouteHandler added in v0.8.9

func (h *Routes) PatchRouteHandler(w http.ResponseWriter, r *http.Request)

PatchRouteHandler handles patch updates to a route identified by a given ID

func (*Routes) UpdateRouteHandler added in v0.8.9

func (h *Routes) UpdateRouteHandler(w http.ResponseWriter, r *http.Request)

UpdateRouteHandler handles update to a route identified by a given ID

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) CreateSetupKeyHandler added in v0.9.2

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

CreateSetupKeyHandler is a POST requests that creates a new SetupKey

func (*SetupKeys) GetAllSetupKeysHandler added in v0.9.2

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

GetAllSetupKeysHandler is a GET request that returns a list of SetupKey

func (*SetupKeys) GetSetupKeyHandler added in v0.9.2

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

GetSetupKeyHandler is a GET request to get a SetupKey by ID

func (*SetupKeys) UpdateSetupKeyHandler added in v0.9.2

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

UpdateSetupKeyHandler is a PUT request to update server.SetupKey

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) CreateUserHandler added in v0.9.8

func (h *UserHandler) CreateUserHandler(w http.ResponseWriter, r *http.Request)

CreateUserHandler creates a User in the system with a status "invited" (effectively this is a user invite).

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.

func (*UserHandler) UpdateUser added in v0.9.4

func (h *UserHandler) UpdateUser(w http.ResponseWriter, r *http.Request)

UpdateUser is a PUT requests to update User data

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