proto: go.chromium.org/chromiumos/infra/proto/go/lab_platform Index | Files

package lab_platform

import "go.chromium.org/chromiumos/infra/proto/go/lab_platform"

Index

Package Files

cros_provision_events.pb.go dut_state.pb.go stable_cros_version.pb.go stable_faft_version.pb.go stable_firmware_version.pb.go stable_version.pb.go stable_version_key.pb.go

Variables

var ChromeOSProvision_Status_name = map[int32]string{
    0:  "STATUS_UNKNOWN",
    1:  "STATUS_PASS",
    2:  "STATUS_FAIL",
    3:  "STATUS_ABORT",
}
var ChromeOSProvision_Status_value = map[string]int32{
    "STATUS_UNKNOWN": 0,
    "STATUS_PASS":    1,
    "STATUS_FAIL":    2,
    "STATUS_ABORT":   3,
}
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",
}
var 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,
}

type ChromeOSProvision Uses

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"`
    XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
    XXX_unrecognized     []byte                    `json:"-"`
    XXX_sizecache        int32                     `json:"-"`
}

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 Uses

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

func (*ChromeOSProvision) GetFileServer Uses

func (m *ChromeOSProvision) GetFileServer() string

func (*ChromeOSProvision) GetFinishedTime Uses

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

func (*ChromeOSProvision) GetHostname Uses

func (m *ChromeOSProvision) GetHostname() string

func (*ChromeOSProvision) GetImage Uses

func (m *ChromeOSProvision) GetImage() string

func (*ChromeOSProvision) GetOriginalImage Uses

func (m *ChromeOSProvision) GetOriginalImage() string

func (*ChromeOSProvision) GetReason Uses

func (m *ChromeOSProvision) GetReason() string

func (*ChromeOSProvision) GetStartedTime Uses

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

func (*ChromeOSProvision) GetStatus Uses

func (m *ChromeOSProvision) GetStatus() ChromeOSProvision_Status

func (*ChromeOSProvision) GetStep Uses

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

func (*ChromeOSProvision) GetTaskUrl Uses

func (m *ChromeOSProvision) GetTaskUrl() string

func (*ChromeOSProvision) ProtoMessage Uses

func (*ChromeOSProvision) ProtoMessage()

func (*ChromeOSProvision) Reset Uses

func (m *ChromeOSProvision) Reset()

func (*ChromeOSProvision) String Uses

func (m *ChromeOSProvision) String() string

func (*ChromeOSProvision) XXX_DiscardUnknown Uses

func (m *ChromeOSProvision) XXX_DiscardUnknown()

func (*ChromeOSProvision) XXX_Marshal Uses

func (m *ChromeOSProvision) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChromeOSProvision) XXX_Merge Uses

func (m *ChromeOSProvision) XXX_Merge(src proto.Message)

func (*ChromeOSProvision) XXX_Size Uses

func (m *ChromeOSProvision) XXX_Size() int

func (*ChromeOSProvision) XXX_Unmarshal Uses

func (m *ChromeOSProvision) XXX_Unmarshal(b []byte) error

type ChromeOSProvision_Status Uses

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) EnumDescriptor Uses

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

func (ChromeOSProvision_Status) String Uses

func (x ChromeOSProvision_Status) String() string

type ChromeOSProvision_Step Uses

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"`
    XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
    XXX_unrecognized     []byte                      `json:"-"`
    XXX_sizecache        int32                       `json:"-"`
}

Step defines the detail operations in a provision.

func (*ChromeOSProvision_Step) Descriptor Uses

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

func (*ChromeOSProvision_Step) GetFinishedTime Uses

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

func (*ChromeOSProvision_Step) GetName Uses

func (m *ChromeOSProvision_Step) GetName() ChromeOSProvision_Step_Name

func (*ChromeOSProvision_Step) GetReason Uses

func (m *ChromeOSProvision_Step) GetReason() string

func (*ChromeOSProvision_Step) GetStartedTime Uses

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

func (*ChromeOSProvision_Step) GetStatus Uses

func (m *ChromeOSProvision_Step) GetStatus() ChromeOSProvision_Status

func (*ChromeOSProvision_Step) ProtoMessage Uses

func (*ChromeOSProvision_Step) ProtoMessage()

func (*ChromeOSProvision_Step) Reset Uses

func (m *ChromeOSProvision_Step) Reset()

func (*ChromeOSProvision_Step) String Uses

func (m *ChromeOSProvision_Step) String() string

func (*ChromeOSProvision_Step) XXX_DiscardUnknown Uses

func (m *ChromeOSProvision_Step) XXX_DiscardUnknown()

func (*ChromeOSProvision_Step) XXX_Marshal Uses

func (m *ChromeOSProvision_Step) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChromeOSProvision_Step) XXX_Merge Uses

func (m *ChromeOSProvision_Step) XXX_Merge(src proto.Message)

func (*ChromeOSProvision_Step) XXX_Size Uses

func (m *ChromeOSProvision_Step) XXX_Size() int

func (*ChromeOSProvision_Step) XXX_Unmarshal Uses

func (m *ChromeOSProvision_Step) XXX_Unmarshal(b []byte) error

type ChromeOSProvision_Step_Name Uses

type ChromeOSProvision_Step_Name int32
const (
    ChromeOSProvision_Step_NAME_UNDEFINED     ChromeOSProvision_Step_Name = 0
    ChromeOSProvision_Step_NAME_PRE_PROVISION ChromeOSProvision_Step_Name = 1
    ChromeOSProvision_Step_NAME_ON_KERNEL     ChromeOSProvision_Step_Name = 2
    ChromeOSProvision_Step_NAME_ON_ROOT_FS    ChromeOSProvision_Step_Name = 3
    ChromeOSProvision_Step_NAME_ON_STATEFUL   ChromeOSProvision_Step_Name = 4
    // 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
)

func (ChromeOSProvision_Step_Name) EnumDescriptor Uses

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

func (ChromeOSProvision_Step_Name) String Uses

func (x ChromeOSProvision_Step_Name) String() string

type DutState Uses

type DutState struct {
    // DUT health description, e.g. "ready", "needs_repair" etc.
    State string `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
    // 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 `protobuf:"bytes,2,rep,name=provisionable_labels,proto3" json:"provisionable_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    // 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 `protobuf:"bytes,3,rep,name=provisionable_attributes,proto3" json:"provisionable_attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    XXX_NoUnkeyedLiteral    struct{}          `json:"-"`
    XXX_unrecognized        []byte            `json:"-"`
    XXX_sizecache           int32             `json:"-"`
}

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

func (*DutState) Descriptor Uses

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

func (*DutState) GetProvisionableAttributes Uses

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

func (*DutState) GetProvisionableLabels Uses

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

func (*DutState) GetState Uses

func (m *DutState) GetState() string

func (*DutState) ProtoMessage Uses

func (*DutState) ProtoMessage()

func (*DutState) Reset Uses

func (m *DutState) Reset()

func (*DutState) String Uses

func (m *DutState) String() string

func (*DutState) XXX_DiscardUnknown Uses

func (m *DutState) XXX_DiscardUnknown()

func (*DutState) XXX_Marshal Uses

func (m *DutState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DutState) XXX_Merge Uses

func (m *DutState) XXX_Merge(src proto.Message)

func (*DutState) XXX_Size Uses

func (m *DutState) XXX_Size() int

func (*DutState) XXX_Unmarshal Uses

func (m *DutState) XXX_Unmarshal(b []byte) error

type StableCrosVersion Uses

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"`
    XXX_NoUnkeyedLiteral struct{}          `json:"-"`
    XXX_unrecognized     []byte            `json:"-"`
    XXX_sizecache        int32             `json:"-"`
}

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

func (*StableCrosVersion) Descriptor Uses

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

func (*StableCrosVersion) GetKey Uses

func (m *StableCrosVersion) GetKey() *StableVersionKey

func (*StableCrosVersion) GetVersion Uses

func (m *StableCrosVersion) GetVersion() string

func (*StableCrosVersion) ProtoMessage Uses

func (*StableCrosVersion) ProtoMessage()

func (*StableCrosVersion) Reset Uses

func (m *StableCrosVersion) Reset()

func (*StableCrosVersion) String Uses

func (m *StableCrosVersion) String() string

func (*StableCrosVersion) XXX_DiscardUnknown Uses

func (m *StableCrosVersion) XXX_DiscardUnknown()

func (*StableCrosVersion) XXX_Marshal Uses

func (m *StableCrosVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StableCrosVersion) XXX_Merge Uses

func (m *StableCrosVersion) XXX_Merge(src proto.Message)

func (*StableCrosVersion) XXX_Size Uses

func (m *StableCrosVersion) XXX_Size() int

func (*StableCrosVersion) XXX_Unmarshal Uses

func (m *StableCrosVersion) XXX_Unmarshal(b []byte) error

type StableFaftVersion Uses

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"`
    XXX_NoUnkeyedLiteral struct{}          `json:"-"`
    XXX_unrecognized     []byte            `json:"-"`
    XXX_sizecache        int32             `json:"-"`
}

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

func (*StableFaftVersion) Descriptor Uses

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

func (*StableFaftVersion) GetKey Uses

func (m *StableFaftVersion) GetKey() *StableVersionKey

func (*StableFaftVersion) GetVersion Uses

func (m *StableFaftVersion) GetVersion() string

func (*StableFaftVersion) ProtoMessage Uses

func (*StableFaftVersion) ProtoMessage()

func (*StableFaftVersion) Reset Uses

func (m *StableFaftVersion) Reset()

func (*StableFaftVersion) String Uses

func (m *StableFaftVersion) String() string

func (*StableFaftVersion) XXX_DiscardUnknown Uses

func (m *StableFaftVersion) XXX_DiscardUnknown()

func (*StableFaftVersion) XXX_Marshal Uses

func (m *StableFaftVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StableFaftVersion) XXX_Merge Uses

func (m *StableFaftVersion) XXX_Merge(src proto.Message)

func (*StableFaftVersion) XXX_Size Uses

func (m *StableFaftVersion) XXX_Size() int

func (*StableFaftVersion) XXX_Unmarshal Uses

func (m *StableFaftVersion) XXX_Unmarshal(b []byte) error

type StableFirmwareVersion Uses

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"`
    XXX_NoUnkeyedLiteral struct{}          `json:"-"`
    XXX_unrecognized     []byte            `json:"-"`
    XXX_sizecache        int32             `json:"-"`
}

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

func (*StableFirmwareVersion) Descriptor Uses

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

func (*StableFirmwareVersion) GetKey Uses

func (m *StableFirmwareVersion) GetKey() *StableVersionKey

func (*StableFirmwareVersion) GetVersion Uses

func (m *StableFirmwareVersion) GetVersion() string

func (*StableFirmwareVersion) ProtoMessage Uses

func (*StableFirmwareVersion) ProtoMessage()

func (*StableFirmwareVersion) Reset Uses

func (m *StableFirmwareVersion) Reset()

func (*StableFirmwareVersion) String Uses

func (m *StableFirmwareVersion) String() string

func (*StableFirmwareVersion) XXX_DiscardUnknown Uses

func (m *StableFirmwareVersion) XXX_DiscardUnknown()

func (*StableFirmwareVersion) XXX_Marshal Uses

func (m *StableFirmwareVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StableFirmwareVersion) XXX_Merge Uses

func (m *StableFirmwareVersion) XXX_Merge(src proto.Message)

func (*StableFirmwareVersion) XXX_Size Uses

func (m *StableFirmwareVersion) XXX_Size() int

func (*StableFirmwareVersion) XXX_Unmarshal Uses

func (m *StableFirmwareVersion) XXX_Unmarshal(b []byte) error

type StableVersionKey Uses

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"`
    XXX_NoUnkeyedLiteral struct{}                `json:"-"`
    XXX_unrecognized     []byte                  `json:"-"`
    XXX_sizecache        int32                   `json:"-"`
}

Next Tag: 3

func (*StableVersionKey) Descriptor Uses

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

func (*StableVersionKey) GetBuildTarget Uses

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

func (*StableVersionKey) GetModelId Uses

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

func (*StableVersionKey) ProtoMessage Uses

func (*StableVersionKey) ProtoMessage()

func (*StableVersionKey) Reset Uses

func (m *StableVersionKey) Reset()

func (*StableVersionKey) String Uses

func (m *StableVersionKey) String() string

func (*StableVersionKey) XXX_DiscardUnknown Uses

func (m *StableVersionKey) XXX_DiscardUnknown()

func (*StableVersionKey) XXX_Marshal Uses

func (m *StableVersionKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StableVersionKey) XXX_Merge Uses

func (m *StableVersionKey) XXX_Merge(src proto.Message)

func (*StableVersionKey) XXX_Size Uses

func (m *StableVersionKey) XXX_Size() int

func (*StableVersionKey) XXX_Unmarshal Uses

func (m *StableVersionKey) XXX_Unmarshal(b []byte) error

type StableVersions Uses

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"`
    XXX_NoUnkeyedLiteral struct{}                 `json:"-"`
    XXX_unrecognized     []byte                   `json:"-"`
    XXX_sizecache        int32                    `json:"-"`
}

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 Uses

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

func (*StableVersions) GetCros Uses

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

func (*StableVersions) GetFaft Uses

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

func (*StableVersions) GetFirmware Uses

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

func (*StableVersions) ProtoMessage Uses

func (*StableVersions) ProtoMessage()

func (*StableVersions) Reset Uses

func (m *StableVersions) Reset()

func (*StableVersions) String Uses

func (m *StableVersions) String() string

func (*StableVersions) XXX_DiscardUnknown Uses

func (m *StableVersions) XXX_DiscardUnknown()

func (*StableVersions) XXX_Marshal Uses

func (m *StableVersions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StableVersions) XXX_Merge Uses

func (m *StableVersions) XXX_Merge(src proto.Message)

func (*StableVersions) XXX_Size Uses

func (m *StableVersions) XXX_Size() int

func (*StableVersions) XXX_Unmarshal Uses

func (m *StableVersions) XXX_Unmarshal(b []byte) error

Package lab_platform imports 6 packages (graph). Updated 2019-10-19. Refresh now. Tools for package owners.