env

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: May 14, 2020 License: MIT Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DaemonCommitHash = os.Getenv(daemonCommitHashEnv)

DaemonCommitHash is the hash of the idv dataset commit to use

View Source
var DaemonDataset = os.Getenv(daemonDatasetEnv)

DaemonDataset is the idv dataset to use

View Source
var DaemonURL = os.Getenv(daemonURLEnv)

DaemonURL is the URL at which to reach the idv daemon

View Source
var DataVolumePath = os.Getenv(dataVolumePathEnv)

DataVolumePath is the path to the shared volume within this pod

View Source
var MQBrokerURL = os.Getenv(mqBrokerURLEnv)

MQBrokerURL is the url at which we can reach the message queueing system

View Source
var MQInputQueue = os.Getenv(mqInputQueueEnv)

MQInputQueue is the queue from which we pull the remote fragment descriptions

View Source
var MQOutputQueue = os.Getenv(mqOutputQueueEnv)

MQOutputQueue is the queue into which we push the remote fragment descriptions

View Source
var ManagerURL = os.Getenv(managerURLEnv)

ManagerURL is the url at which we can reach this pipeline's manager

View Source
var MinioAccessKey = os.Getenv(minioAccessKeyEnv)

MinioAccessKey is the access key for minio

View Source
var MinioSecretKey = os.Getenv(minioSecretKeyEnv)

MinioSecretKey is the secret access key for minio

View Source
var MinioTargetBucket = os.Getenv(minioTargetBucketEnv)

MinioTargetBucket is the bucket to which storage should go

View Source
var MinioURL = os.Getenv(minioURLEnv)

MinioURL is the url at which the minio client can be reached

View Source
var MinioUseSSL = os.Getenv(minioUseSSLEnv)

MinioUseSSL is a string val denoting whether minio client uses SSL

View Source
var PipelineHash = os.Getenv(pipelineHashEnv)

PipelineHash is the hash associated with this pipeline run

View Source
var ProcessConfig = os.Getenv(configEnv)

ProcessConfig contains a stringified JSON object containing config for the target (allowed to be empty)

View Source
var ProcessName = os.Getenv(nameEnv)

ProcessName is the name (user defined) for this transformation step/fragmenter/etc

Functions

func VerifyDaemonEnvs

func VerifyDaemonEnvs() error

VerifyDaemonEnvs checks whether each of the environment variables returned a non-empty value

func VerifyIterumEnvs

func VerifyIterumEnvs() error

VerifyIterumEnvs checks whether each of the environment variables returned a non-empty value

func VerifyMessageQueueEnvs

func VerifyMessageQueueEnvs() error

VerifyMessageQueueEnvs checks whether each of the environment variables returned a non-empty value

func VerifyMinioEnvs

func VerifyMinioEnvs() error

VerifyMinioEnvs checks whether each of the environment variables returned a non-empty value

Types

type EnvironmentError

type EnvironmentError struct {
	Variable string
	Value    string
}

EnvironmentError is raised when an environment variable that is verified turns up empty

func ErrEnvironment

func ErrEnvironment(variable, value string) *EnvironmentError

ErrEnvironment is used to raise a EnvironmentError

func (*EnvironmentError) Error

func (err *EnvironmentError) Error() string

func (*EnvironmentError) Unwrap

func (err *EnvironmentError) Unwrap() error

Jump to

Keyboard shortcuts

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