converter

package
v0.0.0-...-4638b96 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// The cached mesh configuration.
	Mesh meshconfig.Cache
	// Domain suffix to use for service names.
	DomainSuffix string
}

Config holds runtime configuration for converters

type Entry

type Entry struct {
	Key      resource.FullName
	Metadata resource.Metadata
	Resource proto.Message
}

Entry is a single converted entry.

type Fn

type Fn func(cfg *Config, destination resource.Info, name resource.FullName, kind string, u *unstructured.Unstructured) ([]Entry, error)

Fn is a conversion function that converts the given unstructured CRD into the destination Resource.

func Get

func Get(name string) Fn

Get returns the named converter function, or panics if it is not found.

Jump to

Keyboard shortcuts

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