project

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 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 BuildOptions

type BuildOptions = api.BuildOptions

type CertConfig added in v0.1.9

type CertConfig struct {
	Domains  []string `yaml:"domains"`
	KeyFile  string   `yaml:"keyFile"`
	CertFile string   `yaml:"certFile"`
}

type CreateOptions

type CreateOptions = api.CreateOptions

type DownOptions

type DownOptions = api.DownOptions

type Duration

type Duration = types.Duration

type HostConfig added in v0.1.9

type HostConfig struct {
	IP    string   `yaml:"ip"`
	Hosts []string `yaml:"hosts"`
}

type HostConfigs added in v0.1.9

type HostConfigs []HostConfig

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
	HostEntities []string // IP hostname1 [hostname2] [hostname3] ...
	CertConfig   CertConfig

	LocalMounts map[string]string // some service's full mount path -> local path
	HasHosts    bool
	// 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) GetScenarios

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

func (*Project) Mount

func (p *Project) Mount(ctx context.Context, sources []string, path 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, sources []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