handler

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthProvider

type AuthProvider string
const (
	NONE  AuthProvider = "none"
	BASIC AuthProvider = "basic"
)

type Config

type Config struct {
	Base         string       `json:"base"`
	Adderss      string       `json:"address"`
	Version      string       `json:"version"`
	Hostname     string       `json:"host_name"`
	AuthProvider AuthProvider `json:"auth_provider"`
}

type Handler

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

func NewHandler

func NewHandler(config *Config, clients map[string]docker.Client, assets fs.FS) *Handler

func (*Handler) GetContainers

func (h *Handler) GetContainers(c echo.Context) error

GetContainers @Summary Get list of containers

func (*Handler) IndexHandler

func (h *Handler) IndexHandler(c echo.Context) error

func (*Handler) Register

func (h *Handler) Register(v1 *echo.Group)

func (*Handler) StreamContainerEvents

func (h *Handler) StreamContainerEvents(c echo.Context) error

func (*Handler) StreamLogs

func (h *Handler) StreamLogs(c echo.Context) error

Jump to

Keyboard shortcuts

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