aos_communicationmanager

command module
v0.0.0-...-8f7bd20 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 36 Imported by: 0

README

Aos Communication Manager

CI codecov Quality Gate Status

Aos Communication Manager (CM) is a part of Aos system which responsible for the following tasks:

  • communicate with the backend;
  • download, verify and decrypt services, layers and component updates;
  • monitor system resource usage;
  • serve Update Managers (UM's) and Service Managers (SM's).

See architecture document for more details.

Build

Required GO packages

All requires GO packages exist under vendor folder. Content of this folder is created with GO modules:

go mod init
go mod vendor
Native build
go build
ARM 64 build

Install arm64 toolchain:

sudo apt install gcc-aarch64-linux-gnu

Build:

CC=aarch64-linux-gnu-gcc CGO_ENABLED=1 GOOS=linux GOARCH=arm64 go build

Configuration

CM is configured through a configuration file. The file aos_communicationmanager.cfg should be either in current directory or specified with command line option as following:

./aos_communicationmanager -c aos_communicationmanager.cfg

The configuration file has JSON format described here. Example configuration file could be found in aos_communication.cfg

To increase log level use option -v:

./aos_communicationmanager -c aos_communicationmanager.cfg -v debug

Run

Required packages

CM needs Aos Identity and Access Manager (IAM) to be running and configured (see aos_iamanager readme) before start.

Test required packages

  • [libssl-dev] - headers for TPM simulator
  • [rabbitmq-server] - AMQP server
  • [pyftpdlib] - light python ftp server

Test

Test all packages:

sudo -E go test ./... -v

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package alerts provides set of API to send system and services alerts
Package alerts provides set of API to send system and services alerts
Package config provides set of API to provide aos configuration
Package config provides set of API to provide aos configuration
utils
uidgidpool
Package launcher provides set of API to controls services lifecycle
Package launcher provides set of API to controls services lifecycle

Jump to

Keyboard shortcuts

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