fleet

package
v0.0.0-...-6e5b399 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: BSD-3-Clause Imports: 5 Imported by: 0

README

#Unified fleet system's lib

[TOC]

Overview

This contains the libs used by the unified fleet system (UFS). For details of UFS, please refer to the UFS homepage

Protos

  • Please run generate.sh in protos/ to generate the go bindings.

Documentation

Overview

Package fleet contains fleet configurations for UFS service.

Index

Constants

This section is empty.

Variables

View Source
var (
	ResourceType_name = map[int32]string{
		0: "RESOURCETYPE_UNSPECIFIED",
		1: "RESOURCETYPE_CROS",
		2: "RESOURCETYPE_BROWSER",
	}
	ResourceType_value = map[string]int32{
		"RESOURCETYPE_UNSPECIFIED": 0,
		"RESOURCETYPE_CROS":        1,
		"RESOURCETYPE_BROWSER":     2,
	}
)

Enum value maps for ResourceType.

View Source
var (
	DeviceLabel_SOURCE_name = map[int32]string{
		0: "SOURCE_UNSPECIFIED",
		1: "SOURCE_HART",
		2: "SOURCE_HWID_SERVER",
		3: "SOURCE_MANUAL_INPUT",
		4: "SOURCE_AUTO_DETECTED",
	}
	DeviceLabel_SOURCE_value = map[string]int32{
		"SOURCE_UNSPECIFIED":   0,
		"SOURCE_HART":          1,
		"SOURCE_HWID_SERVER":   2,
		"SOURCE_MANUAL_INPUT":  3,
		"SOURCE_AUTO_DETECTED": 4,
	}
)

Enum value maps for DeviceLabel_SOURCE.

View Source
var File_go_chromium_org_infra_libs_fleet_device_labels_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Device

type Device struct {
	DeviceLabels []*DeviceLabel `protobuf:"bytes,1,rep,name=device_labels,json=deviceLabels,proto3" json:"device_labels,omitempty"`
	ResourceType ResourceType   `` /* 136-byte string literal not displayed */
	// contains filtered or unexported fields
}

NEXT TAG: 3

func (*Device) Descriptor deprecated

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

Deprecated: Use Device.ProtoReflect.Descriptor instead.

func (*Device) GetDeviceLabels

func (x *Device) GetDeviceLabels() []*DeviceLabel

func (*Device) GetResourceType

func (x *Device) GetResourceType() ResourceType

func (*Device) ProtoMessage

func (*Device) ProtoMessage()

func (*Device) ProtoReflect

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

func (*Device) Reset

func (x *Device) Reset()

func (*Device) String

func (x *Device) String() string

type DeviceLabel

type DeviceLabel struct {

	// The generic name of this label;
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// The id used in scheduling layer;
	SchedulableId string `protobuf:"bytes,2,opt,name=schedulable_id,json=schedulableId,proto3" json:"schedulable_id,omitempty"`
	// The value of labels used in scheduling layer;
	SchedulableValue *SchedulableValue `protobuf:"bytes,3,opt,name=schedulable_value,json=schedulableValue,proto3" json:"schedulable_value,omitempty"`
	// The source of this device label;
	Source DeviceLabel_SOURCE `protobuf:"varint,4,opt,name=source,proto3,enum=fleet.device.labels.DeviceLabel_SOURCE" json:"source,omitempty"`
	// The owner of this device label;
	Owner string `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"`
	// The reason to add this device label;
	ReasonToAdd string `protobuf:"bytes,6,opt,name=reason_to_add,json=reasonToAdd,proto3" json:"reason_to_add,omitempty"`
	// contains filtered or unexported fields
}

NEXT TAG: 7

func (*DeviceLabel) Descriptor deprecated

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

Deprecated: Use DeviceLabel.ProtoReflect.Descriptor instead.

func (*DeviceLabel) GetKey

func (x *DeviceLabel) GetKey() string

func (*DeviceLabel) GetOwner

func (x *DeviceLabel) GetOwner() string

func (*DeviceLabel) GetReasonToAdd

func (x *DeviceLabel) GetReasonToAdd() string

func (*DeviceLabel) GetSchedulableId

func (x *DeviceLabel) GetSchedulableId() string

func (*DeviceLabel) GetSchedulableValue

func (x *DeviceLabel) GetSchedulableValue() *SchedulableValue

func (*DeviceLabel) GetSource

func (x *DeviceLabel) GetSource() DeviceLabel_SOURCE

func (*DeviceLabel) ProtoMessage

func (*DeviceLabel) ProtoMessage()

func (*DeviceLabel) ProtoReflect

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

func (*DeviceLabel) Reset

func (x *DeviceLabel) Reset()

func (*DeviceLabel) String

func (x *DeviceLabel) String() string

type DeviceLabel_SOURCE

type DeviceLabel_SOURCE int32

NEXT TAG: 5

const (
	DeviceLabel_SOURCE_UNSPECIFIED   DeviceLabel_SOURCE = 0
	DeviceLabel_SOURCE_HART          DeviceLabel_SOURCE = 1
	DeviceLabel_SOURCE_HWID_SERVER   DeviceLabel_SOURCE = 2
	DeviceLabel_SOURCE_MANUAL_INPUT  DeviceLabel_SOURCE = 3
	DeviceLabel_SOURCE_AUTO_DETECTED DeviceLabel_SOURCE = 4
)

func (DeviceLabel_SOURCE) Descriptor

func (DeviceLabel_SOURCE) Enum

func (DeviceLabel_SOURCE) EnumDescriptor deprecated

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

Deprecated: Use DeviceLabel_SOURCE.Descriptor instead.

func (DeviceLabel_SOURCE) Number

func (DeviceLabel_SOURCE) String

func (x DeviceLabel_SOURCE) String() string

func (DeviceLabel_SOURCE) Type

type ResourceType

type ResourceType int32

NEXT TAG: 3

const (
	ResourceType_RESOURCETYPE_UNSPECIFIED ResourceType = 0
	ResourceType_RESOURCETYPE_CROS        ResourceType = 1
	ResourceType_RESOURCETYPE_BROWSER     ResourceType = 2
)

func (ResourceType) Descriptor

func (ResourceType) Enum

func (x ResourceType) Enum() *ResourceType

func (ResourceType) EnumDescriptor deprecated

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

Deprecated: Use ResourceType.Descriptor instead.

func (ResourceType) Number

func (ResourceType) String

func (x ResourceType) String() string

func (ResourceType) Type

type SchedulableValue

type SchedulableValue struct {
	SwarmingLabels []string `protobuf:"bytes,1,rep,name=swarming_labels,json=swarmingLabels,proto3" json:"swarming_labels,omitempty"`
	// contains filtered or unexported fields
}

Indicating the schedulable values, can be changed if the scheduling layer is changed.

func (*SchedulableValue) Descriptor deprecated

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

Deprecated: Use SchedulableValue.ProtoReflect.Descriptor instead.

func (*SchedulableValue) GetSwarmingLabels

func (x *SchedulableValue) GetSwarmingLabels() []string

func (*SchedulableValue) ProtoMessage

func (*SchedulableValue) ProtoMessage()

func (*SchedulableValue) ProtoReflect

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

func (*SchedulableValue) Reset

func (x *SchedulableValue) Reset()

func (*SchedulableValue) String

func (x *SchedulableValue) String() string

Directories

Path Synopsis
boxster
Package buildbucket contains all the necessary code to schedule a CTP build for running a test using buildbucket APIs.
Package buildbucket contains all the necessary code to schedule a CTP build for running a test using buildbucket APIs.
Package device contains helper functions for fleet devices.
Package device contains helper functions for fleet devices.
attacheddevice
Package attacheddevice contains library functions that help manipulate UFS Attached Device data for different Fleet services.
Package attacheddevice contains library functions that help manipulate UFS Attached Device data for different Fleet services.
dut
Package dut contains library functions that help manipulate UFS DUT data for different Fleet services.
Package dut contains library functions that help manipulate UFS DUT data for different Fleet services.
schedulingunit
Package schedulingunit contains library functions that help manipulate UFS scheduling unit data for different Fleet services.
Package schedulingunit contains library functions that help manipulate UFS scheduling unit data for different Fleet services.
Package devicelabel contains the implementation for generating scheduling labels or human-readable labels for fleet devices.
Package devicelabel contains the implementation for generating scheduling labels or human-readable labels for fleet devices.
Package scheduling implements a library for task scheduling.
Package scheduling implements a library for task scheduling.
api
Package api defines the API for managing test and task scheduling on Devices.
Package api defines the API for managing test and task scheduling on Devices.
schedulers
Package schedulers contains implementors of the TaskSchedulingAPI interface.
Package schedulers contains implementors of the TaskSchedulingAPI interface.

Jump to

Keyboard shortcuts

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