Documentation ¶
Index ¶
- func HasInput(fd uintptr, timeout time.Duration) (bool, error)
- type ExecUI
- type IntervalProcessWriter
- type JSONLines
- func (ui *JSONLines) ApplyingBatchSpec()
- func (ui *JSONLines) ApplyingBatchSpecSuccess(batchChangeURL string)
- func (ui *JSONLines) CheckingCache()
- func (ui *JSONLines) CheckingCacheSuccess(cachedSpecsFound int, tasksToExecute int)
- func (ui *JSONLines) CreatingBatchSpec()
- func (ui *JSONLines) CreatingBatchSpecError(_ int, err error) error
- func (ui *JSONLines) CreatingBatchSpecSuccess(batchSpecURL string)
- func (ui *JSONLines) DeterminingWorkspaceCreatorType()
- func (ui *JSONLines) DeterminingWorkspaceCreatorTypeSuccess(wt workspace.CreatorType)
- func (ui *JSONLines) DeterminingWorkspaces()
- func (ui *JSONLines) DeterminingWorkspacesSuccess(workspacesCount, reposCount int, unsupported batches.UnsupportedRepoSet, ...)
- func (ui *JSONLines) DockerWatchDogWarning(err error)
- func (ui *JSONLines) ExecutingTasks(_ bool, _ int) executor.TaskExecutionUI
- func (ui *JSONLines) ExecutingTasksSkippingErrors(err error)
- func (ui *JSONLines) ExecutionError(err error)
- func (ui *JSONLines) LogFilesKept(files []string)
- func (ui *JSONLines) NoChangesetSpecs()
- func (ui *JSONLines) ParsingBatchSpec()
- func (ui *JSONLines) ParsingBatchSpecFailure(err error)
- func (ui *JSONLines) ParsingBatchSpecSuccess()
- func (ui *JSONLines) PreparingContainerImages()
- func (ui *JSONLines) PreparingContainerImagesProgress(done, total int)
- func (ui *JSONLines) PreparingContainerImagesSuccess()
- func (ui *JSONLines) PreviewBatchSpec(batchSpecURL string)
- func (ui *JSONLines) ResolvingNamespace()
- func (ui *JSONLines) ResolvingNamespaceSuccess(namespace string)
- func (ui *JSONLines) UploadingChangesetSpecs(num int)
- func (ui *JSONLines) UploadingChangesetSpecsProgress(done, total int)
- func (ui *JSONLines) UploadingChangesetSpecsSuccess(ids []graphql.ChangesetSpecID)
- func (ui *JSONLines) UploadingWorkspaceFiles()
- func (ui *JSONLines) UploadingWorkspaceFilesSuccess()
- func (ui *JSONLines) UploadingWorkspaceFilesWarning(err error)
- func (ui *JSONLines) WriteAfterStepResult(key string, value execution.AfterStepResult)
- type TUI
- func (ui *TUI) ApplyingBatchSpec()
- func (ui *TUI) ApplyingBatchSpecSuccess(batchChangeURL string)
- func (ui *TUI) CheckingCache()
- func (ui *TUI) CheckingCacheSuccess(cachedSpecsFound int, uncachedTasks int)
- func (ui *TUI) CreatingBatchSpec()
- func (ui *TUI) CreatingBatchSpecError(maxUnlicensedCS int, err error) error
- func (ui *TUI) CreatingBatchSpecSuccess(previewURL string)
- func (ui *TUI) DeterminingWorkspaceCreatorType()
- func (ui *TUI) DeterminingWorkspaceCreatorTypeSuccess(wt workspace.CreatorType)
- func (ui *TUI) DeterminingWorkspaces()
- func (ui *TUI) DeterminingWorkspacesSuccess(workspacesCount, reposCount int, unsupported batches.UnsupportedRepoSet, ...)
- func (ui *TUI) DockerWatchDogWarning(err error)
- func (ui *TUI) ExecutingBatchSpec()
- func (ui *TUI) ExecutingBatchSpecSuccess()
- func (ui *TUI) ExecutingTasks(verbose bool, parallelism int) executor.TaskExecutionUI
- func (ui *TUI) ExecutingTasksSkippingErrors(err error)
- func (ui *TUI) ExecutionError(err error)
- func (ui *TUI) LogFilesKept(files []string)
- func (ui *TUI) NoChangesetSpecs()
- func (ui *TUI) ParsingBatchSpec()
- func (ui *TUI) ParsingBatchSpecFailure(err error)
- func (ui *TUI) ParsingBatchSpecSuccess()
- func (ui *TUI) PreparingContainerImages()
- func (ui *TUI) PreparingContainerImagesProgress(done, total int)
- func (ui *TUI) PreparingContainerImagesSuccess()
- func (ui *TUI) PreviewBatchSpec(batchSpecURL string)
- func (ui *TUI) RemoteSuccess(url string)
- func (ui *TUI) ResolvingNamespace()
- func (ui *TUI) ResolvingNamespaceSuccess(_namespace string)
- func (ui *TUI) ResolvingWorkspaces()
- func (ui *TUI) ResolvingWorkspacesSuccess(workspacesCount int)
- func (ui *TUI) SendingBatchChange()
- func (ui *TUI) SendingBatchChangeSuccess()
- func (ui *TUI) SendingBatchSpec()
- func (ui *TUI) SendingBatchSpecSuccess()
- func (ui *TUI) UploadingChangesetSpecs(num int)
- func (ui *TUI) UploadingChangesetSpecsProgress(done, total int)
- func (ui *TUI) UploadingChangesetSpecsSuccess(ids []graphql.ChangesetSpecID)
- func (ui *TUI) UploadingWorkspaceFiles()
- func (ui *TUI) UploadingWorkspaceFilesSuccess()
- func (ui *TUI) UploadingWorkspaceFilesWarning(err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ExecUI ¶
type ExecUI interface { ParsingBatchSpec() ParsingBatchSpecSuccess() ParsingBatchSpecFailure(error) ResolvingNamespace() ResolvingNamespaceSuccess(namespace string) PreparingContainerImages() PreparingContainerImagesProgress(done, total int) PreparingContainerImagesSuccess() DeterminingWorkspaceCreatorType() DeterminingWorkspaceCreatorTypeSuccess(wt workspace.CreatorType) DeterminingWorkspaces() DeterminingWorkspacesSuccess(workspacesCount, reposCount int, unsupported batches.UnsupportedRepoSet, ignored batches.IgnoredRepoSet) CheckingCache() CheckingCacheSuccess(cachedSpecsFound int, tasksToExecute int) ExecutingTasks(verbose bool, parallelism int) executor.TaskExecutionUI ExecutingTasksSkippingErrors(err error) LogFilesKept(files []string) NoChangesetSpecs() UploadingChangesetSpecs(num int) UploadingChangesetSpecsProgress(done, total int) UploadingChangesetSpecsSuccess(ids []graphql.ChangesetSpecID) CreatingBatchSpec() CreatingBatchSpecSuccess(previewURL string) CreatingBatchSpecError(maxUnlicensedCS int, err error) error PreviewBatchSpec(previewURL string) ApplyingBatchSpec() ApplyingBatchSpecSuccess(batchChangeURL string) ExecutionError(error) UploadingWorkspaceFiles() UploadingWorkspaceFilesWarning(error) UploadingWorkspaceFilesSuccess() DockerWatchDogWarning(error) }
type IntervalProcessWriter ¶
type IntervalProcessWriter struct {
// contains filtered or unexported fields
}
IntervalProcessWriter accepts stdout/stderr writes from processes, prefixed them accordingly, and flushes to the given sink on the given interval.
func NewIntervalProcessWriter ¶
func NewIntervalProcessWriter(ctx context.Context, interval time.Duration, sink func(string)) *IntervalProcessWriter
NewIntervalProcessWriter returns a new IntervalProcessWriter instance and spawns a goroutine in the background that regularily flushed the logged output to the given sink.
If the passed in ctx is canceled the goroutine will exit.
func (*IntervalProcessWriter) Close ¶
func (l *IntervalProcessWriter) Close() error
Close blocks until all pending writes have been flushed to the buffer. It then causes the underlying goroutine to exit.
func (*IntervalProcessWriter) StderrWriter ¶
func (l *IntervalProcessWriter) StderrWriter() io.Writer
SterrWriter returns an io.Writer that prefixes every line with "stderr: "
func (*IntervalProcessWriter) StdoutWriter ¶
func (l *IntervalProcessWriter) StdoutWriter() io.Writer
StdoutWriter returns an io.Writer that prefixes every line with "stdout: "
type JSONLines ¶
type JSONLines struct {
BinaryDiffs bool
}
func (*JSONLines) ApplyingBatchSpec ¶
func (ui *JSONLines) ApplyingBatchSpec()
func (*JSONLines) ApplyingBatchSpecSuccess ¶
func (*JSONLines) CheckingCache ¶
func (ui *JSONLines) CheckingCache()
func (*JSONLines) CheckingCacheSuccess ¶
func (*JSONLines) CreatingBatchSpec ¶
func (ui *JSONLines) CreatingBatchSpec()
func (*JSONLines) CreatingBatchSpecError ¶
func (*JSONLines) CreatingBatchSpecSuccess ¶
func (*JSONLines) DeterminingWorkspaceCreatorType ¶
func (ui *JSONLines) DeterminingWorkspaceCreatorType()
func (*JSONLines) DeterminingWorkspaceCreatorTypeSuccess ¶
func (ui *JSONLines) DeterminingWorkspaceCreatorTypeSuccess(wt workspace.CreatorType)
func (*JSONLines) DeterminingWorkspaces ¶
func (ui *JSONLines) DeterminingWorkspaces()
func (*JSONLines) DeterminingWorkspacesSuccess ¶
func (ui *JSONLines) DeterminingWorkspacesSuccess(workspacesCount, reposCount int, unsupported batches.UnsupportedRepoSet, ignored batches.IgnoredRepoSet)
func (*JSONLines) DockerWatchDogWarning ¶
func (*JSONLines) ExecutingTasks ¶
func (ui *JSONLines) ExecutingTasks(_ bool, _ int) executor.TaskExecutionUI
func (*JSONLines) ExecutingTasksSkippingErrors ¶
func (*JSONLines) ExecutionError ¶
func (*JSONLines) LogFilesKept ¶
func (*JSONLines) NoChangesetSpecs ¶
func (ui *JSONLines) NoChangesetSpecs()
func (*JSONLines) ParsingBatchSpec ¶
func (ui *JSONLines) ParsingBatchSpec()
func (*JSONLines) ParsingBatchSpecFailure ¶
func (*JSONLines) ParsingBatchSpecSuccess ¶
func (ui *JSONLines) ParsingBatchSpecSuccess()
func (*JSONLines) PreparingContainerImages ¶
func (ui *JSONLines) PreparingContainerImages()
func (*JSONLines) PreparingContainerImagesProgress ¶
func (*JSONLines) PreparingContainerImagesSuccess ¶
func (ui *JSONLines) PreparingContainerImagesSuccess()
func (*JSONLines) PreviewBatchSpec ¶
func (*JSONLines) ResolvingNamespace ¶
func (ui *JSONLines) ResolvingNamespace()
func (*JSONLines) ResolvingNamespaceSuccess ¶
func (*JSONLines) UploadingChangesetSpecs ¶
func (*JSONLines) UploadingChangesetSpecsProgress ¶
func (*JSONLines) UploadingChangesetSpecsSuccess ¶
func (ui *JSONLines) UploadingChangesetSpecsSuccess(ids []graphql.ChangesetSpecID)
func (*JSONLines) UploadingWorkspaceFiles ¶
func (ui *JSONLines) UploadingWorkspaceFiles()
func (*JSONLines) UploadingWorkspaceFilesSuccess ¶
func (ui *JSONLines) UploadingWorkspaceFilesSuccess()
func (*JSONLines) UploadingWorkspaceFilesWarning ¶
func (*JSONLines) WriteAfterStepResult ¶
func (ui *JSONLines) WriteAfterStepResult(key string, value execution.AfterStepResult)
type TUI ¶
func (*TUI) ApplyingBatchSpec ¶
func (ui *TUI) ApplyingBatchSpec()
func (*TUI) ApplyingBatchSpecSuccess ¶
func (*TUI) CheckingCache ¶
func (ui *TUI) CheckingCache()
func (*TUI) CheckingCacheSuccess ¶
func (*TUI) CreatingBatchSpec ¶
func (ui *TUI) CreatingBatchSpec()
func (*TUI) CreatingBatchSpecError ¶
func (*TUI) CreatingBatchSpecSuccess ¶
func (*TUI) DeterminingWorkspaceCreatorType ¶
func (ui *TUI) DeterminingWorkspaceCreatorType()
func (*TUI) DeterminingWorkspaceCreatorTypeSuccess ¶
func (ui *TUI) DeterminingWorkspaceCreatorTypeSuccess(wt workspace.CreatorType)
func (*TUI) DeterminingWorkspaces ¶
func (ui *TUI) DeterminingWorkspaces()
func (*TUI) DeterminingWorkspacesSuccess ¶
func (ui *TUI) DeterminingWorkspacesSuccess(workspacesCount, reposCount int, unsupported batches.UnsupportedRepoSet, ignored batches.IgnoredRepoSet)
func (*TUI) DockerWatchDogWarning ¶
func (*TUI) ExecutingBatchSpec ¶
func (ui *TUI) ExecutingBatchSpec()
func (*TUI) ExecutingBatchSpecSuccess ¶
func (ui *TUI) ExecutingBatchSpecSuccess()
func (*TUI) ExecutingTasks ¶
func (ui *TUI) ExecutingTasks(verbose bool, parallelism int) executor.TaskExecutionUI
func (*TUI) ExecutingTasksSkippingErrors ¶
func (*TUI) ExecutionError ¶
func (*TUI) LogFilesKept ¶
func (*TUI) NoChangesetSpecs ¶
func (ui *TUI) NoChangesetSpecs()
func (*TUI) ParsingBatchSpec ¶
func (ui *TUI) ParsingBatchSpec()
func (*TUI) ParsingBatchSpecFailure ¶
func (*TUI) ParsingBatchSpecSuccess ¶
func (ui *TUI) ParsingBatchSpecSuccess()
func (*TUI) PreparingContainerImages ¶
func (ui *TUI) PreparingContainerImages()
func (*TUI) PreparingContainerImagesProgress ¶
func (*TUI) PreparingContainerImagesSuccess ¶
func (ui *TUI) PreparingContainerImagesSuccess()
func (*TUI) PreviewBatchSpec ¶
func (*TUI) RemoteSuccess ¶
func (*TUI) ResolvingNamespace ¶
func (ui *TUI) ResolvingNamespace()
func (*TUI) ResolvingNamespaceSuccess ¶
func (*TUI) ResolvingWorkspaces ¶
func (ui *TUI) ResolvingWorkspaces()
func (*TUI) ResolvingWorkspacesSuccess ¶
func (*TUI) SendingBatchChange ¶
func (ui *TUI) SendingBatchChange()
func (*TUI) SendingBatchChangeSuccess ¶
func (ui *TUI) SendingBatchChangeSuccess()
func (*TUI) SendingBatchSpec ¶
func (ui *TUI) SendingBatchSpec()
func (*TUI) SendingBatchSpecSuccess ¶
func (ui *TUI) SendingBatchSpecSuccess()
func (*TUI) UploadingChangesetSpecs ¶
func (*TUI) UploadingChangesetSpecsProgress ¶
func (*TUI) UploadingChangesetSpecsSuccess ¶
func (ui *TUI) UploadingChangesetSpecsSuccess(ids []graphql.ChangesetSpecID)
func (*TUI) UploadingWorkspaceFiles ¶
func (ui *TUI) UploadingWorkspaceFiles()
func (*TUI) UploadingWorkspaceFilesSuccess ¶
func (ui *TUI) UploadingWorkspaceFilesSuccess()
func (*TUI) UploadingWorkspaceFilesWarning ¶
Click to show internal directories.
Click to hide internal directories.