composer

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IgnoreDependencies = types.IgnoreDependencies
View Source
var IncludeDependents = types.IncludeDependents

Functions

This section is empty.

Types

type AlternativeVolumes added in v0.1.3

type AlternativeVolumes []string

type Duration added in v0.1.3

type Duration = types.Duration

type Networks added in v0.1.3

type Networks = types.Networks

type Project added in v0.1.3

type Project struct {
	*types.Project

	Sources   SourceConfigs
	Scenarios ScenarioConfigs
	// contains filtered or unexported fields
}

func New added in v0.1.3

func New(ctx context.Context, projectPath, name string) (*Project, error)

func (*Project) Build added in v0.1.4

func (p *Project) Build(ctx context.Context, services []string) error

func (*Project) Down added in v0.1.4

func (p *Project) Down(ctx context.Context, deleteVolumes bool) error

func (*Project) IsRunning added in v0.1.4

func (p *Project) IsRunning(ctx context.Context) (bool, error)

func (*Project) ListServices added in v0.1.4

func (p *Project) ListServices(ctx context.Context) ([]serviceInfo, error)

func (*Project) Run added in v0.1.5

func (p *Project) Run(ctx context.Context, command string, args []string) error

func (*Project) Up added in v0.1.4

func (p *Project) Up(ctx context.Context) error

func (*Project) Validate added in v0.1.4

func (p *Project) Validate() error

func (*Project) WithSelectedServices added in v0.1.3

func (p *Project) WithSelectedServices(names []string, options ...types.DependencyOption) (*Project, error)

type ScenarioConfig added in v0.1.5

type ScenarioConfig struct {
	Service     string   `yaml:"service"`
	Description string   `yaml:"description"`
	Command     []string `yaml:"command"`
	Entrypoint  []string `yaml:"entrypoint"`
	Tty         *bool    `yaml:"tty"`        // default: true
	Interactive *bool    `yaml:"stdin_open"` // default: true
	WorkingDir  string   `yaml:"working_dir"`
	User        string   `yaml:"user"`
}

type ScenarioConfigs added in v0.1.5

type ScenarioConfigs map[string]ScenarioConfig

type SourceConfig

type SourceConfig struct {
	URL            string   `yaml:"url"`
	Branch         string   `yaml:"branch"`
	SparseCheckout []string `yaml:"sparseCheckout"`
	Environment    []string `yaml:"environment"`
}

type SourceConfigs

type SourceConfigs map[string]SourceConfig

Jump to

Keyboard shortcuts

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