Documentation ¶
Index ¶
- Constants
- Variables
- func ApplyPorcelainLogLevel(cmd *cobra.Command, _ []string)
- func CheckVersion(cmd *cobra.Command, args []string) error
- func DownloadResultsHandler(ctx context.Context, cmd *cobra.Command, jobID string, ...) error
- func EnsureValidVersion(ctx context.Context, clientVersion, serverVersion *models.BuildVersionInfo) error
- func ExecuteJob(ctx context.Context, j *model.Job, ...) (*model.Job, error)
- func FakeFatalErrorHandler(cmd *cobra.Command, msg error, code int)
- func GetAPIClient(ctx context.Context) *client.APIClient
- func GetAPIClientV2(ctx context.Context) *clientv2.Client
- func GetCleanupManager(ctx context.Context) *system.CleanupManager
- func GetDefaultJobFolder(jobID string) string
- func Logs(cmd *cobra.Command, jobID string, follow, history bool) error
- func ReadFromStdinIfAvailable(cmd *cobra.Command) ([]byte, error)
- type Msg
Constants ¶
View Source
const AutoDownloadFolderPerm = 0755
Variables ¶
View Source
var Fatal = fatalError
View Source
var LoggingMode = logger.LogModeDefault
View Source
var SystemManagerKey = contextKey{/* contains filtered or unexported fields */}
Functions ¶
func ApplyPorcelainLogLevel ¶
ApplyPorcelainLogLevel sets the log level of loggers running on user-facing "porcelain" commands to be zerolog.FatalLevel to reduce noise shown to users.
func DownloadResultsHandler ¶
func EnsureValidVersion ¶
func EnsureValidVersion(ctx context.Context, clientVersion, serverVersion *models.BuildVersionInfo) error
func ExecuteJob ¶
func FakeFatalErrorHandler ¶
FakeFatalErrorHandler captures the error for testing, responsibility of the test to handle the exit (if any) NOTE: If your test is not idempotent, you can cause side effects (the underlying function will continue to run) Returned as text JSON to wherever RootCmd is printing.
func GetCleanupManager ¶
func GetCleanupManager(ctx context.Context) *system.CleanupManager
func GetDefaultJobFolder ¶
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.