config

package
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: 8 Imported by: 0

Documentation

Overview

Package config provides set of API to provide aos configuration

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alerts

type Alerts struct {
	JournalAlerts      *journalalerts.Config `json:"journalAlerts,omitempty"`
	SendPeriod         aostypes.Duration     `json:"sendPeriod"`
	MaxMessageSize     int                   `json:"maxMessageSize"`
	MaxOfflineMessages int                   `json:"maxOfflineMessages"`
}

Alerts configuration for alerts.

type Config

type Config struct {
	Crypt                 Crypt             `json:"fcrypt"`
	CertStorage           string            `json:"certStorage"`
	ServiceDiscoveryURL   string            `json:"serviceDiscoveryUrl"`
	IAMProtectedServerURL string            `json:"iamProtectedServerUrl"`
	IAMPublicServerURL    string            `json:"iamPublicServerUrl"`
	CMServerURL           string            `json:"cmServerUrl"`
	Downloader            Downloader        `json:"downloader"`
	StorageDir            string            `json:"storageDir"`
	StateDir              string            `json:"stateDir"`
	WorkingDir            string            `json:"workingDir"`
	ImageStoreDir         string            `json:"imageStoreDir"`
	ComponentsDir         string            `json:"componentsDir"`
	UnitConfigFile        string            `json:"unitConfigFile"`
	ServiceTTLDays        uint64            `json:"serviceTtlDays"`
	LayerTTLDays          uint64            `json:"layerTtlDays"`
	UnitStatusSendTimeout aostypes.Duration `json:"unitStatusSendTimeout"`
	Monitoring            Monitoring        `json:"monitoring"`
	Alerts                Alerts            `json:"alerts"`
	Migration             Migration         `json:"migration"`
	SMController          SMController      `json:"smController"`
	UMController          UMController      `json:"umController"`
}

Config instance.

func New

func New(fileName string) (config *Config, err error)

New creates new config object.

type Crypt

type Crypt struct {
	CACert        string `json:"caCert"`
	TpmDevice     string `json:"tpmDevice,omitempty"`
	Pkcs11Library string `json:"pkcs11Library,omitempty"`
}

Crypt configuration structure with crypto attributes.

type Downloader

type Downloader struct {
	DownloadDir            string            `json:"downloadDir"`
	MaxConcurrentDownloads int               `json:"maxConcurrentDownloads"`
	RetryDelay             aostypes.Duration `json:"retryDelay"`
	MaxRetryDelay          aostypes.Duration `json:"maxRetryDelay"`
	DownloadPartLimit      int               `json:"downloadPartLimit"`
}

Downloader downloader configuration.

type Migration

type Migration struct {
	MigrationPath       string `json:"migrationPath"`
	MergedMigrationPath string `json:"mergedMigrationPath"`
}

Migration struct represents path for db migration.

type Monitoring

type Monitoring struct {
	MonitorConfig      *resourcemonitor.Config `json:"monitorConfig"`
	MaxOfflineMessages int                     `json:"maxOfflineMessages"`
	SendPeriod         aostypes.Duration       `json:"sendPeriod"`
	MaxMessageSize     int                     `json:"maxMessageSize"`
}

Monitoring configuration for system monitoring.

type SMController

type SMController struct {
	FileServerURL          string            `json:"fileServerUrl"`
	CMServerURL            string            `json:"cmServerUrl"`
	NodesConnectionTimeout aostypes.Duration `json:"nodesConnectionTimeout"`
	UpdateTTL              aostypes.Duration `json:"updateTtl"`
}

SMController SM controller configuration.

type UMController

type UMController struct {
	FileServerURL string            `json:"fileServerUrl"`
	CMServerURL   string            `json:"cmServerUrl"`
	UpdateTTL     aostypes.Duration `json:"updateTtl"`
}

UMController configuration for update controller.

Jump to

Keyboard shortcuts

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