manager

package
v0.0.0-...-cb12b58 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPTablesExecution

type IPTablesExecution struct {
	*iptables.IPTables
}

func NewIPTablesExecution

func NewIPTablesExecution() (*IPTablesExecution, error)

func (*IPTablesExecution) Run

func (iptex *IPTablesExecution) Run(commandRules []string)

type Manager

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

func NewOrErr

func NewOrErr() (*Manager, error)

func (*Manager) UpdateRules

func (mgr *Manager) UpdateRules(rules []string) error

func (*Manager) WebService

func (mgr *Manager) WebService() *restful.WebService

WebService creates a new service that can handle REST requests for User resources.

func (*Manager) WebServices

func (mgr *Manager) WebServices() []*restful.WebService

type Unlocker

type Unlocker interface {
	Unlock() error
}

type User

type User struct {
	ID   string `json:"id" description:"identifier of the user"`
	Name string `json:"name" description:"name of the user" default:"john"`
	Age  int    `json:"age" description:"age of the user" default:"21"`
}

User is just a sample type

type UserResource

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

UserResource is the REST layer to the User domain

func (UserResource) WebService

func (u UserResource) WebService() *restful.WebService

WebService creates a new service that can handle REST requests for User resources.

Jump to

Keyboard shortcuts

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