operations

package
v0.0.0-...-ee3d319 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2018 License: Apache-2.0 Imports: 65 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Admin

func Admin() cli.Command

func Agent

func Agent() cli.Command

func Evaluate

func Evaluate() cli.Command

func Export

func Export() cli.Command

func Fetch

func Fetch() cli.Command

func Host

func Host() cli.Command

func Keys

func Keys() cli.Command

func LastGreen

func LastGreen() cli.Command

func List

func List() cli.Command

func Patch

func Patch() cli.Command

func PatchCancel

func PatchCancel() cli.Command

func PatchFile

func PatchFile() cli.Command

func PatchFinalize

func PatchFinalize() cli.Command

func PatchList

func PatchList() cli.Command

func PatchRemoveModule

func PatchRemoveModule() cli.Command

func PatchSetModule

func PatchSetModule() cli.Command

func Service

func Service() cli.Command

func TestHistory

func TestHistory() cli.Command

func Update

func Update() cli.Command

func Validate

func Validate() cli.Command

func Version

func Version() cli.Command

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

func NewAPIError(resp *http.Response) APIError

NewAPIError creates an APIError by reading the body of the response and its status code.

func (APIError) Error

func (ae APIError) Error() string

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"`
}

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"`
	Projects      []ClientProjectConf `json:"projects" yaml:"projects,omitempty"`
	LoadedFrom    string              `json:"-" yaml:"-"`
}

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) FindDefaultProject

func (s *ClientSettings) FindDefaultProject() string

func (*ClientSettings) FindDefaultTasks

func (s *ClientSettings) FindDefaultTasks(project string) []string

func (*ClientSettings) FindDefaultVariants

func (s *ClientSettings) FindDefaultVariants(project string) []string

func (*ClientSettings) GetRestCommunicator

func (s *ClientSettings) GetRestCommunicator(ctx context.Context) client.Communicator

func (*ClientSettings) SetDefaultAlias

func (s *ClientSettings) SetDefaultAlias(project string, alias string)

func (*ClientSettings) SetDefaultProject

func (s *ClientSettings) SetDefaultProject(name string)

func (*ClientSettings) SetDefaultTasks

func (s *ClientSettings) SetDefaultTasks(project string, tasks ...string)

func (*ClientSettings) SetDefaultVariants

func (s *ClientSettings) SetDefaultVariants(project string, variants ...string)

func (*ClientSettings) Write

func (s *ClientSettings) Write(fn string) error

Jump to

Keyboard shortcuts

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