env

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Endpoint           = "ENDPOINT"
	RuntimePort        = "RUNTIME_PORT"
	RuntimeUrl         = "RUNTIME_URL"
	RuntimeMetricsPath = "RUNTIME_METRICS_PATH"
	HfEndpoint         = "HF_ENDPOINT"
)

Package env provides constants for environment variables used in the model controller.

Variables

This section is empty.

Functions

func GetEnvValueOrDefault

func GetEnvValueOrDefault[T any](backend *registry.ModelBackend, name string, defaultValue T) T

GetEnvValueOrDefault gets value of specific env, if env does not exist, return default value Supports conversion to string, int, []corev1.EnvVar, etc.

Types

This section is empty.

Jump to

Keyboard shortcuts

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