converter

package
v0.0.0-...-48a44ca Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2019 License: Apache-2.0 Imports: 17 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
}

Config holds runtime configuration for converters

type Entry

type Entry struct {
	Key          resource.FullName
	CreationTime time.Time
	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.

Directories

Path Synopsis
nolint: lll Package legacy is a generated protocol buffer package.
nolint: lll Package legacy is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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