try

package
v0.0.0-...-293b33e Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: BSD-3-Clause Imports: 25 Imported by: 0

Documentation

Overview

Copyright 2023 The Chromium Authors Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Copyright 2024 The Chromium Authors Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Copyright 2022 The Chromium Authors Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Copyright 2022 The Chromium Authors Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Copyright 2022 The ChromiumOS Authors. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Copyright 2022 The ChromiumOS Authors. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Copyright 2022 The Chromium Authors Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Copyright 2022 The ChromiumOS Authors. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Index

Constants

View Source
const (
	Success             = 0
	UnspecifiedError    = 1
	NotImplementedError = 2
	AuthError           = 3
	CmdError            = 4
)
View Source
const PatchRegexpPattern = `^crrev\.com\/([ci])\/(\d+)$`

Variables

This section is empty.

Functions

func GetCmdChromiumOSSDK

func GetCmdChromiumOSSDK(authOpts auth.Options) *subcommands.Command

func GetCmdCreatePreMPKeys

func GetCmdCreatePreMPKeys(authOpts auth.Options) *subcommands.Command

func GetCmdFactory

func GetCmdFactory(authOpts auth.Options) *subcommands.Command

func GetCmdFirmware

func GetCmdFirmware(authOpts auth.Options) *subcommands.Command

func GetCmdRelease

func GetCmdRelease(authOpts auth.Options) *subcommands.Command

func GetCmdRetry

func GetCmdRetry() *subcommands.Command

Types

type Client

type Client struct{}

Client is an actual implementation of RetryClient.

func (*Client) DoRetry

func (c *Client) DoRetry(opts *RetryRunOpts) (string, error)

DoRetry offers an entry point to `cros try retry`. Returns the BBID of the new build.

type RetryClient

type RetryClient interface {
	DoRetry(opts *RetryRunOpts) (string, error)
}

RetryClient allows users to call `cros try retry` through code instead of the CLI.

type RetryRunOpts

type RetryRunOpts struct {
	StdoutLog *log.Logger
	StderrLog *log.Logger
	CmdRunner cmd.CommandRunner
	// Used for testing purposes. If set, props will be written to this file
	// rather than a temporary one.
	PropsFile *os.File

	BBID   string
	Dryrun bool
}

RunRetryOpts contains options for the RetryClient.

Jump to

Keyboard shortcuts

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