config

package
v2.0.21-core Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const KubernetesMaxTimeoutSec = 2 * 60 * 60
View Source
const PiquantDownloadSignedURLExpirySec = 60 * 60

PiquantDownloadSignedURLExpirySec Expiry time in seconds of piquant executable signed S3 links

Variables

This section is empty.

Functions

This section is empty.

Types

type APIConfig

type APIConfig struct {
	AWSBucketRegion     string
	AWSCloudwatchRegion string
	AdminEmails         []string

	Auth0Domain             string
	Auth0ManagementClientID string
	Auth0ManagementSecret   string

	BuildsBucket string // Piquant download bucket
	ConfigBucket string

	CoresPerNode int32

	DataSourceSNSTopic string

	DatasetsBucket string

	DatasourceArtifactsBucket string // Goes away

	EnvironmentName string

	HotQuantNamespace string // Used for faster PIQUANT runs, eg executing a spectral fit

	KubernetesLocation string // "internal" vs "external"

	LogLevel           logger.LogLevel // Can be changed at runtime, but if API restarts, it goes back to configured value
	ManualUploadBucket string

	// Mongo Connection
	MongoEndpoint string
	MongoUsername string
	MongoSecret   string

	PiquantDockerImage string // PIQUANT docker image to use to run a job
	PiquantJobsBucket  string // PIQUANT job scratch drive

	PosterImage             string
	QuantDestinationPackage string

	QuantExecutor  string
	QuantNamespace string // Used for running large multi-node quants

	QuantObjectType string

	SentryEndpoint string

	UsersBucket string

	// Vars not set by environment
	NodeCountOverride int32
	MaxQuantNodes     int32
	KubeConfig        string // Env sets this via command line parameter
}

APIConfig combines env vars and config JSON values

func Init

func Init() (APIConfig, error)

Init config, loads config params

Jump to

Keyboard shortcuts

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