Documentation ¶
Index ¶
- type Configuration
- func (c *Configuration) ListExecutables() []string
- func (c *Configuration) ListFlows() []string
- func (c *Configuration) ListPods() []string
- func (c *Configuration) Print(logger *output.Logger)
- func (c *Configuration) ValidExecutables(execs []string) (bool, string)
- func (c *Configuration) ValidFlows(flows []string) (bool, string)
- func (c *Configuration) ValidPods(pods []string) (bool, string)
- type Executable
- type Executables
- type Flow
- type Flows
- type Pod
- type Pods
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { Execs *Executables Pods *Pods Flows *Flows }
func (*Configuration) ListExecutables ¶
func (c *Configuration) ListExecutables() []string
func (*Configuration) ListFlows ¶
func (c *Configuration) ListFlows() []string
func (*Configuration) ListPods ¶
func (c *Configuration) ListPods() []string
func (*Configuration) Print ¶
func (c *Configuration) Print(logger *output.Logger)
func (*Configuration) ValidExecutables ¶
func (c *Configuration) ValidExecutables(execs []string) (bool, string)
func (*Configuration) ValidFlows ¶
func (c *Configuration) ValidFlows(flows []string) (bool, string)
type Executable ¶
type Executable struct { ID string Shortcut string Description string Cmd string Env map[string]string Watch []string }
Executable configuration.
func NewExecutable ¶
func NewExecutable(f string) (*Executable, error)
NewExecutable attempts to load a configuration.
type Executables ¶
type Executables struct { Commands map[string]*Executable Shortcuts map[string]*Executable }
Executables aggregate Executable configurations.
func NewExecutableConfiguration ¶
func NewExecutableConfiguration(p string) (*Executables, error)
NewExecutableConfiguration loads Executables configuration.
func (*Executables) Get ¶
func (c *Executables) Get(x string) (*Executable, bool)
Get an Executable by ID or shortcut.
type Flow ¶
type Flow struct { ID string Shortcut string Description string Executables []string Pods []string }
Flow is a combination of Executables and Pods
type Flows ¶
Flows aggregate Flow configurations.
func NewFlowConfiguration ¶
NewFlowConfiguration loads Flows configuration.
func (*Flows) GetExecutables ¶
GetExecutables get Executables from a Flow by ID or shortcut.
Click to show internal directories.
Click to hide internal directories.