Documentation
¶
Index ¶
- func NoDataFound(message string)
- func OperationCancelled()
- func PrintDeletionSummary(results SummaryResults)
- func PrintJSON(v interface{}) error
- func PrintQuiet(items []string)
- func ProgressCounter(current, total int, action, target string)
- func RenderBranch(a *app.App, res BranchView)
- func RenderCommitParents(_ *app.App, v CommitParentsView)
- func RenderCommitsList(_ *app.App, v CommitsListView)
- func RenderConnect(a *app.App, v ConnectView)
- func RenderCopy(a *app.App, v CopyView)
- func RenderDeploy(a *app.App, v DeployView)
- func RenderExecute(a *app.App, v ExecuteView)
- func RenderInfo(_ *app.App, v InfoView)
- func RenderPause(a *app.App, v PauseView)
- func RenderResume(a *app.App, v ResumeView)
- func RenderRun(a *app.App, v RunView)
- func RenderRunCommit(a *app.App, v RunCommitView)
- func RenderStatus(a *app.App, res StatusView)
- func RenderTagInfo(_ *app.App, t *vers.TagInfo)
- func RenderTagList(_ *app.App, v TagListView)
- func RenderTunnel(a *app.App, v TunnelView)
- func RenderVMList(vms []vers.Vm)
- func RenderVMStatus(vm *vers.Vm)
- func SectionHeader(title string)
- func SuccessMessage(message string)
- type BranchView
- type CommitParentsView
- type CommitsListView
- type ConnectView
- type CopyView
- type DeployView
- type ExecuteView
- type InfoView
- type OutputFormat
- type PauseView
- type ResumeView
- type RunCommitView
- type RunView
- type StatusHead
- type StatusMode
- type StatusView
- type SummaryResults
- type TagListView
- type TunnelView
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NoDataFound ¶
func NoDataFound(message string)
func OperationCancelled ¶
func OperationCancelled()
func PrintDeletionSummary ¶
func PrintDeletionSummary(results SummaryResults)
func PrintJSON ¶ added in v0.7.0
func PrintJSON(v interface{}) error
PrintJSON marshals v to indented JSON and prints to stdout.
func PrintQuiet ¶ added in v0.7.0
func PrintQuiet(items []string)
PrintQuiet prints each string on its own line to stdout.
func ProgressCounter ¶
func RenderBranch ¶
func RenderBranch(a *app.App, res BranchView)
func RenderCommitParents ¶ added in v0.7.0
func RenderCommitParents(_ *app.App, v CommitParentsView)
func RenderCommitsList ¶ added in v0.7.0
func RenderCommitsList(_ *app.App, v CommitsListView)
func RenderConnect ¶
func RenderConnect(a *app.App, v ConnectView)
func RenderCopy ¶
func RenderDeploy ¶ added in v0.7.2
func RenderDeploy(a *app.App, v DeployView)
RenderDeploy prints human-friendly output for a deploy operation.
func RenderExecute ¶
func RenderExecute(a *app.App, v ExecuteView)
func RenderInfo ¶ added in v0.7.0
func RenderPause ¶
func RenderResume ¶
func RenderResume(a *app.App, v ResumeView)
func RenderRunCommit ¶
func RenderRunCommit(a *app.App, v RunCommitView)
func RenderStatus ¶
func RenderStatus(a *app.App, res StatusView)
func RenderTagList ¶ added in v0.7.0
func RenderTagList(_ *app.App, v TagListView)
func RenderTunnel ¶ added in v0.6.0
func RenderTunnel(a *app.App, v TunnelView)
func RenderVMList ¶
func RenderVMStatus ¶
func SectionHeader ¶
func SectionHeader(title string)
func SuccessMessage ¶
func SuccessMessage(message string)
Types ¶
type BranchView ¶
type BranchView struct {
FromID string `json:"from_id"`
FromName string `json:"from_name,omitempty"`
NewID string `json:"new_id,omitempty"`
NewIDs []string `json:"new_ids"`
NewAlias string `json:"new_alias,omitempty"`
NewState string `json:"new_state,omitempty"`
CheckoutDone bool `json:"checkout_done,omitempty"`
CheckoutErr error `json:"-"`
UsedHEAD bool `json:"used_head,omitempty"`
}
type CommitParentsView ¶ added in v0.7.0
type CommitParentsView struct {
CommitID string
Parents []vers.CommitListParentsResponse
}
type CommitsListView ¶ added in v0.7.0
type CommitsListView struct {
Commits []vers.CommitInfo
Total int64
Public bool
}
type ConnectView ¶
type DeployView ¶ added in v0.7.2
type DeployView struct {
ProjectID string `json:"project_id"`
VmID string `json:"vm_id"`
Status string `json:"status"`
}
DeployView contains the data returned from a deploy operation.
type ExecuteView ¶
type InfoView ¶ added in v0.7.0
type InfoView struct {
Metadata *vers.VmMetadataResponse
UsedHEAD bool
}
type OutputFormat ¶ added in v0.7.0
type OutputFormat int
OutputFormat controls how command output is rendered.
const ( FormatDefault OutputFormat = iota FormatQuiet // just IDs/names, one per line FormatJSON // full JSON )
func ParseFormat ¶ added in v0.7.0
func ParseFormat(quiet bool, formatStr string) OutputFormat
ParseFormat returns the output format from flag values.
type ResumeView ¶
type ResumeView struct{ VMName, NewState string }
type RunCommitView ¶
type StatusHead ¶
type StatusView ¶
type StatusView struct {
Mode StatusMode
Head StatusHead
VM *vers.Vm
VMs []vers.Vm
}
type SummaryResults ¶
type TagListView ¶ added in v0.7.0
Source Files
¶
- branch_presenter.go
- branch_types.go
- commits_presenter.go
- commits_types.go
- connect_presenter.go
- connect_types.go
- copy_presenter.go
- copy_types.go
- deletion_presenter.go
- deploy_presenter.go
- deploy_types.go
- execute_presenter.go
- execute_types.go
- format.go
- info_presenter.go
- info_types.go
- kill_presenter.go
- pause_presenter.go
- resume_presenter.go
- run_commit_presenter.go
- run_presenter.go
- status_controller.go
- status_presenter.go
- status_types.go
- tags_presenter.go
- tags_types.go
- tunnel_presenter.go
- tunnel_types.go
Click to show internal directories.
Click to hide internal directories.