config

package
v0.0.0-...-9ea7be0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 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
	EnvironmentName         string
	LogLevel                logger.LogLevel
	KubernetesLocation      string
	QuantExecutor           string
	NodeCountOverride       int32
	CoresPerNode            int32
	MaxQuantNodes           int32
	QuantNamespace          string
	HotQuantNamespace       string
	ElasticURL              string
	ElasticUser             string
	ElasticPassword         string
	SentryEndpoint          string
	Auth0Domain             string
	Auth0ManagementClientID string
	Auth0ManagementSecret   string
	AdminEmails             []string
	DataSourceSNSTopic      string
	QuantDestinationPackage string
	QuantObjectType         string
	PosterImage             string
	KubeConfig              string
	PiquantDockerImage      string

	// Our buckets
	DatasetsBucket     string
	UsersBucket        string
	ConfigBucket       string
	ManualUploadBucket string
	PiquantJobsBucket  string

	// Old buckets
	BuildsBucket              string // Piquant download bucket
	DatasourceArtifactsBucket string // Goes away

	// Mongo Connection
	MongoEndpoint string
	MongoUsername string
	MongoSecret   string
}

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