versiontranslator

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package versiontranslator routes a gateway-latest-shaped deployment artifact to the sub-package that knows how to produce the shape a given target gateway data version expects. It holds no transform logic itself — that lives in the target-specific sub-package (e.g. v1alpha1), which is self-contained: its own apiVersion swap, its own per-kind shape handlers.

Adding support for a new target data version is a new sibling package plus one case in DownConvert — existing kinds and their shape handlers are untouched.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownConvert

func DownConvert(kind string, targetDataVersion string, artifact any) error

DownConvert produces, in place, the shape targetDataVersion expects for artifact (already in gateway-latest shape).

func KnownKinds

func KnownKinds() []string

KnownKinds returns the artifact kinds this translator is aware of.

Types

This section is empty.

Directories

Path Synopsis
Package v1alpha1 produces deployment artifacts for gateways older than gatewaytranslator.MinGatewayV1Version — gateways whose CRD apiVersion is "gateway.api-platform.wso2.com/v1alpha1".
Package v1alpha1 produces deployment artifacts for gateways older than gatewaytranslator.MinGatewayV1Version — gateways whose CRD apiVersion is "gateway.api-platform.wso2.com/v1alpha1".

Jump to

Keyboard shortcuts

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