env

package
v1.3.22 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: MIT Imports: 0 Imported by: 3

README

System environment variables

The package contains system environment variables - globally defined names that include AIS_ENDPOINT, AIS_AUTHN_TOKEN_FILE, and more.

As such, the env package is, effectively, part of the API: the names defined here are used throughout, both in the Go code and in the scripts. In particular, deployment scripts.

It is important to preserve consistency and reference the same names (without copy-paste duplication, when possible)

  • ais.go: AIS environment
  • authn.go: AuthN environment

See also

Documentation

Overview

Package env contains environment variables

  • Copyright (c) 2018-2023, NVIDIA CORPORATION. All rights reserved.

Package env contains environment variables

  • Copyright (c) 2018-2022, NVIDIA CORPORATION. All rights reserved.

Index

Constants

This section is empty.

Variables

View Source
var (
	AIS = struct {
		Endpoint  string
		IsPrimary string
		PrimaryID string
		UseHTTPS  string
		// TLS: client side
		Certificate   string
		CertKey       string
		ClientCA      string
		SkipVerifyCrt string
		// tests, CI
		NumTarget string
		NumProxy  string
		// K8s
		K8sPod       string
		K8sNode      string
		K8sNamespace string
	}{

		Endpoint:  "AIS_ENDPOINT",
		IsPrimary: "AIS_IS_PRIMARY",
		PrimaryID: "AIS_PRIMARY_ID",

		UseHTTPS: "AIS_USE_HTTPS",

		Certificate: "AIS_CRT",
		CertKey:     "AIS_CRT_KEY",
		ClientCA:    "AIS_CLIENT_CA",

		SkipVerifyCrt: "AIS_SKIP_VERIFY_CRT",

		NumTarget: "NUM_TARGET",
		NumProxy:  "NUM_PROXY",

		K8sPod:       "MY_POD",
		K8sNode:      "MY_NODE",
		K8sNamespace: "K8S_NS",
	}
)
View Source
var (
	AuthN = struct {
		Enabled   string
		URL       string
		TokenFile string
		ConfDir   string
		LogDir    string
		LogLevel  string
		Port      string
		TTL       string
		UseHTTPS  string
	}{
		Enabled:   "AIS_AUTHN_ENABLED",
		URL:       "AIS_AUTHN_URL",
		TokenFile: "AIS_AUTHN_TOKEN_FILE",
		ConfDir:   "AIS_AUTHN_CONF_DIR",
		LogDir:    "AIS_AUTHN_LOG_DIR",
		LogLevel:  "AIS_AUTHN_LOG_LEVEL",
		Port:      "AIS_AUTHN_PORT",
		TTL:       "AIS_AUTHN_TTL",
		UseHTTPS:  "AIS_AUTHN_USE_HTTPS",
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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