subsystems

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package subsystems defines the subsystem interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Subsystem

type Subsystem interface {
	// Start runs the subsystem
	Start(ctx context.Context) error

	// Stop signals the subsystem to shutdown
	Stop(ctx context.Context) error

	// Update validates and/or updates a subsystem, returns true if subsystem should be restarted
	Update(ctx context.Context, cfg *pb.DeviceSubsystemConfig) (bool, error)

	// HealthCheck reports if a subsystem is running correctly (it is restarted if not)
	HealthCheck(ctx context.Context) error

	// Version returns the current version of the subsystem
	Version() string
}

Directories

Path Synopsis
Package provisioning is the subsystem responsible for network/wifi management, and initial device setup via hotspot.
Package provisioning is the subsystem responsible for network/wifi management, and initial device setup via hotspot.
Package registry is used to register subsystems from other packages.
Package registry is used to register subsystems from other packages.
Package syscfg contains the system configuration agent subsystem.
Package syscfg contains the system configuration agent subsystem.
Package viamagent is the subsystem for the viam-agent itself.
Package viamagent is the subsystem for the viam-agent itself.
Package viamserver contains the viam-server agent subsystem.
Package viamserver contains the viam-server agent subsystem.

Jump to

Keyboard shortcuts

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