agentclient

package
v0.0.0-...-68b20d9 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ApiTerminalRoute = "/api/v1/terminal"
	ApiServicesRoute = "/api/v1/services"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentClient

type AgentClient interface {
	GetGps(ctx context.Context) (dtos.Gps, error)
	AddServiceMonitor(ctx context.Context, stats dtos.ServiceStats) error
	DeleteServiceMonitor(ctx context.Context, serviceName string) error
	GetAllDriverMonitor(ctx context.Context) ([]dtos.ServiceStats, error)
	RestartGateway(ctx context.Context) error
	OperationService(ctx context.Context, op dtos.Operation) error
	GetAllAppServiceMonitor(ctx context.Context) ([]dtos.ServiceStats, error)
	GetAllServices(ctx context.Context) (res dtos.ServicesStats, err error)
	Exec(ctx context.Context, req dtos.AgentRequest) (res dtos.AgentResponse, err error)
	ResetGateway(ctx context.Context) error
}

func New

func New(baseUrl string) AgentClient

Jump to

Keyboard shortcuts

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