kompose

package
v0.7.78 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrCvrtKomposeCode               = "meshkit-11229"
	ErrValidateDockerComposeFileCode = "meshkit-11230"
	ErrIncompatibleVersionCode       = "meshkit-11231"
	ErrNoVersionCode                 = "meshkit-11232"
)
View Source
const DefaultDockerComposeSchemaURL = "https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json"

Variables

This section is empty.

Functions

func Convert

func Convert(dockerCompose DockerComposeFile) (string, error)

converts a given docker-compose file into kubernetes manifests expects a validated docker-compose file

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 ErrValidateDockerComposeFile added in v0.5.24

func ErrValidateDockerComposeFile(err error) error

func IsManifestADockerCompose added in v0.5.15

func IsManifestADockerCompose(manifest []byte, schemaURL string) error

Checks whether the given manifest is a valid docker-compose file. schemaURL is assigned a default url if not specified error will be 'nil' if it is a valid docker compose file

Types

type DockerComposeFile added in v0.5.24

type DockerComposeFile []byte

func (*DockerComposeFile) Validate added in v0.5.24

func (dc *DockerComposeFile) Validate(schema []byte) error

Jump to

Keyboard shortcuts

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