Versions in this module Expand all Collapse all v0 v0.1.0 Jun 11, 2024 Changes in this version + var ErrDuplicatePortProtocol = errors.New("port-protocol pair must not be duplicate") + var ErrEmptySelectors = errors.New("selectors must not be empty") + var ErrInvalidPort = errors.New("port must be between 1 and 65535") + var ErrInvalidProtocol = errors.New("protocol must be TCP or UDP") + var ErrInvalidTargetPort = errors.New("targetPort must be between 1 and 65535 if exist") + var RawEnvParser = NewRawEnvParser() + var SecretEnvParser = NewSecretEnvParser() + func MagicEnvVar(k, v string) *corev1.EnvVar + func NewJobGenerator(generator *Generator) (modules.Generator, error) + func NewJobGeneratorFunc(generator *Generator) modules.NewGeneratorFunc + func NewWorkloadGeneratorFunc(g *Generator) modules.NewGeneratorFunc + func NewWorkloadServiceGenerator(request *Generator) (modules.Generator, error) + func NewWorkloadServiceGeneratorFunc(workloadGenerator *Generator) modules.NewGeneratorFunc + type Generator struct + App string + Namespace string + PlatformConfigs map[string]v1.GenericConfig + Project string + SecretStoreSpec *v1.SecretStore + Stack string + Workload *v1.Workload + func (g *Generator) Generate(spec *v1.Spec) error + type MagicEnvParser interface + Gen func(k, v string) *corev1.EnvVar + Match func(k, v string) (matched bool) + func NewRawEnvParser() MagicEnvParser + func NewSecretEnvParser() MagicEnvParser + type ServiceGenerator struct + App string + Config apiv1.GenericConfig + Namespace string + Project string + Service *apiv1.Service + Stack string + func (g *ServiceGenerator) Generate(spec *apiv1.Spec) error