core

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2019 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteCommands

func ExecuteCommands(cmds ...*Command) error

func Linker

func Linker(ctx context.Context, in <-chan *ToLink) (<-chan error, error)

func SetVariables

func SetVariables(vars ...*Variable) error

Types

type AbortWalk added in v1.0.2

type AbortWalk error

type Command

type Command struct {
	String      *string
	Description *string
	Commands    []*Command
	*exec.Cmd
}

func (*Command) Execute

func (c *Command) Execute() error

func (*Command) Inspect

func (c *Command) Inspect() error

func (*Command) UnmarshalYAML

func (c *Command) UnmarshalYAML(value *yaml.Node) error

func (*Command) WithString

func (c *Command) WithString(s string) *Command

type Commands

type Commands []*Command

func (*Commands) CollectCommands

func (c *Commands) CollectCommands() ([]*Command, error)

func (*Commands) Inspect

func (c *Commands) Inspect() error

type Config

type Config map[string]*Host

func (*Config) Inspect

func (c *Config) Inspect() error

func (*Config) UnmarshalYAML

func (c *Config) UnmarshalYAML(value *yaml.Node) error

func (*Config) Up

func (c *Config) Up(hostName string) error

type Host

type Host struct {
	Name      string
	Extends   []*Host
	Variables *Variables
	Links     *Links
	Commands  *Commands
}
func (h *Host) CreateLinks() error

func (*Host) ExecuteCommands

func (h *Host) ExecuteCommands() error
func (h *Host) GenLinks(ctx context.Context) (<-chan *ToLink, <-chan error, error)

func (*Host) Inspect

func (h *Host) Inspect() error

func (*Host) SetVariables

func (h *Host) SetVariables() error

func (*Host) UnmarshalYAML

func (h *Host) UnmarshalYAML(value *yaml.Node) error

func (*Host) Up

func (h *Host) Up() error
type Link struct {
	Target string
	Path   string
	Force  bool
	Dirs   bool
}
func (l *Link) GenLinks(ctx context.Context) (<-chan *ToLink, <-chan error, error)

func (*Link) Inspect

func (l *Link) Inspect() error

func (*Link) UnmarshalYAML

func (l *Link) UnmarshalYAML(value *yaml.Node) error
type Links map[string]*Link

func (*Links) Inspect

func (l *Links) Inspect() error

func (*Links) UnmarshalYAML

func (l *Links) UnmarshalYAML(value *yaml.Node) error
type ToLink struct {
	Source string
	Target string
	Force  bool
}
func (t *ToLink) Link() error

type Variable

type Variable struct {
	Name    string
	Value   *string
	Command *Command
}

func (*Variable) Inspect

func (v *Variable) Inspect() error

func (*Variable) Set

func (v *Variable) Set() error

func (*Variable) UnmarshalYAML

func (v *Variable) UnmarshalYAML(value *yaml.Node) error

type VariableStage

type VariableStage map[string]*Variable

func (*VariableStage) GenVariables

func (vs *VariableStage) GenVariables() ([]*Variable, error)

func (*VariableStage) Inspect

func (vs *VariableStage) Inspect() error

func (*VariableStage) Set

func (vs *VariableStage) Set() error

func (*VariableStage) UnmarshalYAML

func (vs *VariableStage) UnmarshalYAML(value *yaml.Node) error

type Variables

type Variables []VariableStage

func (*Variables) GenVariables

func (v *Variables) GenVariables() ([]*Variable, error)

func (*Variables) Inspect

func (v *Variables) Inspect() error

func (*Variables) Set

func (v *Variables) Set() error

Jump to

Keyboard shortcuts

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