provision: github.com/digitalrebar/provision/plugin Index | Files | Directories

package plugin

import "github.com/digitalrebar/provision/plugin"

Index

Package Files

plugin.go

Variables

var (
    App = &cobra.Command{
        Use:   "replaceme",
        Short: "Replace ME!",
    }
)

func InitApp Uses

func InitApp(use, short, version string, def *models.PluginProvider, pc PluginConfig)

func Leaving Uses

func Leaving(e *models.Error)

func Publish Uses

func Publish(t, a, k string, o interface{})

func Run Uses

func Run(toPath, fromPath string, pc PluginConfig) error

type PluginActor Uses

type PluginActor interface {
    Action(logger.Logger, *models.Action) (interface{}, *models.Error)
}

type PluginConfig Uses

type PluginConfig interface {
    Config(logger.Logger, *api.Client, map[string]interface{}) *models.Error
}

type PluginPublisher Uses

type PluginPublisher interface {
    Publish(logger.Logger, *models.Event) *models.Error
}

type PluginStop Uses

type PluginStop interface {
    Stop(logger.Logger)
}

type PluginUnpacker Uses

type PluginUnpacker interface {
    Unpack(logger.Logger, string) error
}

type PluginValidator Uses

type PluginValidator interface {
    Validate(logger.Logger, *api.Client) (interface{}, *models.Error)
}

Directories

PathSynopsis
mux

Package plugin imports 14 packages (graph). Updated 2018-04-23. Refresh now. Tools for package owners.