Documentation
¶
Overview ¶
Package tasks contains task queue task definitions.
Index ¶
- Variables
- type AuditProject
- func (*AuditProject) Descriptor() ([]byte, []int)deprecated
- func (x *AuditProject) GetPageToken() string
- func (x *AuditProject) GetProject() string
- func (x *AuditProject) GetZone() string
- func (*AuditProject) ProtoMessage()
- func (x *AuditProject) ProtoReflect() protoreflect.Message
- func (x *AuditProject) Reset()
- func (x *AuditProject) String() string
- type CountVMs
- type CreateInstance
- type CreateVM
- func (*CreateVM) Descriptor() ([]byte, []int)deprecated
- func (x *CreateVM) GetAttributes() *v1.VM
- func (x *CreateVM) GetConfig() string
- func (x *CreateVM) GetCreated() *timestamppb.Timestamp
- func (x *CreateVM) GetId() string
- func (x *CreateVM) GetIndex() int32
- func (x *CreateVM) GetLifetime() int64
- func (x *CreateVM) GetPrefix() string
- func (x *CreateVM) GetRevision() string
- func (x *CreateVM) GetSwarming() string
- func (x *CreateVM) GetTimeout() int64
- func (*CreateVM) ProtoMessage()
- func (x *CreateVM) ProtoReflect() protoreflect.Message
- func (x *CreateVM) Reset()
- func (x *CreateVM) String() string
- type DeleteBot
- type DestroyInstance
- func (*DestroyInstance) Descriptor() ([]byte, []int)deprecated
- func (x *DestroyInstance) GetId() string
- func (x *DestroyInstance) GetUrl() string
- func (*DestroyInstance) ProtoMessage()
- func (x *DestroyInstance) ProtoReflect() protoreflect.Message
- func (x *DestroyInstance) Reset()
- func (x *DestroyInstance) String() string
- type ExpandConfig
- type ManageBot
- type ReportQuota
- type Task
- type TerminateBot
- func (*TerminateBot) Descriptor() ([]byte, []int)deprecated
- func (x *TerminateBot) GetHostname() string
- func (x *TerminateBot) GetId() string
- func (*TerminateBot) ProtoMessage()
- func (x *TerminateBot) ProtoReflect() protoreflect.Message
- func (x *TerminateBot) Reset()
- func (x *TerminateBot) String() string
Constants ¶
This section is empty.
Variables ¶
var File_go_chromium_org_luci_gce_api_tasks_v1_tasks_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AuditProject ¶
type AuditProject struct { // The name of the project to audit Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` // The GCE zone to audit Zone string `protobuf:"bytes,2,opt,name=zone,proto3" json:"zone,omitempty"` // Page token to use with the query PageToken string `protobuf:"bytes,3,opt,name=pageToken,proto3" json:"pageToken,omitempty"` // contains filtered or unexported fields }
A task to audit the project and instances alive within the project
func (*AuditProject) Descriptor
deprecated
func (*AuditProject) Descriptor() ([]byte, []int)
Deprecated: Use AuditProject.ProtoReflect.Descriptor instead.
func (*AuditProject) GetPageToken ¶
func (x *AuditProject) GetPageToken() string
func (*AuditProject) GetProject ¶
func (x *AuditProject) GetProject() string
func (*AuditProject) GetZone ¶
func (x *AuditProject) GetZone() string
func (*AuditProject) ProtoMessage ¶
func (*AuditProject) ProtoMessage()
func (*AuditProject) ProtoReflect ¶
func (x *AuditProject) ProtoReflect() protoreflect.Message
func (*AuditProject) Reset ¶
func (x *AuditProject) Reset()
func (*AuditProject) String ¶
func (x *AuditProject) String() string
type CountVMs ¶
type CountVMs struct { // The ID of the config whose VMs to count. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
A task to count the VMs in a config.
func (*CountVMs) Descriptor
deprecated
func (*CountVMs) ProtoMessage ¶
func (*CountVMs) ProtoMessage()
func (*CountVMs) ProtoReflect ¶
func (x *CountVMs) ProtoReflect() protoreflect.Message
type CreateInstance ¶
type CreateInstance struct { // The ID of the VM to create a GCE instance from. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
A task to create a GCE instance from a VM.
func (*CreateInstance) Descriptor
deprecated
func (*CreateInstance) Descriptor() ([]byte, []int)
Deprecated: Use CreateInstance.ProtoReflect.Descriptor instead.
func (*CreateInstance) GetId ¶
func (x *CreateInstance) GetId() string
func (*CreateInstance) ProtoMessage ¶
func (*CreateInstance) ProtoMessage()
func (*CreateInstance) ProtoReflect ¶
func (x *CreateInstance) ProtoReflect() protoreflect.Message
func (*CreateInstance) Reset ¶
func (x *CreateInstance) Reset()
func (*CreateInstance) String ¶
func (x *CreateInstance) String() string
type CreateVM ¶
type CreateVM struct { // The ID of the VM to create. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The attributes of the VM. Attributes *v1.VM `protobuf:"bytes,2,opt,name=attributes,proto3" json:"attributes,omitempty"` // The ID of the config this VM belongs to. Config string `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"` // The timestamp when this task was created. Created *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` // The index of the VM to create. Index int32 `protobuf:"varint,5,opt,name=index,proto3" json:"index,omitempty"` // The lifetime of the VM in seconds. Lifetime int64 `protobuf:"varint,6,opt,name=lifetime,proto3" json:"lifetime,omitempty"` // The prefix to use when naming this VM. Prefix string `protobuf:"bytes,7,opt,name=prefix,proto3" json:"prefix,omitempty"` // The config revision this VM is created from. Revision string `protobuf:"bytes,8,opt,name=revision,proto3" json:"revision,omitempty"` // The hostname of the Swarming server this VM connects to. Swarming string `protobuf:"bytes,9,opt,name=swarming,proto3" json:"swarming,omitempty"` // The timeout of the VM in seconds. Timeout int64 `protobuf:"varint,10,opt,name=timeout,proto3" json:"timeout,omitempty"` // contains filtered or unexported fields }
A task to create a particular VM.
func (*CreateVM) Descriptor
deprecated
func (*CreateVM) GetAttributes ¶
func (*CreateVM) GetCreated ¶
func (x *CreateVM) GetCreated() *timestamppb.Timestamp
func (*CreateVM) GetLifetime ¶
func (*CreateVM) GetRevision ¶
func (*CreateVM) GetSwarming ¶
func (*CreateVM) GetTimeout ¶
func (*CreateVM) ProtoMessage ¶
func (*CreateVM) ProtoMessage()
func (*CreateVM) ProtoReflect ¶
func (x *CreateVM) ProtoReflect() protoreflect.Message
type DeleteBot ¶
type DeleteBot struct { // The ID of the VM to delete a Swarming bot for. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The hostname of the Swarming bot to delete. Hostname string `protobuf:"bytes,2,opt,name=hostname,proto3" json:"hostname,omitempty"` // contains filtered or unexported fields }
A task to delete a Swarming bot associated with a VM.
func (*DeleteBot) Descriptor
deprecated
func (*DeleteBot) GetHostname ¶
func (*DeleteBot) ProtoMessage ¶
func (*DeleteBot) ProtoMessage()
func (*DeleteBot) ProtoReflect ¶
func (x *DeleteBot) ProtoReflect() protoreflect.Message
type DestroyInstance ¶
type DestroyInstance struct { // The ID of the VM to destroy a GCE instance for. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The URL of the GCE instance to destroy. Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
A task to destroy a GCE instance created from a VM.
func (*DestroyInstance) Descriptor
deprecated
func (*DestroyInstance) Descriptor() ([]byte, []int)
Deprecated: Use DestroyInstance.ProtoReflect.Descriptor instead.
func (*DestroyInstance) GetId ¶
func (x *DestroyInstance) GetId() string
func (*DestroyInstance) GetUrl ¶
func (x *DestroyInstance) GetUrl() string
func (*DestroyInstance) ProtoMessage ¶
func (*DestroyInstance) ProtoMessage()
func (*DestroyInstance) ProtoReflect ¶
func (x *DestroyInstance) ProtoReflect() protoreflect.Message
func (*DestroyInstance) Reset ¶
func (x *DestroyInstance) Reset()
func (*DestroyInstance) String ¶
func (x *DestroyInstance) String() string
type ExpandConfig ¶
type ExpandConfig struct { // The ID of the config to expand. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
A task to expand a config.
func (*ExpandConfig) Descriptor
deprecated
func (*ExpandConfig) Descriptor() ([]byte, []int)
Deprecated: Use ExpandConfig.ProtoReflect.Descriptor instead.
func (*ExpandConfig) GetId ¶
func (x *ExpandConfig) GetId() string
func (*ExpandConfig) ProtoMessage ¶
func (*ExpandConfig) ProtoMessage()
func (*ExpandConfig) ProtoReflect ¶
func (x *ExpandConfig) ProtoReflect() protoreflect.Message
func (*ExpandConfig) Reset ¶
func (x *ExpandConfig) Reset()
func (*ExpandConfig) String ¶
func (x *ExpandConfig) String() string
type ManageBot ¶
type ManageBot struct { // The ID of the VM to manage a Swarming bot for. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
A task to manage a Swarming bot associated with a VM.
func (*ManageBot) Descriptor
deprecated
func (*ManageBot) ProtoMessage ¶
func (*ManageBot) ProtoMessage()
func (*ManageBot) ProtoReflect ¶
func (x *ManageBot) ProtoReflect() protoreflect.Message
type ReportQuota ¶
type ReportQuota struct { // The ID of the project to report quota utilization for. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
A task to report GCE quota utilization.
func (*ReportQuota) Descriptor
deprecated
func (*ReportQuota) Descriptor() ([]byte, []int)
Deprecated: Use ReportQuota.ProtoReflect.Descriptor instead.
func (*ReportQuota) GetId ¶
func (x *ReportQuota) GetId() string
func (*ReportQuota) ProtoMessage ¶
func (*ReportQuota) ProtoMessage()
func (*ReportQuota) ProtoReflect ¶
func (x *ReportQuota) ProtoReflect() protoreflect.Message
func (*ReportQuota) Reset ¶
func (x *ReportQuota) Reset()
func (*ReportQuota) String ¶
func (x *ReportQuota) String() string
type TerminateBot ¶
type TerminateBot struct { // The ID of the VM to terminate a Swarming bot for. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The hostname of the Swarming bot to terminate. Hostname string `protobuf:"bytes,2,opt,name=hostname,proto3" json:"hostname,omitempty"` // contains filtered or unexported fields }
A task to terminate a Swarming bot associated with a VM.
func (*TerminateBot) Descriptor
deprecated
func (*TerminateBot) Descriptor() ([]byte, []int)
Deprecated: Use TerminateBot.ProtoReflect.Descriptor instead.
func (*TerminateBot) GetHostname ¶
func (x *TerminateBot) GetHostname() string
func (*TerminateBot) GetId ¶
func (x *TerminateBot) GetId() string
func (*TerminateBot) ProtoMessage ¶
func (*TerminateBot) ProtoMessage()
func (*TerminateBot) ProtoReflect ¶
func (x *TerminateBot) ProtoReflect() protoreflect.Message
func (*TerminateBot) Reset ¶
func (x *TerminateBot) Reset()
func (*TerminateBot) String ¶
func (x *TerminateBot) String() string