kompose

package
v0.5.22 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrCvrtKomposeCode         = "11075"
	ErrNoVersionCode           = "11077"
	ErrIncompatibleVersionCode = "11078"
)

Variables

This section is empty.

Functions

func Convert

func Convert(dockerCompose []byte) (string, error)

converts a given docker-compose file into kubernetes manifests

func ErrCvrtKompose

func ErrCvrtKompose(err error) error

func ErrIncompatibleVersion added in v0.5.22

func ErrIncompatibleVersion() error

func ErrNoVersion added in v0.5.22

func ErrNoVersion() error

func FormatComposeFile added in v0.5.22

func FormatComposeFile(yamlManifest *[]byte) error

FormatComposeFile takes in a pointer to the compose file byte array and formats it so that it is compatible with `Kompose` it expects a validated docker compose file and does not validate

func IsManifestADockerCompose added in v0.5.15

func IsManifestADockerCompose(yamlManifest []byte) bool

IsManifestADockerCompose takes in a manifest and returns true only when the given manifest is a 'valid' docker compose file

func VaildateDockerComposeFile added in v0.5.22

func VaildateDockerComposeFile(yamlManifest []byte) error

VaildateDockerComposeFile takes in a manifest and returns validates it

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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