generator

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound asserts notFoundError.

Types

type Config

type Config struct {
	Fs               Filesystem
	DecryptTraverser DecryptTraverser

	Installation string
	Verbose      bool
}

type DecryptTraverser

type DecryptTraverser interface {
	Traverse(context.Context, []byte) ([]byte, error)
}

type Filesystem

type Filesystem interface {
	ReadFile(string) ([]byte, error)
	ReadDir(string) ([]fs.DirEntry, error)
}

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

func New

func New(config Config) (*Generator, error)

func (Generator) GenerateConfig

func (g Generator) GenerateConfig(ctx context.Context, app string, meta metav1.ObjectMeta) (*corev1.ConfigMap, *corev1.Secret, error)

GenerateConfig generates ConfigMap and Secret for a given App. The generated CM and Secret metadata are configured with the provided value.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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