Documentation ¶
Index ¶
- Constants
- type APIError
- type Handler
- func (h *Handler) CreateHost(c echo.Context) error
- func (h *Handler) CreateInterface(c echo.Context) error
- func (h *Handler) CreateLink(c echo.Context) error
- func (h *Handler) CreateNetwork(c echo.Context) error
- func (h *Handler) CreateToken(c echo.Context) error
- func (h *Handler) DeleteHost(c echo.Context) error
- func (h *Handler) DeleteInterface(c echo.Context) error
- func (h *Handler) DeleteLink(c echo.Context) error
- func (h *Handler) DeleteNetwork(c echo.Context) error
- func (h *Handler) DeleteToken(c echo.Context) error
- func (h *Handler) GetHost(c echo.Context) error
- func (h *Handler) GetInterface(c echo.Context) error
- func (h *Handler) GetLink(c echo.Context) error
- func (h *Handler) GetNetwork(c echo.Context) error
- func (h *Handler) GetSelfSettings(c echo.Context) error
- func (h *Handler) GetSelfToken(c echo.Context) error
- func (h *Handler) GetToken(c echo.Context) error
- func (h *Handler) Healthcheck(ctx echo.Context) error
- func (h *Handler) ListHosts(c echo.Context) error
- func (h *Handler) ListInterfaces(c echo.Context) error
- func (h *Handler) ListLinks(c echo.Context) error
- func (h *Handler) ListNetworks(c echo.Context) error
- func (h *Handler) ListTokens(c echo.Context) error
- func (h *Handler) RegisterRoutes(e *echo.Echo)
- func (h *Handler) SynchronizeSelf(c echo.Context) error
- func (h *Handler) UpdateHost(c echo.Context) error
- func (h *Handler) UpdateInterface(c echo.Context) error
- func (h *Handler) UpdateLink(c echo.Context) error
- func (h *Handler) UpdateNetwork(c echo.Context) error
- func (h *Handler) UpdateSelfState(c echo.Context) error
- func (h *Handler) UpdateToken(c echo.Context) error
- type Middleware
Constants ¶
View Source
const ( // Key used for the Page query param PaginationPageQueryKey = "page" // Key used for the PerPage query param PaginationPerPageQueryKey = "per_page" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIError ¶
type APIError struct { Err error `json:"-"` Code int `json:"-"` Text string `json:"-"` Message string `json:"message"` Detail string `json:"detail"` Timestamp time.Time `json:"timestamp"` }
APIError :
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler :
func NewHandler ¶
func NewHandler(c *controller.Controller, middleware Middleware) (*Handler, error)
NewHandler : Create a new REST API handler
func (*Handler) CreateInterface ¶
CreateInterface :
func (*Handler) CreateNetwork ¶
CreateNetwork :
func (*Handler) DeleteInterface ¶
DeleteInterface :
func (*Handler) DeleteNetwork ¶
DeleteNetwork :
func (*Handler) GetSelfSettings ¶
GetSelfSettings :
func (*Handler) ListInterfaces ¶
ListInterfaces :
func (*Handler) SynchronizeSelf ¶
SynchronizeSelf :
func (*Handler) UpdateInterface ¶
UpdateInterface :
func (*Handler) UpdateNetwork ¶
UpdateNetwork :
func (*Handler) UpdateSelfState ¶
UpdateSelfState :
type Middleware ¶
type Middleware struct { VerifyAuth echo.MiddlewareFunc AdmitHost echo.MiddlewareFunc }
Middleware :
Source Files ¶
Click to show internal directories.
Click to hide internal directories.