tasks

package
Version: v0.0.0-...-51f9457 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package tasks contains task queue task definitions.

Index

Constants

This section is empty.

Variables

View Source
var File_go_chromium_org_luci_gce_api_tasks_v1_tasks_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

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

This method has been deprecated.
func (*CountVMs) Descriptor() ([]byte, []int)

Deprecated: Use CountVMs.ProtoReflect.Descriptor instead.

func (*CountVMs) GetId

func (x *CountVMs) GetId() string

func (*CountVMs) ProtoMessage

func (*CountVMs) ProtoMessage()

func (*CountVMs) ProtoReflect

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

func (*CountVMs) Reset

func (x *CountVMs) Reset()

func (*CountVMs) String

func (x *CountVMs) String() string

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

This method has been 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

This method has been deprecated.
func (*CreateVM) Descriptor() ([]byte, []int)

Deprecated: Use CreateVM.ProtoReflect.Descriptor instead.

func (*CreateVM) GetAttributes

func (x *CreateVM) GetAttributes() *v1.VM

func (*CreateVM) GetConfig

func (x *CreateVM) GetConfig() string

func (*CreateVM) GetCreated

func (x *CreateVM) GetCreated() *timestamppb.Timestamp

func (*CreateVM) GetId

func (x *CreateVM) GetId() string

func (*CreateVM) GetIndex

func (x *CreateVM) GetIndex() int32

func (*CreateVM) GetLifetime

func (x *CreateVM) GetLifetime() int64

func (*CreateVM) GetPrefix

func (x *CreateVM) GetPrefix() string

func (*CreateVM) GetRevision

func (x *CreateVM) GetRevision() string

func (*CreateVM) GetSwarming

func (x *CreateVM) GetSwarming() string

func (*CreateVM) GetTimeout

func (x *CreateVM) GetTimeout() int64

func (*CreateVM) ProtoMessage

func (*CreateVM) ProtoMessage()

func (*CreateVM) ProtoReflect

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

func (*CreateVM) Reset

func (x *CreateVM) Reset()

func (*CreateVM) String

func (x *CreateVM) String() string

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

This method has been deprecated.
func (*DeleteBot) Descriptor() ([]byte, []int)

Deprecated: Use DeleteBot.ProtoReflect.Descriptor instead.

func (*DeleteBot) GetHostname

func (x *DeleteBot) GetHostname() string

func (*DeleteBot) GetId

func (x *DeleteBot) GetId() string

func (*DeleteBot) ProtoMessage

func (*DeleteBot) ProtoMessage()

func (*DeleteBot) ProtoReflect

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

func (*DeleteBot) Reset

func (x *DeleteBot) Reset()

func (*DeleteBot) String

func (x *DeleteBot) String() string

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

This method has been 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

This method has been 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

This method has been deprecated.
func (*ManageBot) Descriptor() ([]byte, []int)

Deprecated: Use ManageBot.ProtoReflect.Descriptor instead.

func (*ManageBot) GetId

func (x *ManageBot) GetId() string

func (*ManageBot) ProtoMessage

func (*ManageBot) ProtoMessage()

func (*ManageBot) ProtoReflect

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

func (*ManageBot) Reset

func (x *ManageBot) Reset()

func (*ManageBot) String

func (x *ManageBot) String() string

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

This method has been 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 Task

type Task interface {
	GetId() string
}

Task is a task with an ID.

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

This method has been 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL