luci: go.chromium.org/luci/gce/api/tasks/v1 Index | Files

package tasks

import "go.chromium.org/luci/gce/api/tasks/v1"

Package tasks contains task queue task definitions.

Index

Package Files

doc.go generate.go tasks.go tasks.pb.go

type CountVMs Uses

type CountVMs struct {
    // The ID of the config whose VMs to count.
    Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A task to count the VMs in a config.

func (*CountVMs) Descriptor Uses

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

func (*CountVMs) GetId Uses

func (m *CountVMs) GetId() string

func (*CountVMs) ProtoMessage Uses

func (*CountVMs) ProtoMessage()

func (*CountVMs) Reset Uses

func (m *CountVMs) Reset()

func (*CountVMs) String Uses

func (m *CountVMs) String() string

func (*CountVMs) XXX_DiscardUnknown Uses

func (m *CountVMs) XXX_DiscardUnknown()

func (*CountVMs) XXX_Marshal Uses

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

func (*CountVMs) XXX_Merge Uses

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

func (*CountVMs) XXX_Size Uses

func (m *CountVMs) XXX_Size() int

func (*CountVMs) XXX_Unmarshal Uses

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

type CreateInstance Uses

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

A task to create a GCE instance from a VM.

func (*CreateInstance) Descriptor Uses

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

func (*CreateInstance) GetId Uses

func (m *CreateInstance) GetId() string

func (*CreateInstance) ProtoMessage Uses

func (*CreateInstance) ProtoMessage()

func (*CreateInstance) Reset Uses

func (m *CreateInstance) Reset()

func (*CreateInstance) String Uses

func (m *CreateInstance) String() string

func (*CreateInstance) XXX_DiscardUnknown Uses

func (m *CreateInstance) XXX_DiscardUnknown()

func (*CreateInstance) XXX_Marshal Uses

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

func (*CreateInstance) XXX_Merge Uses

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

func (*CreateInstance) XXX_Size Uses

func (m *CreateInstance) XXX_Size() int

func (*CreateInstance) XXX_Unmarshal Uses

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

type CreateVM Uses

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

A task to create a particular VM.

func (*CreateVM) Descriptor Uses

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

func (*CreateVM) GetAttributes Uses

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

func (*CreateVM) GetConfig Uses

func (m *CreateVM) GetConfig() string

func (*CreateVM) GetCreated Uses

func (m *CreateVM) GetCreated() *timestamp.Timestamp

func (*CreateVM) GetId Uses

func (m *CreateVM) GetId() string

func (*CreateVM) GetIndex Uses

func (m *CreateVM) GetIndex() int32

func (*CreateVM) GetLifetime Uses

func (m *CreateVM) GetLifetime() int64

func (*CreateVM) GetPrefix Uses

func (m *CreateVM) GetPrefix() string

func (*CreateVM) GetRevision Uses

func (m *CreateVM) GetRevision() string

func (*CreateVM) GetSwarming Uses

func (m *CreateVM) GetSwarming() string

func (*CreateVM) GetTimeout Uses

func (m *CreateVM) GetTimeout() int64

func (*CreateVM) ProtoMessage Uses

func (*CreateVM) ProtoMessage()

func (*CreateVM) Reset Uses

func (m *CreateVM) Reset()

func (*CreateVM) String Uses

func (m *CreateVM) String() string

func (*CreateVM) XXX_DiscardUnknown Uses

func (m *CreateVM) XXX_DiscardUnknown()

func (*CreateVM) XXX_Marshal Uses

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

func (*CreateVM) XXX_Merge Uses

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

func (*CreateVM) XXX_Size Uses

func (m *CreateVM) XXX_Size() int

func (*CreateVM) XXX_Unmarshal Uses

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

type DeleteBot Uses

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

A task to delete a Swarming bot associated with a VM.

func (*DeleteBot) Descriptor Uses

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

func (*DeleteBot) GetHostname Uses

func (m *DeleteBot) GetHostname() string

func (*DeleteBot) GetId Uses

func (m *DeleteBot) GetId() string

func (*DeleteBot) ProtoMessage Uses

func (*DeleteBot) ProtoMessage()

func (*DeleteBot) Reset Uses

func (m *DeleteBot) Reset()

func (*DeleteBot) String Uses

func (m *DeleteBot) String() string

func (*DeleteBot) XXX_DiscardUnknown Uses

func (m *DeleteBot) XXX_DiscardUnknown()

func (*DeleteBot) XXX_Marshal Uses

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

func (*DeleteBot) XXX_Merge Uses

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

func (*DeleteBot) XXX_Size Uses

func (m *DeleteBot) XXX_Size() int

func (*DeleteBot) XXX_Unmarshal Uses

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

type DestroyInstance Uses

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

A task to destroy a GCE instance created from a VM.

func (*DestroyInstance) Descriptor Uses

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

func (*DestroyInstance) GetId Uses

func (m *DestroyInstance) GetId() string

func (*DestroyInstance) GetUrl Uses

func (m *DestroyInstance) GetUrl() string

func (*DestroyInstance) ProtoMessage Uses

func (*DestroyInstance) ProtoMessage()

func (*DestroyInstance) Reset Uses

func (m *DestroyInstance) Reset()

func (*DestroyInstance) String Uses

func (m *DestroyInstance) String() string

func (*DestroyInstance) XXX_DiscardUnknown Uses

func (m *DestroyInstance) XXX_DiscardUnknown()

func (*DestroyInstance) XXX_Marshal Uses

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

func (*DestroyInstance) XXX_Merge Uses

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

func (*DestroyInstance) XXX_Size Uses

func (m *DestroyInstance) XXX_Size() int

func (*DestroyInstance) XXX_Unmarshal Uses

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

type ExpandConfig Uses

type ExpandConfig struct {
    // The ID of the config to expand.
    Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A task to expand a config.

func (*ExpandConfig) Descriptor Uses

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

func (*ExpandConfig) GetId Uses

func (m *ExpandConfig) GetId() string

func (*ExpandConfig) ProtoMessage Uses

func (*ExpandConfig) ProtoMessage()

func (*ExpandConfig) Reset Uses

func (m *ExpandConfig) Reset()

func (*ExpandConfig) String Uses

func (m *ExpandConfig) String() string

func (*ExpandConfig) XXX_DiscardUnknown Uses

func (m *ExpandConfig) XXX_DiscardUnknown()

func (*ExpandConfig) XXX_Marshal Uses

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

func (*ExpandConfig) XXX_Merge Uses

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

func (*ExpandConfig) XXX_Size Uses

func (m *ExpandConfig) XXX_Size() int

func (*ExpandConfig) XXX_Unmarshal Uses

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

type ManageBot Uses

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

A task to manage a Swarming bot associated with a VM.

func (*ManageBot) Descriptor Uses

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

func (*ManageBot) GetId Uses

func (m *ManageBot) GetId() string

func (*ManageBot) ProtoMessage Uses

func (*ManageBot) ProtoMessage()

func (*ManageBot) Reset Uses

func (m *ManageBot) Reset()

func (*ManageBot) String Uses

func (m *ManageBot) String() string

func (*ManageBot) XXX_DiscardUnknown Uses

func (m *ManageBot) XXX_DiscardUnknown()

func (*ManageBot) XXX_Marshal Uses

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

func (*ManageBot) XXX_Merge Uses

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

func (*ManageBot) XXX_Size Uses

func (m *ManageBot) XXX_Size() int

func (*ManageBot) XXX_Unmarshal Uses

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

type ReportQuota Uses

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

A task to report GCE quota utilization.

func (*ReportQuota) Descriptor Uses

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

func (*ReportQuota) GetId Uses

func (m *ReportQuota) GetId() string

func (*ReportQuota) ProtoMessage Uses

func (*ReportQuota) ProtoMessage()

func (*ReportQuota) Reset Uses

func (m *ReportQuota) Reset()

func (*ReportQuota) String Uses

func (m *ReportQuota) String() string

func (*ReportQuota) XXX_DiscardUnknown Uses

func (m *ReportQuota) XXX_DiscardUnknown()

func (*ReportQuota) XXX_Marshal Uses

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

func (*ReportQuota) XXX_Merge Uses

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

func (*ReportQuota) XXX_Size Uses

func (m *ReportQuota) XXX_Size() int

func (*ReportQuota) XXX_Unmarshal Uses

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

type Task Uses

type Task interface {
    GetId() string
}

Task is a task with an ID.

type TerminateBot Uses

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

A task to terminate a Swarming bot associated with a VM.

func (*TerminateBot) Descriptor Uses

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

func (*TerminateBot) GetHostname Uses

func (m *TerminateBot) GetHostname() string

func (*TerminateBot) GetId Uses

func (m *TerminateBot) GetId() string

func (*TerminateBot) ProtoMessage Uses

func (*TerminateBot) ProtoMessage()

func (*TerminateBot) Reset Uses

func (m *TerminateBot) Reset()

func (*TerminateBot) String Uses

func (m *TerminateBot) String() string

func (*TerminateBot) XXX_DiscardUnknown Uses

func (m *TerminateBot) XXX_DiscardUnknown()

func (*TerminateBot) XXX_Marshal Uses

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

func (*TerminateBot) XXX_Merge Uses

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

func (*TerminateBot) XXX_Size Uses

func (m *TerminateBot) XXX_Size() int

func (*TerminateBot) XXX_Unmarshal Uses

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

Package tasks imports 5 packages (graph) and is imported by 1 packages. Updated 2019-07-20. Refresh now. Tools for package owners.