Documentation ¶
Index ¶
- Variables
- func RunChecks(tasks []Task) (pass bool, err error)
- func RunTask(task Task) (err error)
- func RunTasks(tasks []Task) (err error)
- type Brew
- func (b Brew) Down(c *parser.ProjectConfigStruct)
- func (b *Brew) Install(c *parser.ProjectConfigStruct)
- func (n Brew) IsProjectType(c *parser.ProjectConfigStruct) bool
- func (b Brew) PostInstall(c *parser.ProjectConfigStruct)
- func (b Brew) PostScript(c *parser.ProjectConfigStruct)
- func (b *Brew) PreInstall(c *parser.ProjectConfigStruct)
- func (b Brew) PreScript(c *parser.ProjectConfigStruct)
- func (b Brew) Scripts(c *parser.ProjectConfigStruct) map[string]utilities.RunCommand
- func (b *Brew) Setup()
- type Docker
- func (d Docker) Down(c *parser.ProjectConfigStruct)
- func (n Docker) Install(c *parser.ProjectConfigStruct)
- func (n Docker) IsProjectType(c *parser.ProjectConfigStruct) bool
- func (n Docker) PostInstall(c *parser.ProjectConfigStruct)
- func (d Docker) PostScript(c *parser.ProjectConfigStruct)
- func (d Docker) PreInstall(c *parser.ProjectConfigStruct)
- func (d Docker) PreScript(c *parser.ProjectConfigStruct)
- func (d Docker) Scripts(c *parser.ProjectConfigStruct) (scripts map[string]utilities.RunCommand)
- func (d Docker) Setup()
- func (d Docker) String() string
- func (d Docker) UpTasks(config *parser.ProjectConfigStruct) (tasks [][]Task, err error)
- type DockerCompose
- func (d *DockerCompose) Down(c *parser.ProjectConfigStruct)
- func (d *DockerCompose) Install(c *parser.ProjectConfigStruct)
- func (d *DockerCompose) IsProjectType(c *parser.ProjectConfigStruct) bool
- func (d *DockerCompose) PostInstall(c *parser.ProjectConfigStruct)
- func (d *DockerCompose) PostScript(c *parser.ProjectConfigStruct)
- func (d *DockerCompose) PreInstall(c *parser.ProjectConfigStruct)
- func (d *DockerCompose) PreScript(c *parser.ProjectConfigStruct)
- func (d *DockerCompose) Scripts(c *parser.ProjectConfigStruct) map[string]utilities.RunCommand
- func (d DockerCompose) Setup()
- type Golang
- func (g Golang) Check(c *parser.ProjectConfigStruct) bool
- func (g Golang) Down(c *parser.ProjectConfigStruct)
- func (g Golang) Install(c *parser.ProjectConfigStruct)
- func (g Golang) IsProjectType(c *parser.ProjectConfigStruct) bool
- func (g Golang) PostInstall(c *parser.ProjectConfigStruct)
- func (g Golang) PostScript(c *parser.ProjectConfigStruct)
- func (g Golang) PreInstall(c *parser.ProjectConfigStruct)
- func (g Golang) PreScript(c *parser.ProjectConfigStruct)
- func (g Golang) Scripts(c *parser.ProjectConfigStruct) map[string]utilities.RunCommand
- func (g Golang) Setup()
- func (g Golang) String() string
- func (g Golang) Up(c *parser.ProjectConfigStruct)
- type Node
- func (n Node) Down(c *parser.ProjectConfigStruct)
- func (n *Node) Install(c *parser.ProjectConfigStruct)
- func (n Node) IsProjectType(c *parser.ProjectConfigStruct) bool
- func (n Node) PostInstall(c *parser.ProjectConfigStruct)
- func (n Node) PostScript(c *parser.ProjectConfigStruct)
- func (n *Node) PreInstall(c *parser.ProjectConfigStruct)
- func (n Node) PreScript(c *parser.ProjectConfigStruct)
- func (n Node) Scripts(c *parser.ProjectConfigStruct) map[string]utilities.RunCommand
- func (n Node) Setup()
- func (n Node) String() string
- func (n Node) UpTasks(*parser.ProjectConfigStruct) (tasks [][]Task, err error)
- type Plugin
- type Python
- func (n Python) Down(c *parser.ProjectConfigStruct)
- func (n *Python) Install(c *parser.ProjectConfigStruct)
- func (n Python) IsProjectType(c *parser.ProjectConfigStruct) bool
- func (n Python) PostInstall(c *parser.ProjectConfigStruct)
- func (n Python) PostScript(c *parser.ProjectConfigStruct)
- func (p *Python) PreInstall(c *parser.ProjectConfigStruct)
- func (n Python) PreScript(c *parser.ProjectConfigStruct)
- func (n Python) Scripts(c *parser.ProjectConfigStruct) map[string]utilities.RunCommand
- func (p *Python) Setup()
- type Service
- type Task
Constants ¶
This section is empty.
Variables ¶
View Source
var CheckFailedAfterTaskErr = errors.New("Check failed after tasks was executed")
CheckFailedAfterTaskErr is the error that is returned if task is run but check doesnt pass afterwards
View Source
var List = []Plugin{ &Docker{}, &Node{}, }
List is a list of all available plugins
Functions ¶
Types ¶
type Brew ¶
type Brew struct {
// contains filtered or unexported fields
}
Brew plugin struct
func (Brew) Down ¶
func (b Brew) Down(c *parser.ProjectConfigStruct)
func (*Brew) Install ¶
func (b *Brew) Install(c *parser.ProjectConfigStruct)
func (Brew) IsProjectType ¶
func (n Brew) IsProjectType(c *parser.ProjectConfigStruct) bool
func (Brew) PostInstall ¶
func (b Brew) PostInstall(c *parser.ProjectConfigStruct)
func (Brew) PostScript ¶
func (b Brew) PostScript(c *parser.ProjectConfigStruct)
func (*Brew) PreInstall ¶
func (b *Brew) PreInstall(c *parser.ProjectConfigStruct)
func (Brew) PreScript ¶
func (b Brew) PreScript(c *parser.ProjectConfigStruct)
func (Brew) Scripts ¶
func (b Brew) Scripts(c *parser.ProjectConfigStruct) map[string]utilities.RunCommand
type Docker ¶
type Docker struct{}
Docker plugin struct
func (Docker) Down ¶
func (d Docker) Down(c *parser.ProjectConfigStruct)
func (Docker) Install ¶
func (n Docker) Install(c *parser.ProjectConfigStruct)
func (Docker) IsProjectType ¶
func (n Docker) IsProjectType(c *parser.ProjectConfigStruct) bool
func (Docker) PostInstall ¶
func (n Docker) PostInstall(c *parser.ProjectConfigStruct)
func (Docker) PostScript ¶
func (d Docker) PostScript(c *parser.ProjectConfigStruct)
func (Docker) PreInstall ¶
func (d Docker) PreInstall(c *parser.ProjectConfigStruct)
func (Docker) PreScript ¶
func (d Docker) PreScript(c *parser.ProjectConfigStruct)
func (Docker) Scripts ¶
func (d Docker) Scripts(c *parser.ProjectConfigStruct) (scripts map[string]utilities.RunCommand)
type DockerCompose ¶
type DockerCompose struct { }
func (*DockerCompose) Down ¶
func (d *DockerCompose) Down(c *parser.ProjectConfigStruct)
func (*DockerCompose) Install ¶
func (d *DockerCompose) Install(c *parser.ProjectConfigStruct)
func (*DockerCompose) IsProjectType ¶
func (d *DockerCompose) IsProjectType(c *parser.ProjectConfigStruct) bool
func (*DockerCompose) PostInstall ¶
func (d *DockerCompose) PostInstall(c *parser.ProjectConfigStruct)
func (*DockerCompose) PostScript ¶
func (d *DockerCompose) PostScript(c *parser.ProjectConfigStruct)
func (*DockerCompose) PreInstall ¶
func (d *DockerCompose) PreInstall(c *parser.ProjectConfigStruct)
func (*DockerCompose) PreScript ¶
func (d *DockerCompose) PreScript(c *parser.ProjectConfigStruct)
func (*DockerCompose) Scripts ¶
func (d *DockerCompose) Scripts(c *parser.ProjectConfigStruct) map[string]utilities.RunCommand
func (DockerCompose) Setup ¶
func (d DockerCompose) Setup()
type Golang ¶
type Golang struct { }
func (Golang) Down ¶
func (g Golang) Down(c *parser.ProjectConfigStruct)
func (Golang) Install ¶
func (g Golang) Install(c *parser.ProjectConfigStruct)
func (Golang) IsProjectType ¶
func (g Golang) IsProjectType(c *parser.ProjectConfigStruct) bool
func (Golang) PostInstall ¶
func (g Golang) PostInstall(c *parser.ProjectConfigStruct)
func (Golang) PostScript ¶
func (g Golang) PostScript(c *parser.ProjectConfigStruct)
func (Golang) PreInstall ¶
func (g Golang) PreInstall(c *parser.ProjectConfigStruct)
func (Golang) PreScript ¶
func (g Golang) PreScript(c *parser.ProjectConfigStruct)
func (Golang) Scripts ¶
func (g Golang) Scripts(c *parser.ProjectConfigStruct) map[string]utilities.RunCommand
func (Golang) Up ¶
func (g Golang) Up(c *parser.ProjectConfigStruct)
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (Node) Down ¶
func (n Node) Down(c *parser.ProjectConfigStruct)
func (*Node) Install ¶
func (n *Node) Install(c *parser.ProjectConfigStruct)
func (Node) IsProjectType ¶
func (n Node) IsProjectType(c *parser.ProjectConfigStruct) bool
func (Node) PostInstall ¶
func (n Node) PostInstall(c *parser.ProjectConfigStruct)
func (Node) PostScript ¶
func (n Node) PostScript(c *parser.ProjectConfigStruct)
func (*Node) PreInstall ¶
func (n *Node) PreInstall(c *parser.ProjectConfigStruct)
func (Node) PreScript ¶
func (n Node) PreScript(c *parser.ProjectConfigStruct)
func (Node) Scripts ¶
func (n Node) Scripts(c *parser.ProjectConfigStruct) map[string]utilities.RunCommand
type Plugin ¶
type Plugin interface { // implement stringer interface String() string // Runs on devctl install or upgrade Setup() // Tasks initializes tasks required during the up stage. // The tasks returned by Tasks will be run in order // Note: tasks are not passed ProjectConfig as such need to be initialized with required values UpTasks(*parser.ProjectConfigStruct) (tasks [][]Task, err error) PreInstall(*parser.ProjectConfigStruct) Install(*parser.ProjectConfigStruct) PostInstall(*parser.ProjectConfigStruct) PreScript(*parser.ProjectConfigStruct) Scripts(c *parser.ProjectConfigStruct) map[string]utilities.RunCommand PostScript(*parser.ProjectConfigStruct) Down(*parser.ProjectConfigStruct) // Returns true if plugin applies to the current plugin IsProjectType(*parser.ProjectConfigStruct) bool }
Plugin interfaceUse
func Used ¶
func Used(c *parser.ProjectConfigStruct) []Plugin
Used calls IsProjectType on each element on the PluginList array and returns a filtered version
type Python ¶
type Python struct {
// contains filtered or unexported fields
}
func (Python) Down ¶
func (n Python) Down(c *parser.ProjectConfigStruct)
func (*Python) Install ¶
func (n *Python) Install(c *parser.ProjectConfigStruct)
func (Python) IsProjectType ¶
func (n Python) IsProjectType(c *parser.ProjectConfigStruct) bool
func (Python) PostInstall ¶
func (n Python) PostInstall(c *parser.ProjectConfigStruct)
func (Python) PostScript ¶
func (n Python) PostScript(c *parser.ProjectConfigStruct)
func (*Python) PreInstall ¶
func (p *Python) PreInstall(c *parser.ProjectConfigStruct)
func (Python) PreScript ¶
func (n Python) PreScript(c *parser.ProjectConfigStruct)
func (Python) Scripts ¶
func (n Python) Scripts(c *parser.ProjectConfigStruct) map[string]utilities.RunCommand
Click to show internal directories.
Click to hide internal directories.