deviceagent

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

Package deviceagent handles the gRPC server that ties the helper, systray/cli and apiserver together. It is the main driver on the device side.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStateMachine

func NewStateMachine(
	ctx context.Context,
	rc runtimeconfig.RuntimeConfig,
	cfg config.Config,
	notifier notify.Notifier,
	deviceHelper pb.DeviceHelperClient,
	statusUpdates chan<- *pb.AgentStatus,
	authHandler auth.Handler,
	logger logrus.FieldLogger,
) *statemachine.StateMachine

Types

type DeviceAgentServer

type DeviceAgentServer struct {
	pb.UnimplementedDeviceAgentServer
	Config *config.Config

	AgentStatus *pb.AgentStatus
	// contains filtered or unexported fields
}

func NewServer

func NewServer(ctx context.Context,
	log *logrus.Entry,
	cfg *config.Config,
	rc runtimeconfig.RuntimeConfig,
	notifier notify.Notifier,
	sendEvent func(state.EventWithSpan),
	acceptableUse *acceptableuse.Handler,
	jita *jita.Handler,
	authHandler auth.Handler,
) *DeviceAgentServer

func (*DeviceAgentServer) ConfigureJITA

func (*DeviceAgentServer) GetAgentConfiguration

func (*DeviceAgentServer) Login

func (das *DeviceAgentServer) Login(ctx context.Context, request *pb.LoginRequest) (*pb.LoginResponse, error)

func (*DeviceAgentServer) Logout

func (das *DeviceAgentServer) Logout(ctx context.Context, request *pb.LogoutRequest) (*pb.LogoutResponse, error)

func (*DeviceAgentServer) SetActiveTenant

func (*DeviceAgentServer) SetAgentConfiguration

func (*DeviceAgentServer) ShowAcceptableUse

func (*DeviceAgentServer) ShowJita

func (*DeviceAgentServer) Status

func (das *DeviceAgentServer) Status(request *pb.AgentStatusRequest, statusServer pb.DeviceAgent_StatusServer) error

func (*DeviceAgentServer) UpdateAgentStatus

func (das *DeviceAgentServer) UpdateAgentStatus(status *pb.AgentStatus)

Directories

Path Synopsis
Package agenthttp provides a simple HTTP server for serving psk-secured sites on localhost for the device-agent
Package agenthttp provides a simple HTTP server for serving psk-secured sites on localhost for the device-agent
states

Jump to

Keyboard shortcuts

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