handlers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataHolder

type DataHolder struct {
	Data string `json:"data"`
}

type Handler

type Handler struct {
	Router     *echo.Echo
	Server     *http.Server
	Logger     *slog.Logger
	KubeClient *k8s.KubeClient
}

func NewHandler

func NewHandler(kubeClient *k8s.KubeClient) *Handler

func (*Handler) ApplyCM

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

func (*Handler) CreateService

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

func (*Handler) DeleteServiceByName

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

func (*Handler) GetAllPodsInfo

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

func (*Handler) GetAllServicesByNs

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

func (*Handler) GetCmByName

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

func (*Handler) GetCmByNamespace

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

func (*Handler) GetContainersInDeployment

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

func (*Handler) GetDeploymentLogs

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

func (*Handler) GetDeploymentYaml

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

func (*Handler) GetNamespaces

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

func (*Handler) GetNodesInfo

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

func (*Handler) GetPodLogs

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

func (*Handler) ListDeploymentsByNamespace

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

func (*Handler) Ping

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

func (*Handler) ScaleDeploymentsByName

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

func (*Handler) SetConfigMapByName

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

func (*Handler) Start

func (h *Handler) Start() error

func (*Handler) UpdateDeploymentYaml

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

type Resp

type Resp struct {
	Status string `json:"status"`
	Msg    string `json:"msg"`
	Error  error  `json:"error"`
	Data   any    `json:"data"`
}

Jump to

Keyboard shortcuts

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