convert

package
v1.37.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

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,
	mockEnvVars bool,
) 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"
)

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