Documentation ¶
Overview ¶
Package operations provides commands for the CLI, which is also the binary for the server and agent.
Index ¶
- func Admin() cli.Command
- func Agent() cli.Command
- func Client() cli.Command
- func CommitQueue() cli.Command
- func Evaluate() cli.Command
- func Fetch() cli.Command
- func Host() cli.Command
- func Keys() cli.Command
- func LastGreen() cli.Command
- func List() cli.Command
- func Notification() cli.Command
- func Patch() cli.Command
- func PatchCancel() cli.Command
- func PatchFile() cli.Command
- func PatchFinalize() cli.Command
- func PatchList() cli.Command
- func PatchRemoveModule() cli.Command
- func PatchSetModule() cli.Command
- func Pull() cli.Command
- func Scheduler() cli.Command
- func Service() cli.Command
- func Subscriptions() cli.Command
- func Task() cli.Command
- func Update() cli.Command
- func Validate() cli.Command
- func Version() cli.Command
- func Volume() cli.Command
- type APIError
- type ClientProjectConf
- type ClientSettings
- func (s *ClientSettings) FindDefaultAlias(project string) string
- func (s *ClientSettings) FindDefaultParameters(project string) []patch.Parameter
- func (s *ClientSettings) FindDefaultProject(cwd string, useRoot bool) string
- func (s *ClientSettings) FindDefaultTasks(project string) []string
- func (s *ClientSettings) FindDefaultTriggerAliases(project string) []string
- func (s *ClientSettings) FindDefaultVariants(project string) []string
- func (s *ClientSettings) SetAutoUpgradeCLI()
- func (s *ClientSettings) SetDefaultAlias(project string, alias string)
- func (s *ClientSettings) SetDefaultProject(cwd, project string)
- func (s *ClientSettings) SetDefaultTasks(project string, tasks ...string)
- func (s *ClientSettings) SetDefaultTriggerAliases(project string, triggerAliases []string)
- func (s *ClientSettings) SetDefaultVariants(project string, variants ...string)
- func (s *ClientSettings) Write(fn string) error
- type UpdatePatchModuleParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommitQueue ¶
func Notification ¶
func PatchCancel ¶
func PatchFinalize ¶
func PatchRemoveModule ¶
func PatchSetModule ¶
func Subscriptions ¶
Types ¶
type APIError ¶
type APIError struct {
// contains filtered or unexported fields
}
APIError is an implementation of error for reporting unexpected results from API calls.
func NewAPIError ¶
NewAPIError creates an APIError by reading the body of the response and its status code.
func NewAuthError ¶
type ClientProjectConf ¶
type ClientProjectConf struct { Name string `json:"name" yaml:"name,omitempty"` Default bool `json:"default" yaml:"default,omitempty"` Alias string `json:"alias" yaml:"alias,omitempty"` Variants []string `json:"variants" yaml:"variants,omitempty"` Tasks []string `json:"tasks" yaml:"tasks,omitempty"` Parameters map[string]string `json:"parameters" yaml:"parameters,omitempty"` ModulePaths map[string]string `json:"module_paths" yaml:"module_paths,omitempty"` TriggerAliases []string `json:"trigger_aliases" yaml:"trigger_aliases"` LocalAliases []model.ProjectAlias `json:"local_aliases,omitempty" yaml:"local_aliases,omitempty"` }
type ClientSettings ¶
type ClientSettings struct { APIServerHost string `json:"api_server_host" yaml:"api_server_host,omitempty"` UIServerHost string `json:"ui_server_host" yaml:"ui_server_host,omitempty"` APIKey string `json:"api_key" yaml:"api_key,omitempty"` User string `json:"user" yaml:"user,omitempty"` UncommittedChanges bool `json:"patch_uncommitted_changes" yaml:"patch_uncommitted_changes,omitempty"` AutoUpgradeCLI bool `json:"auto_upgrade_cli" yaml:"auto_upgrade_cli,omitempty"` PreserveCommits bool `json:"preserve_commits" yaml:"preserve_commits,omitempty"` Projects []ClientProjectConf `json:"projects" yaml:"projects,omitempty"` LoadedFrom string `json:"-" yaml:"-"` DisableAutoDefaulting bool `json:"disable_auto_defaulting" yaml:"disable_auto_defaulting"` ProjectsForDirectory map[string]string `json:"projects_for_directory,omitempty" yaml:"projects_for_directory,omitempty"` }
Client represents the data stored in the user's config file, by default located at ~/.evergreen.yml If you change the JSON tags, you must also change an anonymous struct in hostinit/setup.go
func NewClientSettings ¶
func NewClientSettings(fn string) (*ClientSettings, error)
func (*ClientSettings) FindDefaultAlias ¶
func (s *ClientSettings) FindDefaultAlias(project string) string
func (*ClientSettings) FindDefaultParameters ¶
func (s *ClientSettings) FindDefaultParameters(project string) []patch.Parameter
func (*ClientSettings) FindDefaultProject ¶
func (s *ClientSettings) FindDefaultProject(cwd string, useRoot bool) string
func (*ClientSettings) FindDefaultTasks ¶
func (s *ClientSettings) FindDefaultTasks(project string) []string
func (*ClientSettings) FindDefaultTriggerAliases ¶
func (s *ClientSettings) FindDefaultTriggerAliases(project string) []string
func (*ClientSettings) FindDefaultVariants ¶
func (s *ClientSettings) FindDefaultVariants(project string) []string
func (*ClientSettings) SetAutoUpgradeCLI ¶
func (s *ClientSettings) SetAutoUpgradeCLI()
func (*ClientSettings) SetDefaultAlias ¶
func (s *ClientSettings) SetDefaultAlias(project string, alias string)
func (*ClientSettings) SetDefaultProject ¶
func (s *ClientSettings) SetDefaultProject(cwd, project string)
func (*ClientSettings) SetDefaultTasks ¶
func (s *ClientSettings) SetDefaultTasks(project string, tasks ...string)
func (*ClientSettings) SetDefaultTriggerAliases ¶
func (s *ClientSettings) SetDefaultTriggerAliases(project string, triggerAliases []string)
func (*ClientSettings) SetDefaultVariants ¶
func (s *ClientSettings) SetDefaultVariants(project string, variants ...string)
func (*ClientSettings) Write ¶
func (s *ClientSettings) Write(fn string) error
type UpdatePatchModuleParams ¶
type UpdatePatchModuleParams struct {
// contains filtered or unexported fields
}
Source Files ¶
- admin.go
- admin_all_configs.go
- admin_from_mdb.go
- agent.go
- agent_monitor.go
- before.go
- client.go
- commit_queue.go
- doc.go
- evaluate.go
- fetch.go
- flags.go
- host.go
- host_provision.go
- host_setup.go
- host_spawn.go
- http.go
- keys.go
- last_green.go
- list.go
- model.go
- notification.go
- patch.go
- patch_cancel.go
- patch_finalize.go
- patch_list.go
- patch_module.go
- patch_util.go
- prompt.go
- pull.go
- scheduler.go
- service.go
- service_deploy_smoke.go
- service_web.go
- subscriptions.go
- task.go
- update.go
- validate.go
- version.go
- volume.go
Click to show internal directories.
Click to hide internal directories.