agent

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2020 License: MIT Imports: 4 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
}

func NewAgent

func NewAgent(conf *config.GloriousConfig, fileLoc string, lgr context.Logger) *Agent

func (*Agent) Conf

func (a *Agent) Conf() *config.GloriousConfig

func (*Agent) Config

func (a *Agent) Config(_ struct{}, units *[]UnitConfig) error

func (*Agent) ExchangeTailToken

func (a *Agent) ExchangeTailToken(token string) ([]string, bool)

func (*Agent) Greet

func (a *Agent) Greet(params []string, reply *string) error

func (*Agent) Logger

func (a *Agent) Logger() context.Logger

func (*Agent) Reload

func (a *Agent) Reload(_ struct{}, err *error) error

func (*Agent) StartUnit

func (a *Agent) StartUnit(unitName string, err *string) error

func (*Agent) Status

func (a *Agent) Status(_ struct{}, units *[]UnitStatus) error

func (*Agent) StopUnit

func (a *Agent) StopUnit(unitName string, err *string) error

func (*Agent) StoreGetValues

func (a *Agent) StoreGetValues(req *StoreGetValuesRequest, resp *StoreGetValuesResponse) error

func (*Agent) StorePutValue

func (a *Agent) StorePutValue(req StorePutValueRequest, resp *ErrResponse) error

func (*Agent) TailProcesses

func (a *Agent) TailProcesses(req *TailProcessesRequest, resp *TailProcessesResponse) error

type ErrResponse

type ErrResponse struct {
	Err string
}

type StoreGetValuesRequest

type StoreGetValuesRequest struct {
	Keys []string
}

type StoreGetValuesResponse

type StoreGetValuesResponse struct {
	Values map[string]string
}

type StorePutValueRequest

type StorePutValueRequest struct {
	Key   string
	Value string
}

type TailProcessesRequest

type TailProcessesRequest struct {
	Names []string
}

type TailProcessesResponse

type TailProcessesResponse struct {
	Token string
	Err   string
}

type UnitConfig

type UnitConfig struct {
	Name        string `json:"name"`
	NumSlots    int    `json:"numSlots"`
	Description string `json:"description"`
}

type UnitStatus

type UnitStatus struct {
	Name   string   `json:"name"`
	Groups []string `json:"groups"`
	Status string   `json:"status"`
}

Jump to

Keyboard shortcuts

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