Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DeleteStableVersionCmd = &subcommands.Command{ UsageLine: `delete-stable-version`, ShortDesc: `Delete the stable version using {board, model} or {hostname}. This only deletes satlab entries.`, CommandRun: func() subcommands.CommandRun { r := &deleteStableVersionRun{} r.authFlags.Register(&r.Flags, site.DefaultAuthOptions) r.envFlags.Register(&r.Flags) r.commonFlags.Register(&r.Flags) r.Flags.StringVar(&r.board, "board", "", `the board or build target (used with model)`) r.Flags.StringVar(&r.model, "model", "", `the model (used with board)`) r.Flags.StringVar(&r.hostname, "hostname", "", `the hostname (used by itself)`) return r }, }
DeleteStableVersionCmd deletes a stable version entry.
View Source
var GetStableVersionCmd = &subcommands.Command{ UsageLine: `get-stable-version`, ShortDesc: `Get the stable version`, CommandRun: func() subcommands.CommandRun { r := &getStableVersionRun{} r.authFlags.Register(&r.Flags, site.DefaultAuthOptions) r.envFlags.Register(&r.Flags) r.commonFlags.Register(&r.Flags) r.Flags.StringVar(&r.board, "board", "", "the board or build target") r.Flags.StringVar(&r.model, "model", "", "the model") r.Flags.StringVar(&r.hostname, "hostname", "", "the hostname") return r }, }
GetStableVersionCmd is a command for the GetStableVersion RPC. It intentionally performs no validation of its own and forwards requests to CSA as is.
View Source
var SetStableVersionCmd = &subcommands.Command{ UsageLine: `set-stable-version`, ShortDesc: `Set the stable version using {board, model} or {hostname}.`, LongDesc: `Set the stable version of ChromeOS, Firmware and Firmware Image (aka faftVersion). Here we have two strategies. The first is for partners when the user use a {board, model}. The partner user must also specify all of the {os, fw, fwImage} or none of them. Then we set stable version based on the live OS version. Second is for Googler when user uses a {hostname}. The Google user must also specify {os, fw, fwImage} xor {os, flex}.`, CommandRun: func() subcommands.CommandRun { r := &setStableVersionRun{} r.authFlags.Register(&r.Flags, site.DefaultAuthOptions) r.envFlags.Register(&r.Flags) r.commonFlags.Register(&r.Flags) r.Flags.StringVar(&r.board, "board", "", `the board or build target (used with model)`) r.Flags.StringVar(&r.model, "model", "", `the model (used with board)`) r.Flags.StringVar(&r.hostname, "hostname", "", `the hostname (used by itself)`) r.Flags.StringVar(&r.os, "os", "", `the OS version (aka crosVersion) to set (used with {-fw & -fwImage} or {-flex})`) r.Flags.StringVar(&r.fw, "fw", "", `the firmware version (aka firmwareVersion) to set (used with -os & -fwImage)`) r.Flags.StringVar(&r.fwImage, "fwImage", "", `the firmware image version (aka faftVersion) to set (used with -os & -fw)`) r.Flags.BoolVar(&r.isFlex, "flex", false, `force to set OS version only (internal users only for ChromeOS Flex)`) return r }, }
Functions ¶
This section is empty.
Types ¶
type MoblabClient ¶
type MoblabClient interface { FindMostStableBuild(ctx context.Context, req *moblabpb.FindMostStableBuildRequest, opts ...gax.CallOption) (*moblabpb.FindMostStableBuildResponse, error) ListBuilds(ctx context.Context, req *moblabpb.ListBuildsRequest, opts ...gax.CallOption) *moblab.BuildIterator StageBuild(ctx context.Context, req *moblabpb.StageBuildRequest, opts ...gax.CallOption) (*moblab.StageBuildOperation, error) CheckBuildStageStatus(ctx context.Context, req *moblabpb.CheckBuildStageStatusRequest, opts ...gax.CallOption) (*moblabpb.CheckBuildStageStatusResponse, error) }
MoblabClient interface provides subset of Moblab API methods relevant to Stable Version functionality
Click to show internal directories.
Click to hide internal directories.