config

package
v0.0.0-...-03d9887 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: 10 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 Config

type Config struct {
	CACert                    string                   `json:"caCert"`
	CertStorage               string                   `json:"certStorage"`
	CMServerURL               string                   `json:"cmServerUrl"`
	IAMProtectedServerURL     string                   `json:"iamProtectedServerUrl"`
	IAMPublicServerURL        string                   `json:"iamPublicServerUrl"`
	WorkingDir                string                   `json:"workingDir"`
	StorageDir                string                   `json:"storageDir"`
	StateDir                  string                   `json:"stateDir"`
	ServicesDir               string                   `json:"servicesDir"`
	ServicesPartLimit         uint                     `json:"servicesPartLimit"`
	LayersDir                 string                   `json:"layersDir"`
	LayersPartLimit           uint                     `json:"layersPartLimit"`
	DownloadDir               string                   `json:"downloadDir"`
	ExtractDir                string                   `json:"extractDir"`
	NodeConfigFile            string                   `json:"nodeConfigFile"`
	ServiceTTLDays            uint64                   `json:"serviceTtlDays"`
	LayerTTLDays              uint64                   `json:"layerTtlDays"`
	ServiceHealthCheckTimeout aostypes.Duration        `json:"serviceHealthCheckTimeout"`
	Monitoring                resourcemonitor.Config   `json:"monitoring"`
	Logging                   Logging                  `json:"logging"`
	JournalAlerts             journalalerts.Config     `json:"journalAlerts,omitempty"`
	HostBinds                 []string                 `json:"hostBinds"`
	Hosts                     []cloudprotocol.HostInfo `json:"hosts,omitempty"`
	Migration                 Migration                `json:"migration"`
}

Config instance.

func New

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

New creates new config object.

type Logging

type Logging struct {
	MaxPartSize  uint64 `json:"maxPartSize"`
	MaxPartCount uint64 `json:"maxPartCount"`
}

Logging configuration for system and service logging.

type Migration

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

Migration struct represents path for db migration.

Jump to

Keyboard shortcuts

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