agent

package
v0.0.0-...-8dd92da Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2018 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

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

Agent holds the netplugin agent state

func NewAgent

func NewAgent(pluginConfig *plugin.Config) *Agent

NewAgent creates a new netplugin agent

func (*Agent) HandleEvents

func (ag *Agent) HandleEvents() error

HandleEvents handles events

func (*Agent) Plugin

func (ag *Agent) Plugin() *plugin.NetPlugin

Plugin returns the netplugin instance

func (*Agent) PostInit

func (ag *Agent) PostInit() error

PostInit post initialization

func (*Agent) ProcessCurrentState

func (ag *Agent) ProcessCurrentState() error

ProcessCurrentState processes current state as read from stateStore

func (*Agent) ReclaimEndpointHandler

func (ag *Agent) ReclaimEndpointHandler(w http.ResponseWriter, r *http.Request, vars map[string]string) (interface{}, error)

ReclaimEndpointHandler reclaims endpoint

Jump to

Keyboard shortcuts

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