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 = "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 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.