handler

package
v0.0.0-...-a04f103 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigHandler

type ConfigHandler struct{}

func (ConfigHandler) Get

func (h ConfigHandler) Get(context echo.Context) error

Get a config

func (ConfigHandler) SetHandler

func (h ConfigHandler) SetHandler(group *echo.Group)

* group.GET("", config.Get)

type PodHandler

type PodHandler struct{}

func (PodHandler) List

func (h PodHandler) List(c echo.Context) error

List running pods

func (PodHandler) SetHandler

func (h PodHandler) SetHandler(group *echo.Group)

* group.GET("", PodHandler.List) * group.GET("/:name", PodHandler.Get) * group.POST("/start", PodHandler.Start) * group.POST("/stop", PodHandler.Stop)

func (PodHandler) Start

func (h PodHandler) Start(c echo.Context) error

Start a job to delete random pod

func (PodHandler) Stop

func (h PodHandler) Stop(c echo.Context) error

Jump to

Keyboard shortcuts

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