controller

package
v0.0.0-...-f6b4a90 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	ctrpb.UnimplementedControllerServer

	RpcPort string
	// contains filtered or unexported fields
}

func NewController

func NewController(port string, hbCh chan *HeartBeat) *Controller

func (*Controller) GetAgentHeartBeat

func (ctr *Controller) GetAgentHeartBeat(rpcAddr string) (*agentpb.HeartBeat, error)

func (*Controller) Run

func (ctr *Controller) Run()

func (*Controller) UpdateAgentStatusRequest

func (ctr *Controller) UpdateAgentStatusRequest(ctx context.Context, heartbeat *agentpb.HeartBeat) (*ctrpb.ControllerRequestDone, error)

func (*Controller) UpdateConfig

func (ctr *Controller) UpdateConfig(rpcAddr string, configBytes []byte) (*agentpb.UpdateConfigResponse, error)

type HeartBeat

type HeartBeat struct {
	HeartBeat *agentpb.HeartBeat
	Addr      string
}

Jump to

Keyboard shortcuts

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