config

package
v0.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator interface {
	// Generate generates NGINX configuration from internal representation.
	Generate(configuration state.Configuration) ([]byte, Warnings)
}

Generator generates NGINX configuration.

type GeneratorImpl

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

GeneratorImpl is an implementation of Generator

func NewGeneratorImpl

func NewGeneratorImpl(serviceStore state.ServiceStore) *GeneratorImpl

NewGeneratorImpl creates a new GeneratorImpl.

func (*GeneratorImpl) Generate

func (g *GeneratorImpl) Generate(conf state.Configuration) ([]byte, Warnings)

type Warnings

type Warnings map[client.Object][]string

Warnings stores a list of warnings for a given object.

func (Warnings) Add

func (w Warnings) Add(warnings Warnings)

Add adds new Warnings to the map. Warnings for the same object are merged.

func (Warnings) AddWarning

func (w Warnings) AddWarning(obj client.Object, msg string)

AddWarning adds a warning for the specified object.

func (Warnings) AddWarningf

func (w Warnings) AddWarningf(obj client.Object, msgFmt string, args ...interface{})

AddWarningf adds a warning for the specified object using the provided format and arguments.

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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