Documentation ¶
Index ¶
- Constants
- func Execute()
- func Format(obj interface{}, format string) (data []byte, err error)
- type BatchOption
- type Config
- type ConfigAddOptions
- type ConfigOptions
- type CrumbIssuer
- type CrumbIssuerOptions
- type FormatOutput
- type JenkinsServer
- type JobBuildOption
- type JobLogOption
- type JobOption
- type JobSearchOption
- type OpenOption
- type OutputOption
- type PluginOptions
- type ProgressIndicator
- type QueueOption
- type RestartOption
- type RootOptions
- type UserEditOption
- type UserOption
- type UserTokenOption
Constants ¶
View Source
const ( JsonOutputFormat string = "json" YAMLOutputFormat string = "yaml" TableOutputFormat string = "table" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BatchOption ¶ added in v0.0.11
type BatchOption struct {
Batch bool
}
BatchOption represent the options for a batch operation
func (*BatchOption) Confirm ¶ added in v0.0.11
func (b *BatchOption) Confirm(message string) bool
Confirm prompte user if they really want to do this
type Config ¶
type Config struct { Current string `yaml:"current"` JenkinsServers []JenkinsServer `yaml:"jenkins_servers"` }
type ConfigAddOptions ¶ added in v0.0.10
type ConfigAddOptions struct {
JenkinsServer
}
type ConfigOptions ¶ added in v0.0.9
type CrumbIssuer ¶
type CrumbIssuerOptions ¶
type CrumbIssuerOptions struct {
Upload bool
}
Start contains the command line options
type FormatOutput ¶ added in v0.0.11
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 JobBuildOption ¶ added in v0.0.11
type JobBuildOption struct {
BatchOption
}
type JobLogOption ¶ added in v0.0.10
type JobLogOption struct {
History int
}
type JobOption ¶ added in v0.0.10
type JobOption struct { OutputOption Name string History bool }
type JobSearchOption ¶ added in v0.0.10
type JobSearchOption struct {
OutputOption
}
type OpenOption ¶ added in v0.0.10
type OutputOption ¶ added in v0.0.9
type OutputOption struct {
Format string
}
OutputOption represent the format of output
func (*OutputOption) Output ¶ added in v0.0.11
func (o *OutputOption) Output(obj interface{}) (data []byte, err error)
type PluginOptions ¶
type PluginOptions struct { OutputOption Upload bool CheckUpdate bool Open bool List bool Install []string Uninstall string Filter []string }
PluginOptions contains the command line options
func (*PluginOptions) Output ¶ added in v0.0.11
func (o *PluginOptions) Output(obj interface{}) (data []byte, err error)
type ProgressIndicator ¶ added in v0.0.9
type ProgressIndicator struct { bytes.Buffer Total float64 // contains filtered or unexported fields }
func (*ProgressIndicator) Init ¶ added in v0.0.9
func (i *ProgressIndicator) Init()
type QueueOption ¶ added in v0.0.9
type QueueOption struct {
OutputOption
}
type RestartOption ¶ added in v0.0.11
type RestartOption struct {
BatchOption
}
RestartOption holds the options for restart cmd
type RootOptions ¶ added in v0.0.9
type RootOptions struct {
Version bool
}
type UserEditOption ¶ added in v0.0.11
type UserEditOption struct {
Description bool
}
type UserOption ¶ added in v0.0.11
type UserOption struct {
OutputOption
}
type UserTokenOption ¶ added in v0.0.11
Click to show internal directories.
Click to hide internal directories.