Documentation ¶
Index ¶
- func ErrorHandler(h ErrorHandlerFunc) http.HandlerFunc
- func UnknownEndpointHandler(w http.ResponseWriter, r *http.Request) error
- type ApiUserHandlerGroup
- func (h ApiUserHandlerGroup) CreateUser(w http.ResponseWriter, r *http.Request) error
- func (h ApiUserHandlerGroup) DeleteUser(w http.ResponseWriter, r *http.Request) error
- func (h ApiUserHandlerGroup) GetUser(w http.ResponseWriter, r *http.Request) error
- func (h ApiUserHandlerGroup) GetUsers(w http.ResponseWriter, r *http.Request) error
- func (h ApiUserHandlerGroup) PutUser(w http.ResponseWriter, r *http.Request) error
- type ErrorHandlerFunc
- type HTTPError
- type ProfileHandlerGroup
- func (h ProfileHandlerGroup) CreateProfile(w http.ResponseWriter, r *http.Request) error
- func (h ProfileHandlerGroup) DeleteProfile(w http.ResponseWriter, r *http.Request) error
- func (h ProfileHandlerGroup) GetProfile(w http.ResponseWriter, r *http.Request) error
- func (h ProfileHandlerGroup) GetProfiles(w http.ResponseWriter, r *http.Request) error
- func (h ProfileHandlerGroup) PatchProfile(w http.ResponseWriter, r *http.Request) error
- func (h ProfileHandlerGroup) PutProfile(w http.ResponseWriter, r *http.Request) error
- type PxeConfigHandlerGroup
- type SystemHandlerGroup
- func (h SystemHandlerGroup) CreateSystem(w http.ResponseWriter, r *http.Request) error
- func (h SystemHandlerGroup) DeleteSystem(w http.ResponseWriter, r *http.Request) error
- func (h SystemHandlerGroup) GetSystem(w http.ResponseWriter, r *http.Request) error
- func (h SystemHandlerGroup) GetSystems(w http.ResponseWriter, r *http.Request) error
- func (h SystemHandlerGroup) PatchSystem(w http.ResponseWriter, r *http.Request) error
- func (h SystemHandlerGroup) PutSystem(w http.ResponseWriter, r *http.Request) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorHandler ¶
func ErrorHandler(h ErrorHandlerFunc) http.HandlerFunc
func UnknownEndpointHandler ¶
func UnknownEndpointHandler(w http.ResponseWriter, r *http.Request) error
Types ¶
type ApiUserHandlerGroup ¶
type ApiUserHandlerGroup struct {
// contains filtered or unexported fields
}
ApiUserHandlerGroup is a group of http.HandlerFunc functions related to API users
func NewApiUserHandlerGroup ¶
func NewApiUserHandlerGroup(ar auth.ApiUserRepository) ApiUserHandlerGroup
func (ApiUserHandlerGroup) CreateUser ¶
func (h ApiUserHandlerGroup) CreateUser(w http.ResponseWriter, r *http.Request) error
func (ApiUserHandlerGroup) DeleteUser ¶
func (h ApiUserHandlerGroup) DeleteUser(w http.ResponseWriter, r *http.Request) error
func (ApiUserHandlerGroup) GetUser ¶
func (h ApiUserHandlerGroup) GetUser(w http.ResponseWriter, r *http.Request) error
func (ApiUserHandlerGroup) GetUsers ¶
func (h ApiUserHandlerGroup) GetUsers(w http.ResponseWriter, r *http.Request) error
func (ApiUserHandlerGroup) PutUser ¶
func (h ApiUserHandlerGroup) PutUser(w http.ResponseWriter, r *http.Request) error
type ErrorHandlerFunc ¶
type ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request) error
type HTTPError ¶
type HTTPError struct { StatusCode int // contains filtered or unexported fields }
func NewHTTPError ¶
type ProfileHandlerGroup ¶
type ProfileHandlerGroup struct {
// contains filtered or unexported fields
}
ProfileHandlerGroup is a group of http.HandlerFunc functions related to profiles
func NewProfileHandlerGroup ¶
func NewProfileHandlerGroup(pr profile.Repository) ProfileHandlerGroup
func (ProfileHandlerGroup) CreateProfile ¶
func (h ProfileHandlerGroup) CreateProfile(w http.ResponseWriter, r *http.Request) error
func (ProfileHandlerGroup) DeleteProfile ¶
func (h ProfileHandlerGroup) DeleteProfile(w http.ResponseWriter, r *http.Request) error
func (ProfileHandlerGroup) GetProfile ¶
func (h ProfileHandlerGroup) GetProfile(w http.ResponseWriter, r *http.Request) error
func (ProfileHandlerGroup) GetProfiles ¶
func (h ProfileHandlerGroup) GetProfiles(w http.ResponseWriter, r *http.Request) error
func (ProfileHandlerGroup) PatchProfile ¶
func (h ProfileHandlerGroup) PatchProfile(w http.ResponseWriter, r *http.Request) error
func (ProfileHandlerGroup) PutProfile ¶
func (h ProfileHandlerGroup) PutProfile(w http.ResponseWriter, r *http.Request) error
type PxeConfigHandlerGroup ¶
type PxeConfigHandlerGroup struct {
// contains filtered or unexported fields
}
PxeConfigHandlerGroup is a group of http.HandlerFunc functions related to PXE configs
func NewPxeConfigHandlerGroup ¶
func NewPxeConfigHandlerGroup(sr system.Repository, pr profile.Repository) PxeConfigHandlerGroup
func (PxeConfigHandlerGroup) GetPxeConfig ¶
func (h PxeConfigHandlerGroup) GetPxeConfig(w http.ResponseWriter, r *http.Request) error
type SystemHandlerGroup ¶
type SystemHandlerGroup struct {
// contains filtered or unexported fields
}
SystemHandlerGroup is a group of http.HandlerFunc functions related to systems
func NewSystemHandlerGroup ¶
func NewSystemHandlerGroup(sr system.Repository) SystemHandlerGroup
func (SystemHandlerGroup) CreateSystem ¶
func (h SystemHandlerGroup) CreateSystem(w http.ResponseWriter, r *http.Request) error
func (SystemHandlerGroup) DeleteSystem ¶
func (h SystemHandlerGroup) DeleteSystem(w http.ResponseWriter, r *http.Request) error
func (SystemHandlerGroup) GetSystem ¶
func (h SystemHandlerGroup) GetSystem(w http.ResponseWriter, r *http.Request) error
func (SystemHandlerGroup) GetSystems ¶
func (h SystemHandlerGroup) GetSystems(w http.ResponseWriter, r *http.Request) error
func (SystemHandlerGroup) PatchSystem ¶
func (h SystemHandlerGroup) PatchSystem(w http.ResponseWriter, r *http.Request) error
func (SystemHandlerGroup) PutSystem ¶
func (h SystemHandlerGroup) PutSystem(w http.ResponseWriter, r *http.Request) error
Click to show internal directories.
Click to hide internal directories.