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.
Click to show internal directories.
Click to hide internal directories.