project

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IgnoreDependencies = types.IgnoreDependencies
View Source
var IncludeDependents = types.IncludeDependents
View Source
var ProjectLabel = api.ProjectLabel
View Source
var ServiceLabel = api.ServiceLabel
View Source
var WorkingDirLabel = api.WorkingDirLabel

Functions

This section is empty.

Types

type AlternativeVolumes

type AlternativeVolumes []string

type BuildOptions

type BuildOptions = api.BuildOptions

type CreateOptions

type CreateOptions = api.CreateOptions

type DownOptions

type DownOptions = api.DownOptions

type Duration

type Duration = types.Duration

type LogOptions added in v0.1.7

type LogOptions = api.LogOptions

type Networks

type Networks = types.Networks

type Project

type Project struct {
	*types.Project

	Sources     SourceConfigs
	Scenarios   ScenarioConfigs
	LocalMounts map[string]string
	// contains filtered or unexported fields
}

Replacement of composer service with our state keeper. Another extended service (with client inside) will be used.

func New

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

func (*Project) GetLocalMountCandidates

func (p *Project) GetLocalMountCandidates(filter string) []string

func (*Project) GetLocalMounts

func (p *Project) GetLocalMounts(filter string) []string

func (*Project) GetScenarios

func (p *Project) GetScenarios(filter string) []string

func (*Project) Mount

func (p *Project) Mount(ctx context.Context, sourceName, path string) ([]string, error)

func (*Project) Reload

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

func (*Project) SaveState

func (p *Project) SaveState() error

func (*Project) Umount added in v0.1.7

func (p *Project) Umount(ctx context.Context, sourceName string) ([]string, error)

func (*Project) Validate

func (p *Project) Validate() error

func (*Project) WithSelectedServices

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

type PsOptions

type PsOptions = api.PsOptions

type RunOptions

type RunOptions = api.RunOptions

type ScenarioConfig

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

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

type StartOptions

type StartOptions = api.StartOptions

type UpOptions

type UpOptions = api.UpOptions

Jump to

Keyboard shortcuts

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