plugin

package
v0.0.0-...-46b496d Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin struct {
	BaseURL     string
	BuildStatus string
	CommitSHA   string
	Contexts    []string
	Description string
	Password    string
	RepoName    string
	RepoOwner   string
	Username    string
	State       string
	TargetURL   string
	Token       string
	// contains filtered or unexported fields
}

func NewFromCLI

func NewFromCLI(c *cli.Context) (*Plugin, error)

NewFromCLI creates new Plugin instance from CLI flags

func NewFromPlugin

func NewFromPlugin(p Plugin) (*Plugin, error)

NewFromPlugin allows someone to populate Plugin struct and then initializes it

func (Plugin) CalculatedState

func (p Plugin) CalculatedState() string

CalculatedState to determine state for the status

func (Plugin) Exec

func (p Plugin) Exec() error

Exec executes the plugin

Jump to

Keyboard shortcuts

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