Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ChromeOSProvision_Status_name = map[int32]string{
		0: "STATUS_UNKNOWN",
		1: "STATUS_PASS",
		2: "STATUS_FAIL",
		3: "STATUS_ABORT",
	}
	ChromeOSProvision_Status_value = map[string]int32{
		"STATUS_UNKNOWN": 0,
		"STATUS_PASS":    1,
		"STATUS_FAIL":    2,
		"STATUS_ABORT":   3,
	}
)

    Enum value maps for ChromeOSProvision_Status.

    View Source
    var (
    	ChromeOSProvision_Step_Name_name = map[int32]string{
    		0: "NAME_UNDEFINED",
    		1: "NAME_PRE_PROVISION",
    		2: "NAME_ON_KERNEL",
    		3: "NAME_ON_ROOT_FS",
    		4: "NAME_ON_STATEFUL",
    		5: "NAME_POST_INST",
    		6: "NAME_POST_PROVISION",
    	}
    	ChromeOSProvision_Step_Name_value = map[string]int32{
    		"NAME_UNDEFINED":      0,
    		"NAME_PRE_PROVISION":  1,
    		"NAME_ON_KERNEL":      2,
    		"NAME_ON_ROOT_FS":     3,
    		"NAME_ON_STATEFUL":    4,
    		"NAME_POST_INST":      5,
    		"NAME_POST_PROVISION": 6,
    	}
    )

      Enum value maps for ChromeOSProvision_Step_Name.

      View Source
      var File_lab_platform_cros_provision_events_proto protoreflect.FileDescriptor
      View Source
      var File_lab_platform_dut_state_proto protoreflect.FileDescriptor
      View Source
      var File_lab_platform_stable_cros_version_proto protoreflect.FileDescriptor
      View Source
      var File_lab_platform_stable_faft_version_proto protoreflect.FileDescriptor
      View Source
      var File_lab_platform_stable_firmware_version_proto protoreflect.FileDescriptor
      View Source
      var File_lab_platform_stable_version_key_proto protoreflect.FileDescriptor
      View Source
      var File_lab_platform_stable_version_proto protoreflect.FileDescriptor

      Functions

      This section is empty.

      Types

      type ChromeOSProvision

      type ChromeOSProvision struct {
      
      	// The URL of either AFE job or Swarming task.
      	TaskUrl string `protobuf:"bytes,1,opt,name=task_url,json=taskUrl,proto3" json:"task_url,omitempty"`
      	// The hostname of the DUT.
      	Hostname string `protobuf:"bytes,2,opt,name=hostname,proto3" json:"hostname,omitempty"`
      	// The image version to be provisioned, e.g. board-release/R12-34567.0.0.
      	Image string `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"`
      	// The original image version before provisioning.
      	OriginalImage string               `protobuf:"bytes,4,opt,name=original_image,json=originalImage,proto3" json:"original_image,omitempty"`
      	StartedTime   *timestamp.Timestamp `protobuf:"bytes,5,opt,name=started_time,json=startedTime,proto3" json:"started_time,omitempty"`
      	FinishedTime  *timestamp.Timestamp `protobuf:"bytes,6,opt,name=finished_time,json=finishedTime,proto3" json:"finished_time,omitempty"`
      	// file_server describes the hostname:port of devserver/gs_cache server, e.g.
      	// 'chromeos6-devserver4:8888'.
      	FileServer string                    `protobuf:"bytes,7,opt,name=file_server,json=fileServer,proto3" json:"file_server,omitempty"`
      	Step       []*ChromeOSProvision_Step `protobuf:"bytes,8,rep,name=step,proto3" json:"step,omitempty"`
      	Status     ChromeOSProvision_Status  `protobuf:"varint,9,opt,name=status,proto3,enum=lab_platform.ChromeOSProvision_Status" json:"status,omitempty"`
      	Reason     string                    `protobuf:"bytes,10,opt,name=reason,proto3" json:"reason,omitempty"`
      	// contains filtered or unexported fields
      }

        ChromeOSProvision defines the provision events. It contains DUT and image information, as well as the details operations done on the DUT. Next Tag: 11

        func (*ChromeOSProvision) Descriptor

        func (*ChromeOSProvision) Descriptor() ([]byte, []int)

          Deprecated: Use ChromeOSProvision.ProtoReflect.Descriptor instead.

          func (*ChromeOSProvision) GetFileServer

          func (x *ChromeOSProvision) GetFileServer() string

          func (*ChromeOSProvision) GetFinishedTime

          func (x *ChromeOSProvision) GetFinishedTime() *timestamp.Timestamp

          func (*ChromeOSProvision) GetHostname

          func (x *ChromeOSProvision) GetHostname() string

          func (*ChromeOSProvision) GetImage

          func (x *ChromeOSProvision) GetImage() string

          func (*ChromeOSProvision) GetOriginalImage

          func (x *ChromeOSProvision) GetOriginalImage() string

          func (*ChromeOSProvision) GetReason

          func (x *ChromeOSProvision) GetReason() string

          func (*ChromeOSProvision) GetStartedTime

          func (x *ChromeOSProvision) GetStartedTime() *timestamp.Timestamp

          func (*ChromeOSProvision) GetStatus

          func (*ChromeOSProvision) GetStep

          func (x *ChromeOSProvision) GetStep() []*ChromeOSProvision_Step

          func (*ChromeOSProvision) GetTaskUrl

          func (x *ChromeOSProvision) GetTaskUrl() string

          func (*ChromeOSProvision) ProtoMessage

          func (*ChromeOSProvision) ProtoMessage()

          func (*ChromeOSProvision) ProtoReflect

          func (x *ChromeOSProvision) ProtoReflect() protoreflect.Message

          func (*ChromeOSProvision) Reset

          func (x *ChromeOSProvision) Reset()

          func (*ChromeOSProvision) String

          func (x *ChromeOSProvision) String() string

          type ChromeOSProvision_Status

          type ChromeOSProvision_Status int32

            Status defines the result for each step or the whole provision process to be reported.

            const (
            	ChromeOSProvision_STATUS_UNKNOWN ChromeOSProvision_Status = 0
            	ChromeOSProvision_STATUS_PASS    ChromeOSProvision_Status = 1
            	ChromeOSProvision_STATUS_FAIL    ChromeOSProvision_Status = 2
            	ChromeOSProvision_STATUS_ABORT   ChromeOSProvision_Status = 3
            )

            func (ChromeOSProvision_Status) Descriptor

            func (ChromeOSProvision_Status) Enum

            func (ChromeOSProvision_Status) EnumDescriptor

            func (ChromeOSProvision_Status) EnumDescriptor() ([]byte, []int)

              Deprecated: Use ChromeOSProvision_Status.Descriptor instead.

              func (ChromeOSProvision_Status) Number

              func (ChromeOSProvision_Status) String

              func (x ChromeOSProvision_Status) String() string

              func (ChromeOSProvision_Status) Type

              type ChromeOSProvision_Step

              type ChromeOSProvision_Step struct {
              	Name         ChromeOSProvision_Step_Name `protobuf:"varint,1,opt,name=name,proto3,enum=lab_platform.ChromeOSProvision_Step_Name" json:"name,omitempty"`
              	StartedTime  *timestamp.Timestamp        `protobuf:"bytes,2,opt,name=started_time,json=startedTime,proto3" json:"started_time,omitempty"`
              	FinishedTime *timestamp.Timestamp        `protobuf:"bytes,3,opt,name=finished_time,json=finishedTime,proto3" json:"finished_time,omitempty"`
              	Status       ChromeOSProvision_Status    `protobuf:"varint,4,opt,name=status,proto3,enum=lab_platform.ChromeOSProvision_Status" json:"status,omitempty"`
              	Reason       string                      `protobuf:"bytes,5,opt,name=reason,proto3" json:"reason,omitempty"`
              	// contains filtered or unexported fields
              }

                Step defines the detail operations in a provision.

                func (*ChromeOSProvision_Step) Descriptor

                func (*ChromeOSProvision_Step) Descriptor() ([]byte, []int)

                  Deprecated: Use ChromeOSProvision_Step.ProtoReflect.Descriptor instead.

                  func (*ChromeOSProvision_Step) GetFinishedTime

                  func (x *ChromeOSProvision_Step) GetFinishedTime() *timestamp.Timestamp

                  func (*ChromeOSProvision_Step) GetName

                  func (*ChromeOSProvision_Step) GetReason

                  func (x *ChromeOSProvision_Step) GetReason() string

                  func (*ChromeOSProvision_Step) GetStartedTime

                  func (x *ChromeOSProvision_Step) GetStartedTime() *timestamp.Timestamp

                  func (*ChromeOSProvision_Step) GetStatus

                  func (*ChromeOSProvision_Step) ProtoMessage

                  func (*ChromeOSProvision_Step) ProtoMessage()

                  func (*ChromeOSProvision_Step) ProtoReflect

                  func (x *ChromeOSProvision_Step) ProtoReflect() protoreflect.Message

                  func (*ChromeOSProvision_Step) Reset

                  func (x *ChromeOSProvision_Step) Reset()

                  func (*ChromeOSProvision_Step) String

                  func (x *ChromeOSProvision_Step) String() string

                  type ChromeOSProvision_Step_Name

                  type ChromeOSProvision_Step_Name int32
                  const (
                  	ChromeOSProvision_Step_NAME_UNDEFINED     ChromeOSProvision_Step_Name = 0
                  	ChromeOSProvision_Step_NAME_PRE_PROVISION ChromeOSProvision_Step_Name = 1 // Operations to prepare DUT before provision.
                  	ChromeOSProvision_Step_NAME_ON_KERNEL     ChromeOSProvision_Step_Name = 2 // Write to kernel.
                  	ChromeOSProvision_Step_NAME_ON_ROOT_FS    ChromeOSProvision_Step_Name = 3 // Write to root file system.
                  	ChromeOSProvision_Step_NAME_ON_STATEFUL   ChromeOSProvision_Step_Name = 4 // Write to stateful partition.
                  	// Post-install process, e.g. update firmware, set next kernel, etc.
                  	ChromeOSProvision_Step_NAME_POST_INST      ChromeOSProvision_Step_Name = 5
                  	ChromeOSProvision_Step_NAME_POST_PROVISION ChromeOSProvision_Step_Name = 6 // Operations to verify if provision is good.
                  )

                  func (ChromeOSProvision_Step_Name) Descriptor

                  func (ChromeOSProvision_Step_Name) Enum

                  func (ChromeOSProvision_Step_Name) EnumDescriptor

                  func (ChromeOSProvision_Step_Name) EnumDescriptor() ([]byte, []int)

                    Deprecated: Use ChromeOSProvision_Step_Name.Descriptor instead.

                    func (ChromeOSProvision_Step_Name) Number

                    func (ChromeOSProvision_Step_Name) String

                    func (ChromeOSProvision_Step_Name) Type

                    type DutState

                    type DutState struct {
                    
                    	// OS and/or fw versions installed on the DUT, e.g.
                    	// {"cros-version":"terra-release/R75-12105.108.0"}.
                    	// Used to construct variable bot dimensions.
                    	ProvisionableLabels map[string]string `` /* 181-byte string literal not displayed */
                    	// Variable DUT attributes, e.g.
                    	// {"job_repo_url":"http://devserver_ip:8082/static/terra-release/R75-12105.108.0/autotest/packages"}.
                    	// Are fed into the Autotest harness via the host info file.
                    	ProvisionableAttributes map[string]string `` /* 189-byte string literal not displayed */
                    	// contains filtered or unexported fields
                    }

                      DutState defines the structure of the file used to cache variable DUT information on the drone.

                      func (*DutState) Descriptor

                      func (*DutState) Descriptor() ([]byte, []int)

                        Deprecated: Use DutState.ProtoReflect.Descriptor instead.

                        func (*DutState) GetProvisionableAttributes

                        func (x *DutState) GetProvisionableAttributes() map[string]string

                        func (*DutState) GetProvisionableLabels

                        func (x *DutState) GetProvisionableLabels() map[string]string

                        func (*DutState) ProtoMessage

                        func (*DutState) ProtoMessage()

                        func (*DutState) ProtoReflect

                        func (x *DutState) ProtoReflect() protoreflect.Message

                        func (*DutState) Reset

                        func (x *DutState) Reset()

                        func (*DutState) String

                        func (x *DutState) String() string

                        type StableCrosVersion

                        type StableCrosVersion struct {
                        	Key     *StableVersionKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
                        	Version string            `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
                        	// contains filtered or unexported fields
                        }

                          StableCrosVersion describes a ChromeOS version with a given stable version ID. next tag: 3

                          func (*StableCrosVersion) Descriptor

                          func (*StableCrosVersion) Descriptor() ([]byte, []int)

                            Deprecated: Use StableCrosVersion.ProtoReflect.Descriptor instead.

                            func (*StableCrosVersion) GetKey

                            func (x *StableCrosVersion) GetKey() *StableVersionKey

                            func (*StableCrosVersion) GetVersion

                            func (x *StableCrosVersion) GetVersion() string

                            func (*StableCrosVersion) ProtoMessage

                            func (*StableCrosVersion) ProtoMessage()

                            func (*StableCrosVersion) ProtoReflect

                            func (x *StableCrosVersion) ProtoReflect() protoreflect.Message

                            func (*StableCrosVersion) Reset

                            func (x *StableCrosVersion) Reset()

                            func (*StableCrosVersion) String

                            func (x *StableCrosVersion) String() string

                            type StableFaftVersion

                            type StableFaftVersion struct {
                            	Key     *StableVersionKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
                            	Version string            `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
                            	// contains filtered or unexported fields
                            }

                              FaftVersion is an association between a given ChromeOS version and a string uniquely identifying the faft firmware version. next tag: 3

                              func (*StableFaftVersion) Descriptor

                              func (*StableFaftVersion) Descriptor() ([]byte, []int)

                                Deprecated: Use StableFaftVersion.ProtoReflect.Descriptor instead.

                                func (*StableFaftVersion) GetKey

                                func (x *StableFaftVersion) GetKey() *StableVersionKey

                                func (*StableFaftVersion) GetVersion

                                func (x *StableFaftVersion) GetVersion() string

                                func (*StableFaftVersion) ProtoMessage

                                func (*StableFaftVersion) ProtoMessage()

                                func (*StableFaftVersion) ProtoReflect

                                func (x *StableFaftVersion) ProtoReflect() protoreflect.Message

                                func (*StableFaftVersion) Reset

                                func (x *StableFaftVersion) Reset()

                                func (*StableFaftVersion) String

                                func (x *StableFaftVersion) String() string

                                type StableFirmwareVersion

                                type StableFirmwareVersion struct {
                                	Key     *StableVersionKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
                                	Version string            `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
                                	// A fragment of the Google Storage location for a firmware image.
                                	// The motivating use case is the devserver API as of 2021 Q1.
                                	//
                                	// e.g. "SOMEBOARD-firmware/R80-14444.333.0", which maps to
                                	// gs://some-bucket/[[image]]/name-of-firmware-bundle.tgz .
                                	//
                                	// This fragment can be consumed by the devserver API and permits
                                	// users to download an firmware bundle without downloading
                                	// the entire OS image that it is part of.
                                	Image string `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"`
                                	// contains filtered or unexported fields
                                }

                                  StableFirmwareVersion is an association between a given ChromeOS version and a string uniquely identifying the firmware version. next tag: 4

                                  func (*StableFirmwareVersion) Descriptor

                                  func (*StableFirmwareVersion) Descriptor() ([]byte, []int)

                                    Deprecated: Use StableFirmwareVersion.ProtoReflect.Descriptor instead.

                                    func (*StableFirmwareVersion) GetImage

                                    func (x *StableFirmwareVersion) GetImage() string

                                    func (*StableFirmwareVersion) GetKey

                                    func (*StableFirmwareVersion) GetVersion

                                    func (x *StableFirmwareVersion) GetVersion() string

                                    func (*StableFirmwareVersion) ProtoMessage

                                    func (*StableFirmwareVersion) ProtoMessage()

                                    func (*StableFirmwareVersion) ProtoReflect

                                    func (x *StableFirmwareVersion) ProtoReflect() protoreflect.Message

                                    func (*StableFirmwareVersion) Reset

                                    func (x *StableFirmwareVersion) Reset()

                                    func (*StableFirmwareVersion) String

                                    func (x *StableFirmwareVersion) String() string

                                    type StableVersionKey

                                    type StableVersionKey struct {
                                    	ModelId     *device.ModelId         `protobuf:"bytes,1,opt,name=model_id,json=modelId,proto3" json:"model_id,omitempty"`
                                    	BuildTarget *chromiumos.BuildTarget `protobuf:"bytes,2,opt,name=build_target,json=buildTarget,proto3" json:"build_target,omitempty"`
                                    	// contains filtered or unexported fields
                                    }

                                      Next Tag: 3

                                      func (*StableVersionKey) Descriptor

                                      func (*StableVersionKey) Descriptor() ([]byte, []int)

                                        Deprecated: Use StableVersionKey.ProtoReflect.Descriptor instead.

                                        func (*StableVersionKey) GetBuildTarget

                                        func (x *StableVersionKey) GetBuildTarget() *chromiumos.BuildTarget

                                        func (*StableVersionKey) GetModelId

                                        func (x *StableVersionKey) GetModelId() *device.ModelId

                                        func (*StableVersionKey) ProtoMessage

                                        func (*StableVersionKey) ProtoMessage()

                                        func (*StableVersionKey) ProtoReflect

                                        func (x *StableVersionKey) ProtoReflect() protoreflect.Message

                                        func (*StableVersionKey) Reset

                                        func (x *StableVersionKey) Reset()

                                        func (*StableVersionKey) String

                                        func (x *StableVersionKey) String() string

                                        type StableVersions

                                        type StableVersions struct {
                                        	Cros     []*StableCrosVersion     `protobuf:"bytes,1,rep,name=cros,proto3" json:"cros,omitempty"`
                                        	Faft     []*StableFaftVersion     `protobuf:"bytes,2,rep,name=faft,proto3" json:"faft,omitempty"`
                                        	Firmware []*StableFirmwareVersion `protobuf:"bytes,3,rep,name=firmware,proto3" json:"firmware,omitempty"`
                                        	// contains filtered or unexported fields
                                        }

                                          StableVersions is a structure containing all of the versions for various components: CrOS itself, the firmware image, and the testing firmware image (faft). Next Tag: 4

                                          func (*StableVersions) Descriptor

                                          func (*StableVersions) Descriptor() ([]byte, []int)

                                            Deprecated: Use StableVersions.ProtoReflect.Descriptor instead.

                                            func (*StableVersions) GetCros

                                            func (x *StableVersions) GetCros() []*StableCrosVersion

                                            func (*StableVersions) GetFaft

                                            func (x *StableVersions) GetFaft() []*StableFaftVersion

                                            func (*StableVersions) GetFirmware

                                            func (x *StableVersions) GetFirmware() []*StableFirmwareVersion

                                            func (*StableVersions) ProtoMessage

                                            func (*StableVersions) ProtoMessage()

                                            func (*StableVersions) ProtoReflect

                                            func (x *StableVersions) ProtoReflect() protoreflect.Message

                                            func (*StableVersions) Reset

                                            func (x *StableVersions) Reset()

                                            func (*StableVersions) String

                                            func (x *StableVersions) String() string