config

package
v0.0.0-...-0490640 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SERVICE_NAME = "compliance"

Functions

This section is empty.

Types

type Authz

type Authz struct {
	Endpoint string
	HostBind string
	Port     int
}

Authz service specific config options

type ConfigManager

type ConfigManager struct {
	// contains filtered or unexported fields
}

ConfigManager - configuration manager for the service

func NewConfigManager

func NewConfigManager(configFile string) (*ConfigManager, error)

NewConfigManager - create a new config. There should only be one config for the service.

func (*ConfigManager) Close

func (manager *ConfigManager) Close()

Close - to close out the channel for this object. This should only be called when the service is being shutdown

func (*ConfigManager) GetProjectUpdateConfig

func (manager *ConfigManager) GetProjectUpdateConfig() project_update_lib.ProjectUpdateConfig

GetProjectUpdateConfig - get project update config

func (*ConfigManager) UpdateProjectUpdateConfig

func (manager *ConfigManager) UpdateProjectUpdateConfig(projectUpdateConfig project_update_lib.ProjectUpdateConfig) error

UpdateProjectUpdateConfig - update the project update config

type DataRetention

type DataRetention struct {
	ComplianceReportDays int32
	ComplianceEventDays  int32
}

DataRetention describes data retention policies

type Delivery

type Delivery struct {
	Enterprise string
	User       string
	Token      string
	DCToken    string
}

Delivery specific options to authenticate to Automate

type ElasticSearch

type ElasticSearch struct {
	Url         string
	Token       string
	AuthVersion string
	AllowOrigin string
}

ElasticSearch specific options

type ElasticSearchSidecar

type ElasticSearchSidecar struct {
	ESSidecarAddress string
}

ElasticSearchSidecar specific options

type EventConfig

type EventConfig struct {
	Endpoint string
}

type FeedConfig

type FeedConfig struct {
}

type InspecAgent

type InspecAgent struct {
	JobBufferSize int
	JobWorkers    int
	SocketPath    string
	BackendCache  string
	AuthnTarget   string
	AutomateFQDN  string
	TmpDir        string
}

InspecAgent service specific config options

type LatestRebuilder

type LatestRebuilder struct {
	Clean                        bool
	StartFromDateInUtc           string
	DaysBeyondMostRecentScanDate int
	QuickMode                    bool
}

type Manager

type Manager struct {
	Host                       string
	Port                       int
	Endpoint                   string
	ManualPollIntervalMinutes  int
	AwsEc2PollIntervalMinutes  int
	AzureVMPollIntervalMinutes int
}

Manager service specific config options

type Notifications

type Notifications struct {
	Target string
}

type Postgres

type Postgres struct {
	ConnectionString string
	Database         string
	MigrationsPath   string
}

Postgres specific options

type Profiles

type Profiles struct {
	MarketPath   string
	ProfilesPath string
}

Profiles specific options

type Secrets

type Secrets struct {
	Endpoint string
	HostBind string
	Port     int
}

Secrets service specific config options

type Service

type Service struct {
	Endpoint   string
	Name       string
	HostBind   string
	Port       int
	LogLevel   string
	ServerBind string
	certs.TLSConfig
	ConfigFilePath string
}

Service is a base config options struct for all services

Jump to

Keyboard shortcuts

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