device_agent

package
v0.0.0-...-8ea4bb1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 16 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
	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),
) *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