configs

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultEssAgentConfigDir = "/config/ess-agent"
	// EssTokenFileName is the filename the ESS agent writes the assertion JWT to.
	EssTokenFileName             = "jwt.token"
	DefaultSecretsFilePath       = "/var/secrets/secrets.json"
	DefaultHealthPort            = 8080
	DefaultPollProgressInterval  = 5 * time.Second
	DefaultProgressUpdateTimeout = 5 * time.Minute
	DefaultTaskReadyTimeout      = 2 * time.Hour
	MaxTerminationPeriod         = 30 * time.Second
	NgcBaseUrl                   = "https://api.ngc.nvidia.com"
	NgcBaseUrlStg                = "https://api.stg.ngc.nvidia.com"
	DefaultSharedConfigDir       = "/config/shared"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	NVCTWorkerToken          string                       `mapstructure:"NVCT_WORKER_TOKEN"`
	NVCTFqdn                 string                       `mapstructure:"NVCT_FQDN"`
	NVCTFqdnGrpc             string                       `mapstructure:"NVCT_FQDN_GRPC"`
	OTELExporterOTLPEndpoint string                       `mapstructure:"OTEL_EXPORTER_OTLP_ENDPOINT"`
	TaskTags                 []string                     `mapstructure:"TASK_TAGS"`
	TaskId                   string                       `mapstructure:"TASK_ID"`
	TaskName                 string                       `mapstructure:"TASK_NAME"`
	TracingAccessToken       string                       `mapstructure:"TRACING_ACCESS_TOKEN"`
	InstanceId               string                       `mapstructure:"INSTANCE_ID"`
	InstanceType             string                       `mapstructure:"INSTANCE_TYPE"`
	InstanceTypeName         string                       `mapstructure:"INSTANCE_TYPE_NAME"`
	HealthPort               int                          `mapstructure:"HEALTH_PORT"`
	ResultsDir               string                       `mapstructure:"NVCT_RESULTS_DIR"`
	ResultsLocation          string                       `mapstructure:"RESULTS_LOCATION"`
	MaxRunTime               string                       `mapstructure:"NVCT_MAX_RUN_TIME_DURATION"`
	TerminationGracePeriod   string                       `mapstructure:"TERMINATION_GRACE_PERIOD"`
	ResultHandlingStrategy   types.ResultHandlingStrategy `mapstructure:"NVCT_RESULT_HANDLING_STRATEGY"`
	ProgressFilePath         string                       `mapstructure:"NVCT_PROGRESS_FILE_PATH"`
	EssAgentConfigDir        string                       `mapstructure:"ESS_AGENT_CONFIG_DIR"`
	SecretsAssertionToken    string                       `mapstructure:"SECRETS_ASSERTION_TOKEN"`
	NcaId                    string                       `mapstructure:"NCA_ID"`
	BillingNcaId             string                       `mapstructure:"BILLING_NCA_ID"`
	AccountName              string                       `mapstructure:"ACCOUNT_NAME"`
	CloudProvider            string                       `mapstructure:"CLOUD_PROVIDER"`
	CloudPlatform            string                       `mapstructure:"CLOUD_PLATFORM"`
	// SpotEnvironment is deprecated: use ICMSEnvironment (or set ICMS_ENVIRONMENT). If unset, ICMSEnvironment is set from this in setup.
	SpotEnvironment                string        `mapstructure:"SPOT_ENVIRONMENT"`
	ICMSEnvironment                string        `mapstructure:"ICMS_ENVIRONMENT"`
	ZoneName                       string        `mapstructure:"ZONE_NAME"`
	GpuType                        string        `mapstructure:"GPU_NAME"`
	GpuCount                       int           `mapstructure:"ATTACHED_GPU_COUNT"`
	InfraMeteringHeartbeatInterval time.Duration `mapstructure:"INFRA_METERING_HEARTBEAT_INTERVAL_SECS"`
	PollProgress                   bool          `mapstructure:"POLL_PROGRESS"`
	PollProgressInterval           time.Duration `mapstructure:"POLL_PROGRESS_INTERVAL"`
	ProgressUpdateTimeout          time.Duration `mapstructure:"PROGRESS_UPDATE_TIMEOUT"`
	SharedConfigDir                string        `mapstructure:"SHARED_CONFIG_DIR"`
	TaskReadyTimeout               time.Duration `mapstructure:"TASK_READY_TIMEOUT"`
}

Jump to

Keyboard shortcuts

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