env

package
v2.11.0-beta0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Config                       = Var("CL_CONFIG")
	DatabaseAllowSimplePasswords = Var("CL_DATABASE_ALLOW_SIMPLE_PASSWORDS")
	DatabaseURL                  = Secret("CL_DATABASE_URL")
	DatabaseBackupURL            = Secret("CL_DATABASE_BACKUP_URL")
	PasswordKeystore             = Secret("CL_PASSWORD_KEYSTORE")
	PasswordVRF                  = Secret("CL_PASSWORD_VRF")
	PyroscopeAuthToken           = Secret("CL_PYROSCOPE_AUTH_TOKEN")
	PrometheusAuthToken          = Secret("CL_PROMETHEUS_AUTH_TOKEN")
	ThresholdKeyShare            = Secret("CL_THRESHOLD_KEY_SHARE")
	// Migrations env vars
	EVMChainIDNotNullMigration0195 = "CL_EVM_CHAINID_NOT_NULL_MIGRATION_0195"
)
View Source
var (
	MedianPlugin   = NewPlugin("median")
	MercuryPlugin  = NewPlugin("mercury")
	SolanaPlugin   = NewPlugin("solana")
	StarknetPlugin = NewPlugin("starknet")
	// PrometheusDiscoveryHostName is the externally accessible hostname
	// published by the node in the `/discovery` endpoint. Generally, it is expected to match
	// the public hostname of node.
	// Cluster step up like kubernetes may need to set this explicitly to ensure
	// that Prometheus can discovery LOOPps.
	// In house we observed that the resolved value of os.Hostname was not accessible to
	// outside of the given pod
	PrometheusDiscoveryHostName = Var("CL_PROMETHEUS_DISCOVERY_HOSTNAME")
	// LOOPPHostName is the hostname used for HTTP communication between the
	// node and LOOPps. In most cases this does not need to be set explicitly.
	LOOPPHostName = Var("CL_LOOPP_HOSTNAME")
	// Work around for Solana LOOPPs configured with zero values.
	MinOCR2MaxDurationQuery = Var("CL_MIN_OCR2_MAX_DURATION_QUERY")
	// PipelineOvertime is an undocumented escape hatch for overriding the default padding in pipeline executions.
	PipelineOvertime = Var("CL_PIPELINE_OVERTIME")
)

LOOPP commands and vars

Functions

This section is empty.

Types

type Plugin added in v2.9.0

type Plugin struct {
	Cmd Var
	Env Var
}

func NewPlugin added in v2.9.0

func NewPlugin(kind string) Plugin

type Secret

type Secret string

func (Secret) Get

func (e Secret) Get() models.Secret

type Var

type Var string

func (Var) Get

func (e Var) Get() string

func (Var) IsTrue

func (e Var) IsTrue() bool

func (Var) Lookup

func (e Var) Lookup() (string, bool)

Lookup wraps os.LookupEnv

Jump to

Keyboard shortcuts

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