config

package
v0.16.3 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIOptions

type APIOptions struct {
	RailsEnvironment        pod.EnvVarValue `env:"RAILS_ENV"`
	RailsLogLevel           pod.EnvVarValue `env:"RAILS_LOG_LEVEL"`
	RailsLogToStdOut        pod.EnvVarValue `env:"RAILS_LOG_TO_STDOUT"`
	RailsMaxThreads         pod.EnvVarValue `env:"RAILS_MAX_THREADS"`
	DatabaseURL             pod.EnvVarValue `env:"DATABASE_URL" secret:"zync"`
	SecretKeyBase           pod.EnvVarValue `env:"SECRET_KEY_BASE" secret:"zync"`
	ZyncAuthenticationToken pod.EnvVarValue `env:"ZYNC_AUTHENTICATION_TOKEN" secret:"zync"`
	BugsnagAPIKey           pod.EnvVarValue `env:"BUGSNAG_API_KEY" secret:"zync"`
}

APIOptions holds configuration for the api pods

func NewAPIOptions

func NewAPIOptions(spec saasv1alpha1.ZyncSpec) APIOptions

NewAPIOptions returns an Options struct for the given saasv1alpha1.ZyncSpec

type QueOptions

type QueOptions struct {
	RailsEnvironment        pod.EnvVarValue `env:"RAILS_ENV"`
	RailsLogLevel           pod.EnvVarValue `env:"RAILS_LOG_LEVEL"`
	RailsLogToStdOut        pod.EnvVarValue `env:"RAILS_LOG_TO_STDOUT"`
	DatabaseURL             pod.EnvVarValue `env:"DATABASE_URL" secret:"zync"`
	SecretKeyBase           pod.EnvVarValue `env:"SECRET_KEY_BASE" secret:"zync"`
	ZyncAuthenticationToken pod.EnvVarValue `env:"ZYNC_AUTHENTICATION_TOKEN" secret:"zync"`
	BugsnagAPIKey           pod.EnvVarValue `env:"BUGSNAG_API_KEY" secret:"zync"`
}

QueOptions holds configuration for the que pods

func NewQueOptions

func NewQueOptions(spec saasv1alpha1.ZyncSpec) QueOptions

NewQueOptions returns an Options struct for the given saasv1alpha1.ZyncSpec

Jump to

Keyboard shortcuts

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