Documentation
¶
Index ¶
- Variables
- func MagicEnvVar(k, v string) *corev1.EnvVar
- func NewJobGenerator(project *project.Project, stack *stack.Stack, appName string, ...) (modules.Generator, error)
- func NewJobGeneratorFunc(project *project.Project, stack *stack.Stack, appName string, ...) modules.NewGeneratorFunc
- func NewWorkloadGenerator(project *project.Project, stack *stack.Stack, appName string, ...) (modules.Generator, error)
- func NewWorkloadGeneratorFunc(project *project.Project, stack *stack.Stack, appName string, ...) modules.NewGeneratorFunc
- func NewWorkloadServiceGenerator(project *project.Project, stack *stack.Stack, appName string, ...) (modules.Generator, error)
- func NewWorkloadServiceGeneratorFunc(project *project.Project, stack *stack.Stack, appName string, ...) modules.NewGeneratorFunc
- type MagicEnvParser
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SecretEnvParser = NewSecretEnvParser() RawEnvParser = NewRawEnvParser() )
Functions ¶
func MagicEnvVar ¶
MagicEnvVar generates a specialized EnvVar based on the key and value of environment.
Examples:
MagicEnvVar("secret_key", "secret://my_secret/my_key") MagicEnvVar("key", "value")
func NewJobGenerator ¶
func NewJobGeneratorFunc ¶
func NewWorkloadGenerator ¶
func NewWorkloadServiceGenerator ¶
func NewWorkloadServiceGenerator( project *project.Project, stack *stack.Stack, appName string, service *workload.Service, ) (modules.Generator, error)
NewWorkloadServiceGenerator returns a new workloadServiceGenerator instance.
func NewWorkloadServiceGeneratorFunc ¶
func NewWorkloadServiceGeneratorFunc( project *project.Project, stack *stack.Stack, appName string, service *workload.Service, ) modules.NewGeneratorFunc
NewWorkloadServiceGeneratorFunc returns a new NewGeneratorFunc that returns a workloadServiceGenerator instance.
Types ¶
type MagicEnvParser ¶
MagicEnvParser is an interface for environment variable parsers.
func NewRawEnvParser ¶
func NewRawEnvParser() MagicEnvParser
NewRawEnvParser creates a new instance of RawEnvParser.
func NewSecretEnvParser ¶
func NewSecretEnvParser() MagicEnvParser
NewSecretEnvParser creates a new instance of SecretEnvParser.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.