kompose

package
v0.0.0-...-c8bc4d7 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ErrCvrtKomposeCode               = "11075"
	ErrValidateDockerComposeFileCode = "11084"
	ErrIncompatibleVersionCode       = "11083"
	ErrNoVersionCode                 = "11077"
)
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

func ErrIncompatibleVersion() error

func ErrNoVersion

func ErrNoVersion() error

func ErrValidateDockerComposeFile

func ErrValidateDockerComposeFile(err error) error

func IsManifestADockerCompose

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

type DockerComposeFile []byte

func (*DockerComposeFile) Validate

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