handlers

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2023 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorHandler

func ErrorHandler(h ErrorHandlerFunc) http.HandlerFunc

func IndexHandler

func IndexHandler(w http.ResponseWriter, r *http.Request) error

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 (ApiUserHandlerGroup) DeleteUser

func (ApiUserHandlerGroup) GetUser

func (ApiUserHandlerGroup) GetUsers

func (ApiUserHandlerGroup) PutUser

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

func NewHTTPError(err error, code int) HTTPError

func (HTTPError) Error

func (h HTTPError) Error() string

func (HTTPError) Unwrap

func (h HTTPError) Unwrap() error

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 (ProfileHandlerGroup) GetProfiles

func (ProfileHandlerGroup) PatchProfile

func (h ProfileHandlerGroup) PatchProfile(w http.ResponseWriter, r *http.Request) error

func (ProfileHandlerGroup) PutProfile

type PxeConfigHandlerGroup

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

PxeConfigHandlerGroup is a group of http.HandlerFunc functions related to PXE configs

func (PxeConfigHandlerGroup) GetPxeConfig

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 (SystemHandlerGroup) GetSystems

func (SystemHandlerGroup) PatchSystem

func (h SystemHandlerGroup) PatchSystem(w http.ResponseWriter, r *http.Request) error

func (SystemHandlerGroup) PutSystem

Jump to

Keyboard shortcuts

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