taskdefs

package
Version: v0.0.0-...-75fc2c6 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Overview

Package taskdefs contains task queue task definitions.

Index

Constants

This section is empty.

Variables

View Source
var File_go_chromium_org_luci_buildbucket_appengine_tasks_defs_tasks_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BuildsV2PubSub

type BuildsV2PubSub struct {

	// Contains all field except large fields
	Build *proto.Build `protobuf:"bytes,1,opt,name=build,proto3" json:"build,omitempty"`
	// A Compressed bytes in proto binary format of buildbucket.v2.Build where
	// it only contains the large build fields - build.input.properties,
	// build.output.properties and build.steps.
	BuildLargeFields []byte `protobuf:"bytes,2,opt,name=build_large_fields,json=buildLargeFields,proto3" json:"build_large_fields,omitempty"`
	// The compression method the above `build_large_fields` uses. By default, it
	// is ZLIB as this is the most common one and is the built-in lib in many
	// programming languages.
	Compression proto.Compression `protobuf:"varint,3,opt,name=compression,proto3,enum=buildbucket.v2.Compression" json:"compression,omitempty"`
	// contains filtered or unexported fields
}

BuildsV2PubSub is the "builds_v2" pubsub topic message data schema. Attributes of this pubsub message: - "project" - "bucket" - "builder" - "is_completed" (The value is either "true" or "false" in string.)

func (*BuildsV2PubSub) Descriptor deprecated

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

Deprecated: Use BuildsV2PubSub.ProtoReflect.Descriptor instead.

func (*BuildsV2PubSub) GetBuild

func (x *BuildsV2PubSub) GetBuild() *proto.Build

func (*BuildsV2PubSub) GetBuildLargeFields

func (x *BuildsV2PubSub) GetBuildLargeFields() []byte

func (*BuildsV2PubSub) GetCompression

func (x *BuildsV2PubSub) GetCompression() proto.Compression

func (*BuildsV2PubSub) ProtoMessage

func (*BuildsV2PubSub) ProtoMessage()

func (*BuildsV2PubSub) ProtoReflect

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

func (*BuildsV2PubSub) Reset

func (x *BuildsV2PubSub) Reset()

func (*BuildsV2PubSub) String

func (x *BuildsV2PubSub) String() string

type CancelBuildTask

type CancelBuildTask struct {

	// ID of a build in the datastore. See model.Build.
	BuildId int64 `protobuf:"varint,1,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"`
	// contains filtered or unexported fields
}

A task to cancel a build.

Besides canceling the build, the task also enqueues CancelBuildTask tasks for each of the build's children that cannot outlive it.

func (*CancelBuildTask) Descriptor deprecated

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

Deprecated: Use CancelBuildTask.ProtoReflect.Descriptor instead.

func (*CancelBuildTask) GetBuildId

func (x *CancelBuildTask) GetBuildId() int64

func (*CancelBuildTask) ProtoMessage

func (*CancelBuildTask) ProtoMessage()

func (*CancelBuildTask) ProtoReflect

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

func (*CancelBuildTask) Reset

func (x *CancelBuildTask) Reset()

func (*CancelBuildTask) String

func (x *CancelBuildTask) String() string

type CancelSwarmingTask

type CancelSwarmingTask struct {

	// Hostname (e.g. "chromium-swarm.appspot.com") where the task should be
	// cancelled.
	Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"`
	// Swarming task ID to cancel.
	TaskId string `protobuf:"bytes,2,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
	// LUCI realm the task belongs to or "" if realms is disabled.
	Realm string `protobuf:"bytes,3,opt,name=realm,proto3" json:"realm,omitempty"`
	// contains filtered or unexported fields
}

A task to cancel a Swarming task.

func (*CancelSwarmingTask) Descriptor deprecated

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

Deprecated: Use CancelSwarmingTask.ProtoReflect.Descriptor instead.

func (*CancelSwarmingTask) GetHostname

func (x *CancelSwarmingTask) GetHostname() string

func (*CancelSwarmingTask) GetRealm

func (x *CancelSwarmingTask) GetRealm() string

func (*CancelSwarmingTask) GetTaskId

func (x *CancelSwarmingTask) GetTaskId() string

func (*CancelSwarmingTask) ProtoMessage

func (*CancelSwarmingTask) ProtoMessage()

func (*CancelSwarmingTask) ProtoReflect

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

func (*CancelSwarmingTask) Reset

func (x *CancelSwarmingTask) Reset()

func (*CancelSwarmingTask) String

func (x *CancelSwarmingTask) String() string

type CreateBackendBuildTask

type CreateBackendBuildTask struct {
	BuildId int64 `protobuf:"varint,1,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"`
	// contains filtered or unexported fields
}

A task to create a backend task

func (*CreateBackendBuildTask) Descriptor deprecated

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

Deprecated: Use CreateBackendBuildTask.ProtoReflect.Descriptor instead.

func (*CreateBackendBuildTask) GetBuildId

func (x *CreateBackendBuildTask) GetBuildId() int64

func (*CreateBackendBuildTask) ProtoMessage

func (*CreateBackendBuildTask) ProtoMessage()

func (*CreateBackendBuildTask) ProtoReflect

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

func (*CreateBackendBuildTask) Reset

func (x *CreateBackendBuildTask) Reset()

func (*CreateBackendBuildTask) String

func (x *CreateBackendBuildTask) String() string

type CreateSwarmingBuildTask

type CreateSwarmingBuildTask struct {

	// ID of a build in the datastore. See model.Build.
	BuildId int64 `protobuf:"varint,1,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"`
	// contains filtered or unexported fields
}

A task to create a Swarming task.

func (*CreateSwarmingBuildTask) Descriptor deprecated

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

Deprecated: Use CreateSwarmingBuildTask.ProtoReflect.Descriptor instead.

func (*CreateSwarmingBuildTask) GetBuildId

func (x *CreateSwarmingBuildTask) GetBuildId() int64

func (*CreateSwarmingBuildTask) ProtoMessage

func (*CreateSwarmingBuildTask) ProtoMessage()

func (*CreateSwarmingBuildTask) ProtoReflect

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

func (*CreateSwarmingBuildTask) Reset

func (x *CreateSwarmingBuildTask) Reset()

func (*CreateSwarmingBuildTask) String

func (x *CreateSwarmingBuildTask) String() string

type CreateSwarmingTask

type CreateSwarmingTask struct {

	// ID of a build in the datastore. See model.Build.
	BuildId int64 `protobuf:"varint,1,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"`
	// contains filtered or unexported fields
}

A task to create a Swarming task. TODO(crbug.com/1328646): Delete it after swarming-build-create migration is done.

func (*CreateSwarmingTask) Descriptor deprecated

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

Deprecated: Use CreateSwarmingTask.ProtoReflect.Descriptor instead.

func (*CreateSwarmingTask) GetBuildId

func (x *CreateSwarmingTask) GetBuildId() int64

func (*CreateSwarmingTask) ProtoMessage

func (*CreateSwarmingTask) ProtoMessage()

func (*CreateSwarmingTask) ProtoReflect

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

func (*CreateSwarmingTask) Reset

func (x *CreateSwarmingTask) Reset()

func (*CreateSwarmingTask) String

func (x *CreateSwarmingTask) String() string

type ExportBigQuery

type ExportBigQuery struct {

	// ID of a build in the datastore. See model.Build.
	BuildId int64 `protobuf:"varint,1,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"`
	// contains filtered or unexported fields
}

A task to export a build to BigQuery. TODO(crbug.com/1356766): remove it after bq-exporter runs in Go.

func (*ExportBigQuery) Descriptor deprecated

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

Deprecated: Use ExportBigQuery.ProtoReflect.Descriptor instead.

func (*ExportBigQuery) GetBuildId

func (x *ExportBigQuery) GetBuildId() int64

func (*ExportBigQuery) ProtoMessage

func (*ExportBigQuery) ProtoMessage()

func (*ExportBigQuery) ProtoReflect

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

func (*ExportBigQuery) Reset

func (x *ExportBigQuery) Reset()

func (*ExportBigQuery) String

func (x *ExportBigQuery) String() string

type ExportBigQueryGo

type ExportBigQueryGo struct {

	// ID of a build in the datastore. See model.Build.
	BuildId int64 `protobuf:"varint,1,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"`
	// contains filtered or unexported fields
}

A task to export a build to BigQuery.

func (*ExportBigQueryGo) Descriptor deprecated

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

Deprecated: Use ExportBigQueryGo.ProtoReflect.Descriptor instead.

func (*ExportBigQueryGo) GetBuildId

func (x *ExportBigQueryGo) GetBuildId() int64

func (*ExportBigQueryGo) ProtoMessage

func (*ExportBigQueryGo) ProtoMessage()

func (*ExportBigQueryGo) ProtoReflect

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

func (*ExportBigQueryGo) Reset

func (x *ExportBigQueryGo) Reset()

func (*ExportBigQueryGo) String

func (x *ExportBigQueryGo) String() string

type FinalizeResultDB

type FinalizeResultDB struct {

	// ID of a build in the datastore. See model.Build.
	BuildId int64 `protobuf:"varint,1,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"`
	// contains filtered or unexported fields
}

A task to finalize an invocation in ResultDB.

func (*FinalizeResultDB) Descriptor deprecated

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

Deprecated: Use FinalizeResultDB.ProtoReflect.Descriptor instead.

func (*FinalizeResultDB) GetBuildId

func (x *FinalizeResultDB) GetBuildId() int64

func (*FinalizeResultDB) ProtoMessage

func (*FinalizeResultDB) ProtoMessage()

func (*FinalizeResultDB) ProtoReflect

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

func (*FinalizeResultDB) Reset

func (x *FinalizeResultDB) Reset()

func (*FinalizeResultDB) String

func (x *FinalizeResultDB) String() string

type NotifyPubSub

type NotifyPubSub struct {

	// ID of a build in the datastore. See model.Build.
	BuildId int64 `protobuf:"varint,1,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"`
	// Whether to use the global or build-specific callback Pub/Sub topic.
	Callback bool `protobuf:"varint,2,opt,name=callback,proto3" json:"callback,omitempty"`
	// contains filtered or unexported fields
}

A task to send a build notification on `builds` Pub/Sub.

func (*NotifyPubSub) Descriptor deprecated

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

Deprecated: Use NotifyPubSub.ProtoReflect.Descriptor instead.

func (*NotifyPubSub) GetBuildId

func (x *NotifyPubSub) GetBuildId() int64

func (*NotifyPubSub) GetCallback

func (x *NotifyPubSub) GetCallback() bool

func (*NotifyPubSub) ProtoMessage

func (*NotifyPubSub) ProtoMessage()

func (*NotifyPubSub) ProtoReflect

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

func (*NotifyPubSub) Reset

func (x *NotifyPubSub) Reset()

func (*NotifyPubSub) String

func (x *NotifyPubSub) String() string

type NotifyPubSubGo

type NotifyPubSubGo struct {

	// ID of a build in the datastore. See model.Build.
	BuildId int64 `protobuf:"varint,1,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"`
	// contains filtered or unexported fields
}

A task to send a build notification on `builds_v2` Pub/Sub.

func (*NotifyPubSubGo) Descriptor deprecated

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

Deprecated: Use NotifyPubSubGo.ProtoReflect.Descriptor instead.

func (*NotifyPubSubGo) GetBuildId

func (x *NotifyPubSubGo) GetBuildId() int64

func (*NotifyPubSubGo) ProtoMessage

func (*NotifyPubSubGo) ProtoMessage()

func (*NotifyPubSubGo) ProtoReflect

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

func (*NotifyPubSubGo) Reset

func (x *NotifyPubSubGo) Reset()

func (*NotifyPubSubGo) String

func (x *NotifyPubSubGo) String() string

type SyncSwarmingBuildTask

type SyncSwarmingBuildTask struct {

	// ID of a build in the datastore. See model.Build.
	BuildId int64 `protobuf:"varint,1,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"`
	// Generation indicates how many times this build has been put back into the
	// swarming sync queue.
	Generation int64 `protobuf:"varint,2,opt,name=generation,proto3" json:"generation,omitempty"`
	// contains filtered or unexported fields
}

A task to create a Swarming task.

func (*SyncSwarmingBuildTask) Descriptor deprecated

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

Deprecated: Use SyncSwarmingBuildTask.ProtoReflect.Descriptor instead.

func (*SyncSwarmingBuildTask) GetBuildId

func (x *SyncSwarmingBuildTask) GetBuildId() int64

func (*SyncSwarmingBuildTask) GetGeneration

func (x *SyncSwarmingBuildTask) GetGeneration() int64

func (*SyncSwarmingBuildTask) ProtoMessage

func (*SyncSwarmingBuildTask) ProtoMessage()

func (*SyncSwarmingBuildTask) ProtoReflect

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

func (*SyncSwarmingBuildTask) Reset

func (x *SyncSwarmingBuildTask) Reset()

func (*SyncSwarmingBuildTask) String

func (x *SyncSwarmingBuildTask) String() string

Jump to

Keyboard shortcuts

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