Documentation
¶
Index ¶
- Constants
- func Execute()
- func Format(obj interface{}, format string) (data []byte, err error)
- type BatchOption
- type CenterOption
- type Config
- type ConfigAddOptions
- type ConfigOptions
- type CrumbIssuer
- type CrumbIssuerOptions
- type FormatOutput
- type JenkinsServer
- type JobBuildOption
- type JobCreateOption
- type JobDeleteOption
- type JobLogOption
- type JobOption
- type JobSearchOption
- type JobTypeOption
- type OpenOption
- type OutputOption
- type PluginOptions
- type PluginSearchOption
- type QueueOption
- type RestartOption
- type RootOptions
- type UserCreateOption
- type UserDeleteOption
- type UserEditOption
- type UserOption
- type UserTokenOption
- type WatchOption
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
func (*BatchOption) SetFlag ¶ added in v0.0.16
func (b *BatchOption) SetFlag(cmd *cobra.Command)
type CenterOption ¶ added in v0.0.14
type CenterOption struct { WatchOption CeneterStatus string }
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 JobCreateOption ¶ added in v0.0.16
type JobCreateOption struct { }
type JobDeleteOption ¶ added in v0.0.16
type JobDeleteOption struct {
BatchOption
}
type JobLogOption ¶ added in v0.0.10
type JobLogOption struct { WatchOption History int LogText string LastBuildID int LastBuildURL string }
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 JobTypeOption ¶ added in v0.0.15
type JobTypeOption struct {
OutputOption
}
func (*JobTypeOption) Output ¶ added in v0.0.15
func (o *JobTypeOption) Output(obj interface{}) (data []byte, err error)
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 PluginSearchOption ¶ added in v0.0.12
type PluginSearchOption struct {
OutputOption
}
func (*PluginSearchOption) Output ¶ added in v0.0.13
func (o *PluginSearchOption) Output(obj interface{}) (data []byte, err error)
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 UserCreateOption ¶ added in v0.0.16
type UserCreateOption struct { }
type UserDeleteOption ¶ added in v0.0.16
type UserDeleteOption struct {
BatchOption
}
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
type WatchOption ¶ added in v0.0.13
WatchOption for the resources which can be watched
Source Files
¶
- center.go
- common.go
- config.go
- config_add.go
- config_remove.go
- config_select.go
- crumbIssuer.go
- job.go
- job_build.go
- job_create.go
- job_delete.go
- job_edit.go
- job_log.go
- job_search.go
- job_type.go
- open.go
- plugin.go
- plugin_download.go
- plugin_search.go
- plugin_trend.go
- queue.go
- restart.go
- root.go
- user.go
- user_create.go
- user_delete.go
- user_edit.go
- user_token.go
Click to show internal directories.
Click to hide internal directories.