controllers

package
v0.0.0-...-d23ef4a Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2018 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrKeyCannotBeEmpty = errors.New("key can't be empty")
)
View Source
var (
	ErrMissingAuthInfo = errors.New("missing auth info")
)

Functions

This section is empty.

Types

type AccountController

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

AccountController is our /uaa controller.

func NewAccountController

func NewAccountController(middleware *gin_jwt.JwtMiddleware, generator *gin_jwt.JwtGenerator) *AccountController

func (*AccountController) ChangePassword

func (c *AccountController) ChangePassword(ctx *gin.Context)

func (*AccountController) Handler

func (c *AccountController) Handler(root *gin.RouterGroup)

func (*AccountController) LoginHandler

func (c *AccountController) LoginHandler(ctx *gin.Context)

func (*AccountController) LogoutHandler

func (c *AccountController) LogoutHandler(ctx *gin.Context)

func (*AccountController) RegisterHandler

func (c *AccountController) RegisterHandler(ctx *gin.Context)

type ConfigurationController

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

ConfigurationController is our /configuration controller.

func NewConfigurationController

func NewConfigurationController() *ConfigurationController

func (*ConfigurationController) DeleteConfigurationHandler

func (c *ConfigurationController) DeleteConfigurationHandler(ctx *gin.Context)

func (*ConfigurationController) GetConfigurationHandler

func (c *ConfigurationController) GetConfigurationHandler(ctx *gin.Context)

func (*ConfigurationController) Handler

func (c *ConfigurationController) Handler(root *gin.RouterGroup)

func (*ConfigurationController) ListConfigurationHandler

func (c *ConfigurationController) ListConfigurationHandler(ctx *gin.Context)

func (*ConfigurationController) UpdateConfigurationHandler

func (c *ConfigurationController) UpdateConfigurationHandler(ctx *gin.Context)

type Controller

type Controller interface {
	Handler(root *gin.RouterGroup)
}

type LogController

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

LogController is our /log controller.

func NewLogController

func NewLogController(middleware *gin_jwt.JwtMiddleware) *LogController

func (*LogController) CleanLogHandler

func (c *LogController) CleanLogHandler(ctx *gin.Context)

func (*LogController) Handler

func (c *LogController) Handler(root *gin.RouterGroup)

func (*LogController) ListLogHandler

func (c *LogController) ListLogHandler(ctx *gin.Context)

type NetFilterController

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

NetFilterController is our /netfilter controller.

func NewNetFilterController

func NewNetFilterController() *NetFilterController

func (*NetFilterController) Handler

func (c *NetFilterController) Handler(root *gin.RouterGroup)

type PluginController

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

PluginController is our /plugin controller.

func NewPluginController

func NewPluginController(middleware *gin_jwt.JwtMiddleware) *PluginController

func (*PluginController) ExecPluginCommandHandler

func (c *PluginController) ExecPluginCommandHandler(ctx *gin.Context)

func (*PluginController) GetPluginCommandsHandler

func (c *PluginController) GetPluginCommandsHandler(ctx *gin.Context)

func (*PluginController) GetPluginHandler

func (c *PluginController) GetPluginHandler(ctx *gin.Context)

func (*PluginController) Handler

func (c *PluginController) Handler(root *gin.RouterGroup)

func (*PluginController) InstallPluginHandler

func (c *PluginController) InstallPluginHandler(ctx *gin.Context)

func (*PluginController) ListPluginHandler

func (c *PluginController) ListPluginHandler(ctx *gin.Context)

func (*PluginController) UninstallPluginHandler

func (c *PluginController) UninstallPluginHandler(ctx *gin.Context)

type ProcessesController

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

ProcessesController is our /processes controller.

func NewProcessesController

func NewProcessesController() *ProcessesController

func (*ProcessesController) Handler

func (c *ProcessesController) Handler(root *gin.RouterGroup)

func (*ProcessesController) KillHandler

func (c *ProcessesController) KillHandler(ctx *gin.Context)

func (*ProcessesController) ListHandler

func (c *ProcessesController) ListHandler(ctx *gin.Context)

type WebsController

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

WebsController is our /plugin controller.

func NewWebsController

func NewWebsController(middleware *gin_jwt.JwtMiddleware) *WebsController

func (*WebsController) Handler

func (c *WebsController) Handler(root *gin.RouterGroup)

func (*WebsController) PluginRootHandler

func (c *WebsController) PluginRootHandler(basePath string) gin.HandlerFunc

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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