compose

package
v0.8.3-75-g6a9c42eb Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: BSD-3-Clause Imports: 20 Imported by: 0

Documentation

Overview

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

SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2024, Unikraft GmbH and The KraftKit Authors. Licensed under the BSD-3-Clause License (the "License"). You may not use this file except in compliance with the License.

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

func NewComposeProjectV1 added in v0.7.4

func NewComposeProjectV1(ctx context.Context, opts ...any) (composev1.ComposeService, error)

Types

type Project

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

func NewProjectFromComposeFile

func NewProjectFromComposeFile(ctx context.Context, workdir, 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) AssignIPs added in v0.7.11

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

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