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 ¶
func ErrIncompatibleVersion() error
func ErrNoVersion ¶
func ErrNoVersion() error
func IsManifestADockerCompose ¶
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
Click to show internal directories.
Click to hide internal directories.