compose

package
v0.7.1-49-ga17d1b5 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package compose provides primitives for running Unikraft applications via the Compose specification.

Index

Constants

This section is empty.

Variables

View Source
var DefaultFileNames = []string{
	"docker-compose.yml",
	"docker-compose.yaml",
	"compose.yml",
	"compose.yaml",
	"Composefile",
}

DefaultFileNames is a list of default compose file names to look for

Functions

This section is empty.

Types

type Project

type Project struct {
	*types.Project `json:"project"` // The underlying compose-go project
}

func NewProjectFromComposeFile

func NewProjectFromComposeFile(ctx context.Context, composeFile string) (*Project, error)

NewProjectFromComposeFile loads a compose file and returns a project. If no compose file is specified, it will look for one in the current directory.

func (*Project) Validate

func (project *Project) Validate(ctx context.Context) error

Validate performs some early checks on the project to ensure it is valid, as well as fill in some unspecified fields.

Jump to

Keyboard shortcuts

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