cmd

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2019 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JsonOutputFormat string = "json"
	YAMLOutputFormat string = "yaml"
)

Variables

This section is empty.

Functions

func Execute

func Execute()

func Format

func Format(obj interface{}, format string) (data []byte, err error)

Types

type Config

type Config struct {
	Current        string          `yaml:"current"`
	JenkinsServers []JenkinsServer `yaml:"jenkins_servers"`
}

type ConfigAddOptions

type ConfigAddOptions struct {
	JenkinsServer
}

type ConfigOptions

type ConfigOptions struct {
	Current  string
	Show     bool
	Generate bool
	List     bool

	ConfigFileLocation string
}

type CrumbIssuer

type CrumbIssuer struct {
	Crumb             string `json:"crumb"`
	CrumbRequestField string `json:"crumbRequestField"`
}

type CrumbIssuerOptions

type CrumbIssuerOptions struct {
	Upload bool
}

Start contains the command line options

type JenkinsServer

type JenkinsServer struct {
	Name      string `yaml:"name"`
	URL       string `yaml:"url"`
	UserName  string `yaml:"username"`
	Token     string `yaml:"token"`
	Proxy     string `yaml:"proxy"`
	ProxyAuth string `yaml:"proxyAuth"`
}

JenkinsServer holds the configuration of your Jenkins

type JobLogOption

type JobLogOption struct {
	History int
}

type JobOption

type JobOption struct {
	OutputOption

	Name    string
	History bool
}

type JobSearchOption

type JobSearchOption struct {
	OutputOption
}

type OpenOption

type OpenOption struct {
	Name   string
	Config bool
}

type OutputOption

type OutputOption struct {
	Format string
}

type PluginOptions

type PluginOptions struct {
	Upload      bool
	CheckUpdate bool
	Open        bool
	List        bool

	Install   []string
	Uninstall string

	Filter []string
}

PluginOptions contains the command line options

type ProgressIndicator

type ProgressIndicator struct {
	bytes.Buffer
	Total float64
	// contains filtered or unexported fields
}

func (*ProgressIndicator) Init

func (i *ProgressIndicator) Init()

func (*ProgressIndicator) Read

func (i *ProgressIndicator) Read(p []byte) (n int, err error)

func (*ProgressIndicator) Write

func (i *ProgressIndicator) Write(p []byte) (n int, err error)

type QueueOption

type QueueOption struct {
	OutputOption
}

type RootOptions

type RootOptions struct {
	Version bool
}

Jump to

Keyboard shortcuts

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