compose

package
v0.0.0-...-3cdc9e2 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2025 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Condition

type Condition uint8
const (
	ConditionUnknown Condition = iota
	ConditionServiceStarted
	ConditionServiceHealthy
	ConditionServiceCompletedSuccessfully
)

type File

type File struct {
	Services map[string]Service
	Volumes  []string
}

func Parse

func Parse(r io.Reader) (File, error)

func ParseFile

func ParseFile(path string) (_ File, errs error)

func (*File) UnmarshalYAML

func (s *File) UnmarshalYAML(unmarshal func(any) error) error

type Service

type Service struct {
	VolumeMounts        []VolumeMount
	ServiceDependencies []ServiceDependency
	Labels              map[string]string
}

func (*Service) UnmarshalYAML

func (s *Service) UnmarshalYAML(unmarshal func(any) error) error

type ServiceDependency

type ServiceDependency struct {
	On        string
	Condition Condition
}

type VolumeMount

type VolumeMount struct {
	Type     VolumeMountType
	Source   string
	Target   string
	ReadOnly bool
}

type VolumeMountType

type VolumeMountType uint8
const (
	VolumeTypeUnknown VolumeMountType = iota
	VolumeTypeBind
	VolumeTypeVolume
	VolumeTypeTmpfs
)

Jump to

Keyboard shortcuts

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