env

package
v0.0.0-...-48565d0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HostVarName     = "VMSTORAGE_HOST"
	PortVarName     = "VMSTORAGE_PORT"
	BucketVarName   = "VM_SNAPSHOT_BUCKET"
	DataPathVarName = "VM_STORAGE_DATA_PATH"
	PodVarName      = "HOSTNAME"
)

Env vars to read

Functions

This section is empty.

Types

type Config

type Config struct {
	// vmstorage host and port
	Host string
	Port uint16

	// S3 bucket name for syncing snapshot
	BucketName string

	// Corresponds to --storageDataPath flag in VictoriaMetrics setup
	DataPath string

	// Pod name of vmstorage component
	PodName string
}

func GetConfig

func GetConfig() (*Config, error)

Jump to

Keyboard shortcuts

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