agent

package
Version: v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2016 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleError

func HandleError(s *client.Schemas, t func(http.ResponseWriter, *http.Request) error) http.Handler

func NewRouter

func NewRouter(s *Server) *mux.Router

func NewSchema

func NewSchema() *client.Schemas

Types

type Process

type Process struct {
	client.Resource
	ProcessType string    `json:"processType"`
	SrcFile     string    `json:"srcFile"`
	DestFile    string    `json:"destfile"`
	Host        string    `json:"host"`
	Port        int       `json:"port"`
	ExitCode    int       `json:"exitCode"`
	Output      string    `json:"output"`
	Created     time.Time `json:"created"`
}

type ProcessCollection

type ProcessCollection struct {
	client.Collection
	Data []Process `json:"data"`
}

type Server

type Server struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewServer

func NewServer(start, end int) *Server

func (*Server) CreateProcess

func (s *Server) CreateProcess(rw http.ResponseWriter, req *http.Request) error

func (*Server) GetProcess

func (s *Server) GetProcess(rw http.ResponseWriter, req *http.Request) error

func (*Server) ListProcesses

func (s *Server) ListProcesses(rw http.ResponseWriter, req *http.Request) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL