plugins

package
v0.0.0-...-19f8562 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2015 License: Apache-2.0 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 {
	Dest              string           `json:"dest"`
	Play              string           `json:"play"`
	Inventory         string           `json:"inventory"`
	PythonInterpreter string           `json:"ansible_python_interpreter,omitempty"`
	Repository        *Repository      `json:"repository,omitempty"`
	Files             []*Customization `json:"files,omitempty"`
	Containers        []*Container     `json:"containers,omitempty"`

	PrivateKey    string `json:"-"`
	User          string `json:"-"`
	InventoryFile string `json:"-"`
	Name          string `json:"-"`
	Suffix        string `json:"-"`
	Debug         int    `json:"-"`
}

func (*Action) BaseDuplicate

func (a *Action) BaseDuplicate() *Action

func (*Action) State

func (a *Action) State() string

type Container

type Container struct {
	Params string `json:"params"`
	Name   string `json:"name"`
	State  string `json:"state"`
}

func (*Container) BaseDuplicate

func (a *Container) BaseDuplicate() *Container

func (*Container) Configure

func (c *Container) Configure()

type Customization

type Customization struct {
	Src        string `json:"src"`
	Dest       string `json:"dest"`
	DestFolder string `json:"destFolder"`
	Mode       int    `json:"mode"`
}

func (*Customization) Configure

func (c *Customization) Configure(suffix string, appDest string) (err error)

type Plugin

type Plugin interface {
	DefaultPlay() string
	Mask(string) string
	Unmask(string) string
	Run(*Action) error
	ValidateParams(arg ...string) error
}

type Repository

type Repository struct {
	Branch string `json:"branch"`
	SshUrl string `json:"sshUrl"`
	SshKey string `json:"sshKey"`
	Folder string `json:"folder"`
}

func (*Repository) Configure

func (r *Repository) Configure() (err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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