Documentation ¶
Index ¶
- Constants
- func Convert(dockerCompose DockerComposeFile) (string, error)
- func ErrCvrtKompose(err error) error
- func ErrIncompatibleVersion() error
- func ErrNoVersion() error
- func ErrValidateDockerComposeFile(err error) error
- func IsManifestADockerCompose(manifest []byte, schemaURL string) error
- type DockerComposeFile
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 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 IsManifestADockerCompose ¶ added in v0.5.15
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
Click to show internal directories.
Click to hide internal directories.