convert

package
v1.69.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 16 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

AllFormats contains all available formats.

Functions

func Convert

func Convert(
	inputFilenames []string,
	outputFilename string,
	outputFormat file.Format,
	from Format,
	to Format,
	envVarsMode file.RenderEnvVarsMode,
	diagnosticPolicy utils.DiagnosticPolicy,
) error

Types

type Format

type Format string
const (
	// FormatDistributed represents the Deck configuration format.
	FormatDistributed Format = "distributed"
	// FormatKongGateway represents the Kong gateway format.
	FormatKongGateway Format = "kong-gateway"
	// FormatKonnect represents the Konnect format.
	FormatKonnect Format = "konnect"
	// FormatKongGateway2x represents the Kong gateway 2.x format.
	FormatKongGateway2x Format = "kong-gateway-2.x"
	// FormatKongGateway3x represents the Kong gateway 3.x format.
	FormatKongGateway3x Format = "kong-gateway-3.x"

	// Adding LTS version strings
	FormatKongGatewayVersion28x  Format = "2.8"
	FormatKongGatewayVersion34x  Format = "3.4"
	FormatKongGatewayVersion310x Format = "3.10"
	FormatKongGatewayVersion314x Format = "3.14"
)

func ParseFormat

func ParseFormat(key string) (Format, error)

Jump to

Keyboard shortcuts

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