controllers

package
Version: v0.0.0-...-9649b88 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildErrWithCode

func BuildErrWithCode(code int, err error) error

func DoesIllegalOperation

func DoesIllegalOperation(op string) bool

func Err400

func Err400(o *beego.Controller, err error)

func HandleErr

func HandleErr(o *beego.Controller, err error)

func Init

func Init(o *jason.Object) error

Types

type HealthController

type HealthController struct {
	beego.Controller
}

Operations about network

func (*HealthController) Get

func (self *HealthController) Get()

@Title Get @Description get health level @Success 200 {object} models.HealthObj @router / [get]

type LogController

type LogController struct {
	beego.Controller
}

func (*LogController) Put

func (l *LogController) Put()

@Title modify log level @Description modify log level for klog @Failure 400 params is invalid @router /:log_level [put]

type PodController

type PodController struct {
	beego.Controller
	// contains filtered or unexported fields
}

Operations about object

func (*PodController) Post

func (self *PodController) Post()

@Title create @Description attach ports to pod or detach ports from pod @Param body body skel.CmdArgs true "cni args for pod" @Success 200 {string} @Failure 403 invalid request operation @Failure 406 invalid request json body @Failure 409 operation return error @router / [post]

Jump to

Keyboard shortcuts

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