config

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 20, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Configuration structures for ClusterIQ Agent and AgentServices

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIServerConfig

type APIServerConfig struct {
	ListenURL string `env:"CIQ_API_LISTEN_URL,required"`
	AgentURL  string `env:"CIQ_AGENT_URL,required"`
	DBURL     string `env:"CIQ_DB_URL,required"`
	LogLevel  string `env:"CIQ_LOG_LEVEL,required"`
}

APIServerConfig defines the config parameters for the ClusterIQ API

func LoadAPIServerConfig

func LoadAPIServerConfig() (*APIServerConfig, error)

LoadAPIServerConfig evaluates and return the APIServerConfig Object

type AgentConfig added in v0.4.1

type AgentConfig struct {
	ExecutorAgentServiceConfig
	ScheduleAgentServiceConfig
	InstantAgentServiceConfig
	LogLevel string `env:"CIQ_LOG_LEVEL,required"`
}

AgentConfig defines the config parameters for the ClusterIQ Agent

func LoadAgentConfig added in v0.4.1

func LoadAgentConfig() (*AgentConfig, error)

LoadAgentConfig evaluates and return the AgentConfig object

type CloudCredentialsConfig added in v0.4.1

type CloudCredentialsConfig struct {
	CredentialsFile string `env:"CIQ_CREDS_FILE,required"`
}

CloudCredentialsConfig represents the config parameters for obtaining the Cloud Provier Credentials

type ExecutorAgentServiceConfig added in v0.4.1

type ExecutorAgentServiceConfig struct {
	// APIURL refers to the ClusterIQ API Endpoint
	APIURL string `env:"CIQ_API_URL,required"`
	DBURL  string `env:"CIQ_DB_URL,required"`
	// Credentials for accessing the cloud providers accounts
	Credentials CloudCredentialsConfig
}

ExecutorAgentServiceConfig contains the config parameters for the ExecutorAgentService

type InstantAgentServiceConfig added in v0.4.1

type InstantAgentServiceConfig struct {
	// ListenURL is the gRPC server listening address
	ListenURL string `env:"CIQ_AGENT_INSTANT_SERVICE_LISTEN_URL,required"`
}

InstantAgentServiceConfig contains the config parameters for the InstantAgentService (gRPC)

type ScannerConfig

type ScannerConfig struct {
	CloudCredentialsConfig
	APIURL                   string `env:"CIQ_API_URL,required"`
	SkipNoOpenShiftInstances bool   `env:"CIQ_SKIP_NO_OPENSHIFT_INSTANCES" envDefault:"true"`
}

ScannerConfig defines the config parameters for the ClusterIQ Scanner

func LoadScannerConfig

func LoadScannerConfig() (*ScannerConfig, error)

LoadScannerConfig evaluates and return the ScannerConfig object

type ScheduleAgentServiceConfig added in v0.4.1

type ScheduleAgentServiceConfig struct {
	// APIURL refers to the ClusterIQ API Endpoint
	APIURL string `env:"CIQ_API_URL,required"`
	// PollingInterval defines the amount of time between Schedule refreshes (polling frecuency)
	PollingInterval int `env:"CIQ_AGENT_POLLING_SECONDS_INTERVAL,required"`
}

Jump to

Keyboard shortcuts

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