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
- func GetCmdChromiumOSSDK(authOpts auth.Options) *subcommands.Command
- func GetCmdCreatePreMPKeys(authOpts auth.Options) *subcommands.Command
- func GetCmdFactory(authOpts auth.Options) *subcommands.Command
- func GetCmdFirmware(authOpts auth.Options) *subcommands.Command
- func GetCmdRelease(authOpts auth.Options) *subcommands.Command
- func GetCmdRetry() *subcommands.Command
- type Client
- type RetryClient
- type RetryRunOpts
Constants ¶
const ( Success = 0 UnspecifiedError = 1 NotImplementedError = 2 AuthError = 3 CmdError = 4 )
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 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.