conversion

package
v0.0.0-...-5a6645a Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FailedToListGatewayResourcesError = func(err error, version, namespace string) error {
		return errors.Wrapf(err, "Failed to list %v gateway resources in %v", version, namespace)
	}

	FailedToReadExistingGatewayError = func(err error, version, namespace, name string) error {
		return errors.Wrapf(err, "Failed to read %v gateway %v.%v", version, namespace, name)
	}

	FailedToWriteGatewayError = func(err error, version, namespace, name string) error {
		return errors.Wrapf(err, "Failed to write %v gateway %v.%v", version, namespace, name)
	}
)

Functions

func NewResourceConverter

func NewResourceConverter(
	namespace string,
	v1GatewayClient gatewayv1.GatewayClient,
	v2GatewayClient gatewayv2.GatewayClient,
	gatewayConverter GatewayConverter,
) *resourceConverter

Types

type GatewayConverter

type GatewayConverter interface {
	FromV1ToV2(src *gatewayv1.Gateway) *gatewayv2.Gateway
}

func NewGatewayConverter

func NewGatewayConverter() GatewayConverter

type ResourceConverter

type ResourceConverter interface {
	ConvertAll(ctx context.Context) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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