device_agent

package
v0.0.0-...-270a3bd Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

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,
	logger logrus.FieldLogger,
) *statemachine.StateMachine

Types

type DeviceAgentServer

type DeviceAgentServer struct {
	pb.UnimplementedDeviceAgentServer
	AgentStatus *pb.AgentStatus

	Config *config.Config
	// 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(statemachine.Event),
) *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) Status

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

func (*DeviceAgentServer) UpdateAgentStatus

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

Jump to

Keyboard shortcuts

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