models

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bundle

type Bundle struct {
	Name         string
	Path         string
	Env          map[string]string
	Targets      []*Target
	Dependencies []string
}

func (*Bundle) Target

func (b *Bundle) Target(name string) (*Target, bool)

type DependencyPolicy added in v0.4.0

type DependencyPolicy struct {
	Enabled bool
	Include []string
	Exclude []string
}

type DotenvConfig

type DotenvConfig struct {
	Enabled bool
	Files   []string
}

type EnvironmentBlueprint added in v0.4.0

type EnvironmentBlueprint struct {
	Version          int
	Name             string
	Variables        map[string]string
	Before           []string
	Targets          []EnvironmentTarget
	DependencyPolicy DependencyPolicy
	ReloadPolicy     ReloadPolicy
}

type EnvironmentDependency added in v0.4.0

type EnvironmentDependency struct {
	Name         string
	Image        string
	Env          map[string]string
	Ports        []string
	Volumes      []string
	ReadinessCmd string
}

type EnvironmentTarget added in v0.4.0

type EnvironmentTarget struct {
	Ref    string
	Reload *bool
	Env    map[string]string
}

type FailedTarget

type FailedTarget struct {
	ID       string
	Error    error
	ExitCode int
}

type ReloadPolicy added in v0.4.0

type ReloadPolicy struct {
	Enabled  bool
	Debounce string
}

type ResolvedEnvironment added in v0.4.0

type ResolvedEnvironment struct {
	Name         string
	Variables    map[string]string
	Targets      []EnvironmentTarget
	Dependencies []EnvironmentDependency
	ReloadPolicy ReloadPolicy
}

type Result

type Result struct {
	Executed []string
	Skipped  []string
	Failed   []FailedTarget
	Duration time.Duration
}

type Target

type Target struct {
	Name       string
	BundleName string
	BundlePath string
	In         []string
	Out        []string
	Deps       []string
	Env        map[string]string
	Cmd        string
	Config     TargetConfig
}

func (*Target) ID

func (t *Target) ID() string

type TargetConfig

type TargetConfig struct {
	WorkingDir string
	Dotenv     DotenvConfig
	Reload     bool
	Ignore     []string
	Index      *int
}

Jump to

Keyboard shortcuts

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