factory

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvoyDynamicConfigClass

type EnvoyDynamicConfigClass struct {
	Function func(name string, opts interface{}) (envoy.Resource, error)
	Produces envoy.Resource
}

EnvoyDynamicConfigClass contains properties to generate specific types of Envoy dynamic configurations

func RegisterTemplate

func RegisterTemplate(f func(name string, opts interface{}) (envoy.Resource, error), p envoy.Resource) *EnvoyDynamicConfigClass

type EnvoyDynamicConfigFactory

type EnvoyDynamicConfigFactory map[string]*EnvoyDynamicConfigClass

EnvoyDynamicConfigFactory has methods to produce different types of Envoy dynamic resources

func Default

func Default() EnvoyDynamicConfigFactory

func (EnvoyDynamicConfigFactory) GetClass

GetClass translates from the external saas-operator API to the internal EnvoyDynamicConfigClass that can generate the envoy dynamic resource described by the external API

func (EnvoyDynamicConfigFactory) NewResource

Jump to

Keyboard shortcuts

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