agent_client

package
v0.0.0-...-66ead01 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

README

Agent-Client

The agent-client is a debugging tool to talk directly to the cr-agent. The client does not have every feature implemented. To use this you should probably first understand the protocol used between the agent-client and the controller and then read the source of the client to look at the CLI-parameters.

Documentation

Index

Constants

View Source
const PORT = 50051

PORT TODO: make this configurable

Variables

This section is empty.

Functions

func AgentExists

func AgentExists(agent Agent) bool

func DefaultContext

func DefaultContext() (context.Context, context.CancelFunc)

func GetClient

func GetClient(address string) (generated.AgentClient, error)

func SetAgents

func SetAgents(agents *[]Agent)

Types

type Agent

type Agent struct {
	Ip     string
	HostIp string
}

func GetAgent

func GetAgent(hostIp string) Agent

func (*Agent) CreateCheckpointImage

func (h *Agent) CreateCheckpointImage(createCheckpointImageRequest *generated.CreateCheckpointImageRequest, opts ...grpc.CallOption) (*generated.CreateCheckpointImageResponse, error)

func (*Agent) ExtractStats

func (h *Agent) ExtractStats(request *generated.ExtractStatsRequest, opts ...grpc.CallOption) (*generated.StatsEntry, error)

Jump to

Keyboard shortcuts

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