achieve

package
v0.0.0-...-b863ece Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Provider   string
	Name       string
	RawOptions map[string]interface{}
}

Action ...

type ActionProvider

type ActionProvider interface {
	Execute(*Action) error
	Configure(c *ProviderConfig) error
}

type ActionProviderFactory

type ActionProviderFactory func() (ActionProvider, error)

type ActionProviderFunc

type ActionProviderFunc func() ActionProvider

type Config

type Config struct {
	Variables       []*Variable
	Tasks           map[string]*Task
	ProviderConfigs []*ProviderConfig
}

Config ...

func LoadConfig

func LoadConfig(root string) (*Config, error)

LoadConfig reads the file at the path given and parses it and returns a new Config

func (*Config) GetProviderConfig

func (c *Config) GetProviderConfig(name string) (*ProviderConfig, error)

func (*Config) GetTask

func (c *Config) GetTask(name string) (*Task, error)

GetTask checks if a task exist by the given name and then returns or errors

func (*Config) Interpolate

func (c *Config) Interpolate()

type ProviderConfig

type ProviderConfig struct {
	Name      string
	RawConfig map[string]interface{}
}

type Task

type Task struct {
	Actions []*Action
}

Task ...

type Variable

type Variable struct {
	Name    string
	Default string
	Value   string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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