config

package
v0.0.0-...-fca1c31 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: GPL-3.0, GPL-3.0-or-later Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBaseDir

func GetBaseDir() string

GetBaseDir return executable base directory, os independant

Types

type Configuration

type Configuration struct {
	Hostname               string
	Environment            string
	Location               string
	DataserviceURL         string
	AgentUser              string
	AgentPassword          string
	EnableServerValidation bool
	ForcePwshVersion       string
	Period                 int
	Verbose                bool
	ParallelizeRequests    bool
	Features               Features
}

Configuration holds the agent configuration options

func ReadConfig

func ReadConfig() Configuration

ReadConfig reads the configuration file from the current dir or /opt/ercole-agent

type Features

type Features struct {
	OracleDatabase     OracleDatabaseFeature
	Virtualization     VirtualizationFeature
	OracleExadata      OracleExadataFeature
	MicrosoftSQLServer MicrosoftSQLServerFeature
}

Features holds features params

type Hypervisor

type Hypervisor struct {
	Type       string
	Endpoint   string
	Username   string
	Password   string
	OvmUserKey string
	OvmControl string
}

Hypervisor holds the parameters used to connect to an hypervisor

type MicrosoftSQLServerFeature

type MicrosoftSQLServerFeature struct {
	Enabled     bool
	FetcherUser string
}

MicrosoftSQLServerFeature holds microsoft sql server feature params

type OracleDatabaseFeature

type OracleDatabaseFeature struct {
	Enabled     bool
	FetcherUser string
	Oratab      string
	AWR         int
	Forcestats  bool
}

OracleDatabaseFeature holds oracle database feature params

type OracleExadataFeature

type OracleExadataFeature struct {
	Enabled     bool
	FetcherUser string
}

OracleExadataFeature holds oracle exadata feature params

type VirtualizationFeature

type VirtualizationFeature struct {
	Enabled     bool
	FetcherUser string
	Hypervisors []Hypervisor
}

VirtualizationFeature holds virtualization feature params

Jump to

Keyboard shortcuts

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