compose

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindComposeFile

func FindComposeFile(dir string) (string, error)

FindComposeFile returns the path of the first compose file found in dir.

Types

type Port

type Port struct {
	Host      uint16
	Container uint16
}

Port represents a parsed port mapping from a compose file.

type Project

type Project struct {
	Name     string
	Services []Service
}

Project represents a parsed compose project.

func Parse

func Parse(path string) (Project, error)

Parse reads a compose file and returns a Project.

func ParseBytes

func ParseBytes(data []byte) (Project, error)

ParseBytes parses compose YAML from raw bytes.

type Service

type Service struct {
	Name  string
	Image string
	Ports []Port
}

Service represents a single service parsed from a compose file.

Jump to

Keyboard shortcuts

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