Documentation
      ¶
    
    
  
    
  
    Index ¶
- type BlobsReporter
 - func (r BlobsReporter) BlobDownloadFinished(path, blobID string, err error)
 - func (r BlobsReporter) BlobDownloadStarted(path string, size int64, blobID, sha1 string)
 - func (r BlobsReporter) BlobUploadFinished(path, blobID string, err error)
 - func (r BlobsReporter) BlobUploadStarted(path string, size int64, sha1 string)
 
- type ColorUI
 - func (ui *ColorUI) AskForChoice(label string, options []string) (int, error)
 - func (ui *ColorUI) AskForConfirmation() error
 - func (ui *ColorUI) AskForPassword(label string) (string, error)
 - func (ui *ColorUI) AskForText(label string) (string, error)
 - func (ui *ColorUI) BeginLinef(pattern string, args ...interface{})
 - func (ui *ColorUI) EndLinef(pattern string, args ...interface{})
 - func (ui *ColorUI) ErrorLinef(pattern string, args ...interface{})
 - func (ui *ColorUI) Flush()
 - func (ui *ColorUI) IsInteractive() bool
 - func (ui *ColorUI) PrintBlock(block []byte)
 - func (ui *ColorUI) PrintErrorBlock(block string)
 - func (ui *ColorUI) PrintLinef(pattern string, args ...interface{})
 - func (ui *ColorUI) PrintTable(table Table)
 - func (ui *ColorUI) PrintTableFiltered(table Table, filterHeader []Header)
 
- type ComboWriter
 - type ConfUI
 - func (ui *ConfUI) AskForChoice(label string, options []string) (int, error)
 - func (ui *ConfUI) AskForConfirmation() error
 - func (ui *ConfUI) AskForPassword(label string) (string, error)
 - func (ui *ConfUI) AskForText(label string) (string, error)
 - func (ui *ConfUI) BeginLinef(pattern string, args ...interface{})
 - func (ui *ConfUI) EnableColor()
 - func (ui *ConfUI) EnableJSON()
 - func (ui *ConfUI) EnableNonInteractive()
 - func (ui *ConfUI) EnableTTY(force bool)
 - func (ui *ConfUI) EndLinef(pattern string, args ...interface{})
 - func (ui *ConfUI) ErrorLinef(pattern string, args ...interface{})
 - func (ui *ConfUI) Flush()
 - func (ui *ConfUI) IsInteractive() bool
 - func (ui *ConfUI) PrintBlock(block []byte)
 - func (ui *ConfUI) PrintErrorBlock(block string)
 - func (ui *ConfUI) PrintLinef(pattern string, args ...interface{})
 - func (ui *ConfUI) PrintTable(table Table)
 - func (ui *ConfUI) PrintTableFiltered(table Table, filterHeader []Header)
 - func (ui *ConfUI) ShowColumns(columns []Header)
 
- type FileReporter
 - type IndexReporter
 - func (r IndexReporter) IndexEntryDownloadFinished(type_, desc string, err error)
 - func (r IndexReporter) IndexEntryDownloadStarted(type_, desc string)
 - func (r IndexReporter) IndexEntryFinishedAdding(type_, desc string, err error)
 - func (r IndexReporter) IndexEntryStartedAdding(type_, desc string)
 - func (r IndexReporter) IndexEntryUploadFinished(type_, desc string, err error)
 - func (r IndexReporter) IndexEntryUploadStarted(type_, desc string)
 
- type NonTTYUI
 - func (ui *NonTTYUI) AskForChoice(label string, options []string) (int, error)
 - func (ui *NonTTYUI) AskForConfirmation() error
 - func (ui *NonTTYUI) AskForPassword(label string) (string, error)
 - func (ui *NonTTYUI) AskForText(label string) (string, error)
 - func (ui *NonTTYUI) BeginLinef(pattern string, args ...interface{})
 - func (ui *NonTTYUI) EndLinef(pattern string, args ...interface{})
 - func (ui *NonTTYUI) ErrorLinef(pattern string, args ...interface{})
 - func (ui *NonTTYUI) Flush()
 - func (ui *NonTTYUI) IsInteractive() bool
 - func (ui *NonTTYUI) PrintBlock(block []byte)
 - func (ui *NonTTYUI) PrintErrorBlock(block string)
 - func (ui *NonTTYUI) PrintLinef(pattern string, args ...interface{})
 - func (ui *NonTTYUI) PrintTable(table Table)
 - func (ui *NonTTYUI) PrintTableFiltered(table Table, filterHeader []Header)
 
- type ReadCloserProxy
 - type ReleaseIndexReporter
 - type SkipStageError
 - type Stage
 - type UI
 - type WriterUI
 - func (ui *WriterUI) AskForChoice(label string, options []string) (int, error)
 - func (ui *WriterUI) AskForConfirmation() error
 - func (ui *WriterUI) AskForPassword(label string) (string, error)
 - func (ui *WriterUI) AskForText(label string) (string, error)
 - func (ui *WriterUI) BeginLinef(pattern string, args ...interface{})
 - func (ui *WriterUI) EndLinef(pattern string, args ...interface{})
 - func (ui *WriterUI) ErrorLinef(pattern string, args ...interface{})
 - func (ui *WriterUI) Flush()
 - func (ui *WriterUI) IsInteractive() bool
 - func (ui *WriterUI) IsTTY() bool
 - func (ui *WriterUI) PrintBlock(block []byte)
 - func (ui *WriterUI) PrintErrorBlock(block string)
 - func (ui *WriterUI) PrintLinef(pattern string, args ...interface{})
 - func (ui *WriterUI) PrintTable(table Table)
 - func (ui *WriterUI) PrintTableFiltered(table Table, filterHeader []Header)
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlobsReporter ¶
type BlobsReporter struct {
	// contains filtered or unexported fields
}
    func NewBlobsReporter ¶
func NewBlobsReporter(ui UI) BlobsReporter
func (BlobsReporter) BlobDownloadFinished ¶
func (r BlobsReporter) BlobDownloadFinished(path, blobID string, err error)
func (BlobsReporter) BlobDownloadStarted ¶
func (r BlobsReporter) BlobDownloadStarted(path string, size int64, blobID, sha1 string)
func (BlobsReporter) BlobUploadFinished ¶
func (r BlobsReporter) BlobUploadFinished(path, blobID string, err error)
func (BlobsReporter) BlobUploadStarted ¶
func (r BlobsReporter) BlobUploadStarted(path string, size int64, sha1 string)
type ColorUI ¶
type ColorUI struct {
	// contains filtered or unexported fields
}
    func (*ColorUI) AskForChoice ¶
func (*ColorUI) AskForConfirmation ¶
func (*ColorUI) BeginLinef ¶
func (*ColorUI) ErrorLinef ¶
func (*ColorUI) IsInteractive ¶
func (*ColorUI) PrintBlock ¶
func (*ColorUI) PrintErrorBlock ¶
func (*ColorUI) PrintLinef ¶
func (*ColorUI) PrintTable ¶
func (ui *ColorUI) PrintTable(table Table)
func (*ColorUI) PrintTableFiltered ¶
func (ui *ColorUI) PrintTableFiltered(table Table, filterHeader []Header)
type ComboWriter ¶
type ComboWriter struct {
	// contains filtered or unexported fields
}
    func NewComboWriter ¶
func NewComboWriter(ui UI) *ComboWriter
type ConfUI ¶
type ConfUI struct {
	// contains filtered or unexported fields
}
    func (*ConfUI) AskForChoice ¶
func (*ConfUI) AskForConfirmation ¶
func (*ConfUI) BeginLinef ¶
func (*ConfUI) EnableColor ¶
func (ui *ConfUI) EnableColor()
func (*ConfUI) EnableJSON ¶
func (ui *ConfUI) EnableJSON()
func (*ConfUI) EnableNonInteractive ¶
func (ui *ConfUI) EnableNonInteractive()
func (*ConfUI) ErrorLinef ¶
func (*ConfUI) IsInteractive ¶
func (*ConfUI) PrintBlock ¶
func (*ConfUI) PrintErrorBlock ¶
func (*ConfUI) PrintLinef ¶
func (*ConfUI) PrintTable ¶
func (ui *ConfUI) PrintTable(table Table)
func (*ConfUI) PrintTableFiltered ¶
func (ui *ConfUI) PrintTableFiltered(table Table, filterHeader []Header)
func (*ConfUI) ShowColumns ¶
func (ui *ConfUI) ShowColumns(columns []Header)
type FileReporter ¶
type FileReporter struct {
	// contains filtered or unexported fields
}
    func NewFileReporter ¶
func NewFileReporter(ui UI) FileReporter
func (FileReporter) TrackDownload ¶
func (FileReporter) TrackUpload ¶
func (r FileReporter) TrackUpload(size int64, reader io.ReadCloser) bio.ReadSeekCloser
type IndexReporter ¶
type IndexReporter struct {
	// contains filtered or unexported fields
}
    func NewIndexReporter ¶
func NewIndexReporter(ui UI) IndexReporter
func (IndexReporter) IndexEntryDownloadFinished ¶
func (r IndexReporter) IndexEntryDownloadFinished(type_, desc string, err error)
func (IndexReporter) IndexEntryDownloadStarted ¶
func (r IndexReporter) IndexEntryDownloadStarted(type_, desc string)
func (IndexReporter) IndexEntryFinishedAdding ¶
func (r IndexReporter) IndexEntryFinishedAdding(type_, desc string, err error)
func (IndexReporter) IndexEntryStartedAdding ¶
func (r IndexReporter) IndexEntryStartedAdding(type_, desc string)
func (IndexReporter) IndexEntryUploadFinished ¶
func (r IndexReporter) IndexEntryUploadFinished(type_, desc string, err error)
func (IndexReporter) IndexEntryUploadStarted ¶
func (r IndexReporter) IndexEntryUploadStarted(type_, desc string)
type NonTTYUI ¶
type NonTTYUI struct {
	// contains filtered or unexported fields
}
    func NewNonTTYUI ¶
func (*NonTTYUI) AskForChoice ¶
func (*NonTTYUI) AskForConfirmation ¶
func (*NonTTYUI) BeginLinef ¶
func (*NonTTYUI) ErrorLinef ¶
func (*NonTTYUI) IsInteractive ¶
func (*NonTTYUI) PrintBlock ¶
func (*NonTTYUI) PrintErrorBlock ¶
func (*NonTTYUI) PrintLinef ¶
func (*NonTTYUI) PrintTable ¶
func (ui *NonTTYUI) PrintTable(table Table)
func (*NonTTYUI) PrintTableFiltered ¶
func (ui *NonTTYUI) PrintTableFiltered(table Table, filterHeader []Header)
type ReadCloserProxy ¶
type ReadCloserProxy struct {
	// contains filtered or unexported fields
}
    func (*ReadCloserProxy) Close ¶
func (p *ReadCloserProxy) Close() error
type ReleaseIndexReporter ¶
type ReleaseIndexReporter struct {
	// contains filtered or unexported fields
}
    func NewReleaseIndexReporter ¶
func NewReleaseIndexReporter(ui UI) ReleaseIndexReporter
func (ReleaseIndexReporter) ReleaseIndexAdded ¶
func (r ReleaseIndexReporter) ReleaseIndexAdded(name, desc string, err error)
type SkipStageError ¶
type SkipStageError struct {
	// contains filtered or unexported fields
}
    func NewSkipStageError ¶
func NewSkipStageError(cause error, skipMessage string) SkipStageError
func (SkipStageError) Cause ¶
func (e SkipStageError) Cause() error
func (SkipStageError) Error ¶
func (e SkipStageError) Error() string
func (SkipStageError) SkipMessage ¶
func (e SkipStageError) SkipMessage() string
type Stage ¶
type UI ¶
type UI interface {
	ErrorLinef(pattern string, args ...interface{})
	PrintLinef(pattern string, args ...interface{})
	BeginLinef(pattern string, args ...interface{})
	EndLinef(pattern string, args ...interface{})
	PrintBlock([]byte) // takes []byte to avoid string copy
	PrintErrorBlock(string)
	PrintTable(Table)
	PrintTableFiltered(Table, []Header)
	AskForText(label string) (string, error)
	AskForChoice(label string, options []string) (int, error)
	AskForPassword(label string) (string, error)
	// AskForConfirmation returns error if user doesnt want to continue
	AskForConfirmation() error
	IsInteractive() bool
	Flush()
}
    func NewColorUI ¶
func NewIndentingUI ¶
func NewNonInteractiveUI ¶
func NewPaddingUI ¶
type WriterUI ¶
type WriterUI struct {
	// contains filtered or unexported fields
}
    func NewConsoleUI ¶
func NewWriterUI ¶
func (*WriterUI) AskForChoice ¶
func (*WriterUI) AskForConfirmation ¶
func (*WriterUI) BeginLinef ¶
PrintBeginf starts a text line
func (*WriterUI) ErrorLinef ¶
ErrorLinef starts and ends a text error line
func (*WriterUI) IsInteractive ¶
func (*WriterUI) PrintBlock ¶
func (*WriterUI) PrintErrorBlock ¶
func (*WriterUI) PrintLinef ¶
Printlnf starts and ends a text line
func (*WriterUI) PrintTable ¶
func (ui *WriterUI) PrintTable(table Table)
func (*WriterUI) PrintTableFiltered ¶
func (ui *WriterUI) PrintTableFiltered(table Table, filterHeader []Header)
      
      Source Files
      ¶
    
   Click to show internal directories. 
   Click to hide internal directories.