rundeck

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2016 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CmdRun  = "run"
	CmdHelp = "help"
)
View Source
const (
	SubCmdJob  = "job"
	SubCmdJobs = "jobs"
)

Variables

This section is empty.

Functions

func Cmds

func Cmds() []string

func SubCmds

func SubCmds() []string

Types

type Act

type Act struct {
	ID        int    `json:"id"`
	Permalink string `json:"permalink"`
}

type Entry

type Entry struct {
	Log string `json:"log"`
}

type Job

type Job struct {
	ID        string `json:"id"`
	Name      string `json:"name"`
	Desc      string `json:"description"`
	Permalink string `json:"permalink"`
	Label     string `json:"-"`
}

type JobDef

type JobDef struct {
	Name  string      `yaml:"name"`
	Desc  string      `yaml:"description"`
	Opts  []JobOption `yaml:"options"`
	Label string      `yaml:"-"`
}

type JobDefList

type JobDefList []JobDef

type JobOption

type JobOption struct {
	Name       string `yaml:"name"`
	IsRequired bool   `yaml:"required"`
	Desc       string `yaml:"description"`
}

type Jobs

type Jobs []Job

type Output

type Output struct {
	Entries      []Entry `json:"entries"`
	Offset       int     `json:"offset,string"`
	LastModified int     `json:"lastModified,string"`
	Completed    bool    `json:"completed"`
}

type Rundeck

type Rundeck struct {
	// contains filtered or unexported fields
}

func AuthWithPass

func AuthWithPass(user, pass, schema, host, project string, out io.Writer) (*Rundeck, error)

func AuthWithToken

func AuthWithToken(token, schema, host, project string, out io.Writer) (*Rundeck, error)

func (*Rundeck) Do

func (r *Rundeck) Do(cmd string, args []string) error

func (*Rundeck) GetJobLabels

func (r *Rundeck) GetJobLabels() ([]string, error)

Jump to

Keyboard shortcuts

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