dm

package
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: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultLimitMaxDataSize is the default MaxDataSize value (16MB).
	DefaultLimitMaxDataSize = 16 * 1024 * 1024

	// MaxLimitMaxDataSize is the maximum MaxDataSize value (30MB).
	MaxLimitMaxDataSize = 30 * 1024 * 1024
)
View Source
const JSONNonNormalizedSizeFactor = 0.1

JSONNonNormalizedSizeFactor is the excess multiple of JSONObjectMaxLength that a non-normalized json object must be smaller than. Otherwise we won't attempt to normalize it at all.

View Source
const JSONObjectMaxLength = 256 * 1024

JSONObjectMaxLength is the maximum number of bytes that may be present in the Object field of a normalized JSONObject.

View Source
const MinimumActivationTokenLength = 32

MinimumActivationTokenLength is the minimum number of bytes in an appropriate ExecutionToken.

View Source
const QuestDescPayloadMaxLength = 256 * 1024

QuestDescPayloadMaxLength is the maximum length (in bytes) of an un-normalized Quest payload.

Variables

View Source
var (
	AbnormalFinish_Status_name = map[int32]string{
		0: "INVALID",
		1: "FAILED",
		2: "CRASHED",
		3: "EXPIRED",
		4: "TIMED_OUT",
		5: "CANCELLED",
		6: "REJECTED",
		7: "MISSING",
		8: "RESULT_MALFORMED",
	}
	AbnormalFinish_Status_value = map[string]int32{
		"INVALID":          0,
		"FAILED":           1,
		"CRASHED":          2,
		"EXPIRED":          3,
		"TIMED_OUT":        4,
		"CANCELLED":        5,
		"REJECTED":         6,
		"MISSING":          7,
		"RESULT_MALFORMED": 8,
	}
)

Enum value maps for AbnormalFinish_Status.

View Source
var (
	Attempt_State_name = map[int32]string{
		0: "SCHEDULING",
		1: "EXECUTING",
		2: "WAITING",
		3: "FINISHED",
		4: "ABNORMAL_FINISHED",
	}
	Attempt_State_value = map[string]int32{
		"SCHEDULING":        0,
		"EXECUTING":         1,
		"WAITING":           2,
		"FINISHED":          3,
		"ABNORMAL_FINISHED": 4,
	}
)

Enum value maps for Attempt_State.

View Source
var (
	Attempt_Partial_Result_name = map[int32]string{
		0: "LOADED",
		1: "NOT_LOADED",
		2: "NOT_AUTHORIZED",
		3: "DATA_SIZE_LIMIT",
	}
	Attempt_Partial_Result_value = map[string]int32{
		"LOADED":          0,
		"NOT_LOADED":      1,
		"NOT_AUTHORIZED":  2,
		"DATA_SIZE_LIMIT": 3,
	}
)

Enum value maps for Attempt_Partial_Result.

View Source
var (
	Execution_State_name = map[int32]string{
		0: "SCHEDULING",
		1: "RUNNING",
		2: "STOPPING",
		3: "FINISHED",
		4: "ABNORMAL_FINISHED",
	}
	Execution_State_value = map[string]int32{
		"SCHEDULING":        0,
		"RUNNING":           1,
		"STOPPING":          2,
		"FINISHED":          3,
		"ABNORMAL_FINISHED": 4,
	}
)

Enum value maps for Execution_State.

View Source
var (
	GraphQuery_Search_Domain_name = map[int32]string{
		0: "QUEST",
		1: "ATTEMPT",
	}
	GraphQuery_Search_Domain_value = map[string]int32{
		"QUEST":   0,
		"ATTEMPT": 1,
	}
)

Enum value maps for GraphQuery_Search_Domain.

View Source
var (
	WalkGraphReq_Mode_Direction_name = map[int32]string{
		0: "FORWARDS",
		1: "BACKWARDS",
		2: "BOTH",
	}
	WalkGraphReq_Mode_Direction_value = map[string]int32{
		"FORWARDS":  0,
		"BACKWARDS": 1,
		"BOTH":      2,
	}
)

Enum value maps for WalkGraphReq_Mode_Direction.

View Source
var File_go_chromium_org_luci_dm_api_service_v1_activate_execution_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_dm_api_service_v1_ensure_graph_data_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_dm_api_service_v1_finish_attempt_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_dm_api_service_v1_graph_data_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_dm_api_service_v1_graph_query_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_dm_api_service_v1_service_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_dm_api_service_v1_types_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_dm_api_service_v1_walk_graph_proto protoreflect.FileDescriptor
View Source
var (
	// QuestIDLength is the number of encoded bytes to use. It removes the
	// single padding character.
	QuestIDLength = base64.URLEncoding.EncodedLen(sha256.Size) - 1
)

Functions

func FileDescriptorSet

func FileDescriptorSet() *descriptorpb.FileDescriptorSet

FileDescriptorSet returns a descriptor set for this proto package, which includes all defined services, and all transitive dependencies.

Will not return nil.

Do NOT modify the returned descriptor.

func RegisterDepsServer

func RegisterDepsServer(s prpc.Registrar, srv DepsServer)

Types

type AbnormalFinish

type AbnormalFinish struct {
	Status AbnormalFinish_Status `protobuf:"varint,1,opt,name=status,proto3,enum=dm.AbnormalFinish_Status" json:"status,omitempty"`
	Reason string                `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
	// contains filtered or unexported fields
}

func (*AbnormalFinish) Descriptor deprecated

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

Deprecated: Use AbnormalFinish.ProtoReflect.Descriptor instead.

func (*AbnormalFinish) FromProperty

func (p *AbnormalFinish) FromProperty(prop datastore.Property) error

FromProperty implements datastore.PropertyConverter. It parses a '[]byte' into an embedded 'AbnormalFinish' when used with the "go.chromium.org/luci/gae" library.

func (*AbnormalFinish) GetReason

func (x *AbnormalFinish) GetReason() string

func (*AbnormalFinish) GetStatus

func (x *AbnormalFinish) GetStatus() AbnormalFinish_Status

func (*AbnormalFinish) ProtoMessage

func (*AbnormalFinish) ProtoMessage()

func (*AbnormalFinish) ProtoReflect

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

func (*AbnormalFinish) Reset

func (x *AbnormalFinish) Reset()

func (*AbnormalFinish) String

func (x *AbnormalFinish) String() string

func (*AbnormalFinish) ToProperty

func (p *AbnormalFinish) ToProperty() (prop datastore.Property, err error)

ToProperty implements datastore.PropertyConverter. It causes an embedded 'AbnormalFinish' to serialize to an unindexed '[]byte' when used with the "go.chromium.org/luci/gae" library.

type AbnormalFinish_Status

type AbnormalFinish_Status int32
const (
	// This status is invalid and should not be used intentionally.
	//
	// It is a placeholder to identify 0-initialized AbnormalFinish structures.
	AbnormalFinish_INVALID AbnormalFinish_Status = 0
	// This entity has a failed result.
	//
	// Executions: the distributor reported that the task executed and failed, OR
	// the distributor reports success while the Execution is in the RUNNING
	// state.
	//
	// Attempts: the last Execution had a FAILED Status.
	//
	// Retryable.
	AbnormalFinish_FAILED AbnormalFinish_Status = 1
	// This entity failed in a bad way.
	//
	// Executions: The distributor told us that the job died violently while in
	// the SCHEDULING, RUNNING or STOPPING state.
	//
	// Attempts: the last Execution had a CRASHED Status.
	//
	// Retryable.
	AbnormalFinish_CRASHED AbnormalFinish_Status = 2
	// Waited too long for the job to start.
	//
	// Executions: the distributor couldn't start the job in time, OR DM failed
	// to get a status update from the distributor in time (e.g. the state was
	// SCHEDULING for too long).
	//
	// Attempts: the last Execution had an EXPIRED Status.
	//
	// Retryable.
	AbnormalFinish_EXPIRED AbnormalFinish_Status = 3
	// The job started, but took too long.
	//
	// Executions: the distributor started the job, but it couldn't complete in
	// time, OR DM failed to get a status update from the distributor in time
	// (e.g. the state was RUNNING for too long).
	//
	// Attempts: the last Execution had an TIMED_OUT Status.
	//
	// Retryable.
	AbnormalFinish_TIMED_OUT AbnormalFinish_Status = 4
	// The job was cancelled by an external entity (human, automated system).
	//
	// Executions: the distributor informing DM that the job was preemptively
	// cancelled.
	//
	// Attempts: the last Execution had a CANCELLED Status, or this Attempt
	// was cancelled via DM.
	AbnormalFinish_CANCELLED AbnormalFinish_Status = 5
	// The job was prevented from running by the distributor (quota, permissions,
	// etc.)
	//
	// Executions: the distributor refused to run this job.
	//
	// Attempts: the last Execution had a REJECTED Status.
	AbnormalFinish_REJECTED AbnormalFinish_Status = 6
	// The job is unrecognized.
	//
	// Executions: the distributor doesn't know about this job, or has forgotten
	// about it.
	//
	// Attempts: the last Execution had a MISSING Status.
	AbnormalFinish_MISSING AbnormalFinish_Status = 7
	// The distributor ran the job, but returned garbage.
	//
	// Executions: the distributor returned a nominally successful result, but
	// the Data portion of the result wasn't able to be normalized.
	//
	// Attempts: the last Execution had a RESULT_MALFORMED Status.
	AbnormalFinish_RESULT_MALFORMED AbnormalFinish_Status = 8
)

func (AbnormalFinish_Status) CouldRetry

func (s AbnormalFinish_Status) CouldRetry() bool

CouldRetry returns true iff this status code is retryable.

func (AbnormalFinish_Status) Descriptor

func (AbnormalFinish_Status) Enum

func (AbnormalFinish_Status) EnumDescriptor deprecated

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

Deprecated: Use AbnormalFinish_Status.Descriptor instead.

func (AbnormalFinish_Status) Number

func (AbnormalFinish_Status) String

func (x AbnormalFinish_Status) String() string

func (AbnormalFinish_Status) Type

type ActivateExecutionReq

type ActivateExecutionReq struct {

	// Auth is the Execution_Auth containing the Activation Token, as provided
	// to the distributor when the Execution was created.
	Auth *Execution_Auth `protobuf:"bytes,1,opt,name=auth,proto3" json:"auth,omitempty"`
	// ExecutionToken should be randomly generated by the machine running the
	// execution, or by the distributor service such that if two racing Executions
	// both attempt to Activate with the same ExecutionID and ActivationToken, the
	// ExecutionToken will (probably) be different for them so that only one will
	// win.
	ExecutionToken []byte `protobuf:"bytes,2,opt,name=execution_token,json=executionToken,proto3" json:"execution_token,omitempty"`
	// contains filtered or unexported fields
}

ActivateExecutionReq allows a currently-running Execution to activate itself. Doing this allows DM to know that the Execution has started, and also enables the Execution to access other APIs like WalkGraph, AddDeps, and FinishAttempt.

ActivateExecution must be called with the ExecutionID and Activation token that DM provided when the Execution was started with the distributor.

If the Execution has not been activated, the Execution will be marked as 'activating' and this will return an OK code. At this point, your client may use the ExecutionToken with any RPCs that have an ExecutionAuth field.

This RPC may return:

  • OK - The Execution is now activated.
  • InvalidArgmument - The request was malformed. Retrying will not help.
  • PermissionDenied - The provided activation token was incorrect. Retrying will not help.
  • AlreadyExists - The activation token was correct, but some other entity already activated this Execution. The client should cease operations. Retrying will not help.

All other errors should be retried with the exact same ActivateExecutionReq data.

func (*ActivateExecutionReq) Descriptor deprecated

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

Deprecated: Use ActivateExecutionReq.ProtoReflect.Descriptor instead.

func (*ActivateExecutionReq) GetAuth

func (x *ActivateExecutionReq) GetAuth() *Execution_Auth

func (*ActivateExecutionReq) GetExecutionToken

func (x *ActivateExecutionReq) GetExecutionToken() []byte

func (*ActivateExecutionReq) Normalize

func (a *ActivateExecutionReq) Normalize() error

Normalize returns an error iff the ActivateExecutionReq has bad form (nils, insufficient activation token length, etc.

func (*ActivateExecutionReq) ProtoMessage

func (*ActivateExecutionReq) ProtoMessage()

func (*ActivateExecutionReq) ProtoReflect

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

func (*ActivateExecutionReq) Reset

func (x *ActivateExecutionReq) Reset()

func (*ActivateExecutionReq) String

func (x *ActivateExecutionReq) String() string

type Attempt

type Attempt struct {
	Id *Attempt_ID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// DNE is set to true if this Attempt does not exist. None of the following
	// fields are valid if this is set to true.
	DNE  bool          `protobuf:"varint,2,opt,name=DNE,proto3" json:"DNE,omitempty"`
	Data *Attempt_Data `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// key is the `id` field of the Execution.ID
	Executions map[uint32]*Execution `` /* 162-byte string literal not displayed */
	FwdDeps    *AttemptList          `protobuf:"bytes,5,opt,name=fwd_deps,json=fwdDeps,proto3" json:"fwd_deps,omitempty"`
	BackDeps   *AttemptList          `protobuf:"bytes,6,opt,name=back_deps,json=backDeps,proto3" json:"back_deps,omitempty"`
	// Partial values are true iff the request asked for AttemptData, Executions
	// or Deps, but wasn't able to completely fill them. If Partial is omitted,
	// it means that no partial data exists in this Attempt.
	Partial *Attempt_Partial `protobuf:"bytes,16,opt,name=partial,proto3" json:"partial,omitempty"`
	// contains filtered or unexported fields
}

func NewAttemptAbnormalFinish

func NewAttemptAbnormalFinish(af *AbnormalFinish) *Attempt

NewAttemptAbnormalFinish creates an Attempt in the ABNORMAL_FINISH state.

func NewAttemptExecuting

func NewAttemptExecuting(curExID uint32) *Attempt

NewAttemptExecuting creates an Attempt in the EXECUTING state.

func NewAttemptFinished

func NewAttemptFinished(result *JsonResult) *Attempt

NewAttemptFinished creates an Attempt in the FINISHED state.

func NewAttemptScheduling

func NewAttemptScheduling() *Attempt

NewAttemptScheduling creates an Attempt in the SCHEDULING state.

func NewAttemptWaiting

func NewAttemptWaiting(numWaiting uint32) *Attempt

NewAttemptWaiting creates an Attempt in the WAITING state.

func (*Attempt) Descriptor deprecated

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

Deprecated: Use Attempt.ProtoReflect.Descriptor instead.

func (*Attempt) GetBackDeps

func (x *Attempt) GetBackDeps() *AttemptList

func (*Attempt) GetDNE

func (x *Attempt) GetDNE() bool

func (*Attempt) GetData

func (x *Attempt) GetData() *Attempt_Data

func (*Attempt) GetExecutions

func (x *Attempt) GetExecutions() map[uint32]*Execution

func (*Attempt) GetFwdDeps

func (x *Attempt) GetFwdDeps() *AttemptList

func (*Attempt) GetId

func (x *Attempt) GetId() *Attempt_ID

func (*Attempt) GetPartial

func (x *Attempt) GetPartial() *Attempt_Partial

func (*Attempt) NormalizePartial

func (d *Attempt) NormalizePartial()

NormalizePartial will nil out the Partial field for this Attempt if all Partial fields are false.

func (*Attempt) ProtoMessage

func (*Attempt) ProtoMessage()

func (*Attempt) ProtoReflect

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

func (*Attempt) PurgeTimestamps

func (a *Attempt) PurgeTimestamps()

PurgeTimestamps implements TimestampPurger.

func (*Attempt) Reset

func (x *Attempt) Reset()

func (*Attempt) String

func (x *Attempt) String() string

func (*Attempt) UpdateWith

func (a *Attempt) UpdateWith(other *Attempt)

UpdateWith updates this Attempt with data from other.

type AttemptList

type AttemptList struct {

	// To is a map of quests-to-attempts to depend on. So if you want to depend
	// on the attempt "foo|1", "foo|2" and "bar|1", this would look like:
	//   {
	//     "foo": [1, 2],
	//     "bar": [1],
	//   }
	To map[string]*AttemptList_Nums `` /* 145-byte string literal not displayed */
	// contains filtered or unexported fields
}

AttemptList is logically a listing of unique attempts, which has a compact representation in the common scenario of listing multiple attempts of the same quest(s).

func NewAttemptList

func NewAttemptList(data map[string][]uint32) *AttemptList

NewAttemptList is a convenience method for making a normalized *AttemptList with a pre-normalized literal map of quest -> attempt nums.

If the provided data is invalid, this method will panic.

func (*AttemptList) AddAIDs

func (a *AttemptList) AddAIDs(aids ...*Attempt_ID)

AddAIDs adds the given Attempt_ID to the AttemptList

func (*AttemptList) Descriptor deprecated

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

Deprecated: Use AttemptList.ProtoReflect.Descriptor instead.

func (*AttemptList) Dup

func (a *AttemptList) Dup() *AttemptList

Dup does a deep copy of this AttemptList.

func (*AttemptList) GetTo

func (x *AttemptList) GetTo() map[string]*AttemptList_Nums

func (*AttemptList) Normalize

func (a *AttemptList) Normalize() error

Normalize sorts and uniq's attempt nums

func (*AttemptList) ProtoMessage

func (*AttemptList) ProtoMessage()

func (*AttemptList) ProtoReflect

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

func (*AttemptList) Reset

func (x *AttemptList) Reset()

func (*AttemptList) String

func (x *AttemptList) String() string

func (*AttemptList) UpdateWith

func (a *AttemptList) UpdateWith(o *AttemptList)

UpdateWith updates this AttemptList with all the entries in the other AttemptList.

type AttemptList_Nums

type AttemptList_Nums struct {
	Nums []uint32 `protobuf:"varint,1,rep,packed,name=nums,proto3" json:"nums,omitempty"`
	// contains filtered or unexported fields
}

func (*AttemptList_Nums) Descriptor deprecated

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

Deprecated: Use AttemptList_Nums.ProtoReflect.Descriptor instead.

func (*AttemptList_Nums) GetNums

func (x *AttemptList_Nums) GetNums() []uint32

func (*AttemptList_Nums) Normalize

func (a *AttemptList_Nums) Normalize() error

Normalize sorts and uniq's attempt nums. If Nums equals [0], [] or nil, it implies all attempts for the quest and will be normalized to nil.

It is an error for Nums to contain 0 as well as other numbers.

func (*AttemptList_Nums) ProtoMessage

func (*AttemptList_Nums) ProtoMessage()

func (*AttemptList_Nums) ProtoReflect

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

func (*AttemptList_Nums) Reset

func (x *AttemptList_Nums) Reset()

func (*AttemptList_Nums) String

func (x *AttemptList_Nums) String() string

type Attempt_Data

type Attempt_Data struct {
	Created       *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=created,proto3" json:"created,omitempty"`
	Modified      *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=modified,proto3" json:"modified,omitempty"`
	NumExecutions uint32                 `protobuf:"varint,3,opt,name=num_executions,json=numExecutions,proto3" json:"num_executions,omitempty"`
	// Types that are assignable to AttemptType:
	//	*Attempt_Data_Scheduling_
	//	*Attempt_Data_Executing_
	//	*Attempt_Data_Waiting_
	//	*Attempt_Data_Finished_
	//	*Attempt_Data_AbnormalFinish
	AttemptType isAttempt_Data_AttemptType `protobuf_oneof:"attempt_type"`
	// contains filtered or unexported fields
}

func (*Attempt_Data) Descriptor deprecated

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

Deprecated: Use Attempt_Data.ProtoReflect.Descriptor instead.

func (*Attempt_Data) GetAbnormalFinish

func (x *Attempt_Data) GetAbnormalFinish() *AbnormalFinish

func (*Attempt_Data) GetAttemptType

func (m *Attempt_Data) GetAttemptType() isAttempt_Data_AttemptType

func (*Attempt_Data) GetCreated

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

func (*Attempt_Data) GetExecuting

func (x *Attempt_Data) GetExecuting() *Attempt_Data_Executing

func (*Attempt_Data) GetFinished

func (x *Attempt_Data) GetFinished() *Attempt_Data_Finished

func (*Attempt_Data) GetModified

func (x *Attempt_Data) GetModified() *timestamppb.Timestamp

func (*Attempt_Data) GetNumExecutions

func (x *Attempt_Data) GetNumExecutions() uint32

func (*Attempt_Data) GetScheduling

func (x *Attempt_Data) GetScheduling() *Attempt_Data_Scheduling

func (*Attempt_Data) GetWaiting

func (x *Attempt_Data) GetWaiting() *Attempt_Data_Waiting

func (*Attempt_Data) ProtoMessage

func (*Attempt_Data) ProtoMessage()

func (*Attempt_Data) ProtoReflect

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

func (*Attempt_Data) PurgeTimestamps

func (ad *Attempt_Data) PurgeTimestamps()

PurgeTimestamps implements TimestampPurger.

func (*Attempt_Data) Reset

func (x *Attempt_Data) Reset()

func (*Attempt_Data) State

func (d *Attempt_Data) State() Attempt_State

State computes the Attempt_State for the current Attempt_Data

func (*Attempt_Data) String

func (x *Attempt_Data) String() string

func (*Attempt_Data) UpdateWith

func (a *Attempt_Data) UpdateWith(other *Attempt_Data)

UpdateWith updates this Attempt_Data with data from other.

type Attempt_Data_AbnormalFinish

type Attempt_Data_AbnormalFinish struct {
	AbnormalFinish *AbnormalFinish `protobuf:"bytes,9,opt,name=abnormal_finish,json=abnormalFinish,proto3,oneof"`
}

type Attempt_Data_Executing

type Attempt_Data_Executing struct {
	CurExecutionId uint32 `protobuf:"varint,1,opt,name=cur_execution_id,json=curExecutionId,proto3" json:"cur_execution_id,omitempty"`
	// contains filtered or unexported fields
}

This attempt has a live Execution (with the specified ID). Check the Execution state for more information.

func (*Attempt_Data_Executing) Descriptor deprecated

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

Deprecated: Use Attempt_Data_Executing.ProtoReflect.Descriptor instead.

func (*Attempt_Data_Executing) GetCurExecutionId

func (x *Attempt_Data_Executing) GetCurExecutionId() uint32

func (*Attempt_Data_Executing) ProtoMessage

func (*Attempt_Data_Executing) ProtoMessage()

func (*Attempt_Data_Executing) ProtoReflect

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

func (*Attempt_Data_Executing) Reset

func (x *Attempt_Data_Executing) Reset()

func (*Attempt_Data_Executing) String

func (x *Attempt_Data_Executing) String() string

type Attempt_Data_Executing_

type Attempt_Data_Executing_ struct {
	Executing *Attempt_Data_Executing `protobuf:"bytes,6,opt,name=executing,proto3,oneof"`
}

type Attempt_Data_Finished

type Attempt_Data_Finished struct {

	// The result of the Attempt. To obtain the distributor specific result
	// for the last execution, make sure to include at least one Execution in
	// your query.
	//
	// Only if `include.attempt.data == true`, will the response include
	// data.object.
	Data *JsonResult `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

This attempt is complete.

func (*Attempt_Data_Finished) Descriptor deprecated

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

Deprecated: Use Attempt_Data_Finished.ProtoReflect.Descriptor instead.

func (*Attempt_Data_Finished) GetData

func (x *Attempt_Data_Finished) GetData() *JsonResult

func (*Attempt_Data_Finished) ProtoMessage

func (*Attempt_Data_Finished) ProtoMessage()

func (*Attempt_Data_Finished) ProtoReflect

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

func (*Attempt_Data_Finished) Reset

func (x *Attempt_Data_Finished) Reset()

func (*Attempt_Data_Finished) String

func (x *Attempt_Data_Finished) String() string

type Attempt_Data_Finished_

type Attempt_Data_Finished_ struct {
	Finished *Attempt_Data_Finished `protobuf:"bytes,8,opt,name=finished,proto3,oneof"`
}

func (*Attempt_Data_Finished_) PurgeTimestamps

func (f *Attempt_Data_Finished_) PurgeTimestamps()

PurgeTimestamps implements TimestampPurger.

type Attempt_Data_Scheduling

type Attempt_Data_Scheduling struct {
	// contains filtered or unexported fields
}

This attempt is ready to be Executed, but hasn't been sent to the distributor yet.

func (*Attempt_Data_Scheduling) Descriptor deprecated

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

Deprecated: Use Attempt_Data_Scheduling.ProtoReflect.Descriptor instead.

func (*Attempt_Data_Scheduling) ProtoMessage

func (*Attempt_Data_Scheduling) ProtoMessage()

func (*Attempt_Data_Scheduling) ProtoReflect

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

func (*Attempt_Data_Scheduling) Reset

func (x *Attempt_Data_Scheduling) Reset()

func (*Attempt_Data_Scheduling) String

func (x *Attempt_Data_Scheduling) String() string

type Attempt_Data_Scheduling_

type Attempt_Data_Scheduling_ struct {
	Scheduling *Attempt_Data_Scheduling `protobuf:"bytes,5,opt,name=scheduling,proto3,oneof"`
}

type Attempt_Data_Waiting

type Attempt_Data_Waiting struct {
	NumWaiting uint32 `protobuf:"varint,1,opt,name=num_waiting,json=numWaiting,proto3" json:"num_waiting,omitempty"`
	// contains filtered or unexported fields
}

This attempt's last Execution stopped by adding dependencies.

func (*Attempt_Data_Waiting) Descriptor deprecated

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

Deprecated: Use Attempt_Data_Waiting.ProtoReflect.Descriptor instead.

func (*Attempt_Data_Waiting) GetNumWaiting

func (x *Attempt_Data_Waiting) GetNumWaiting() uint32

func (*Attempt_Data_Waiting) ProtoMessage

func (*Attempt_Data_Waiting) ProtoMessage()

func (*Attempt_Data_Waiting) ProtoReflect

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

func (*Attempt_Data_Waiting) Reset

func (x *Attempt_Data_Waiting) Reset()

func (*Attempt_Data_Waiting) String

func (x *Attempt_Data_Waiting) String() string

type Attempt_Data_Waiting_

type Attempt_Data_Waiting_ struct {
	Waiting *Attempt_Data_Waiting `protobuf:"bytes,7,opt,name=waiting,proto3,oneof"`
}

type Attempt_ID

type Attempt_ID struct {
	Quest string `protobuf:"bytes,1,opt,name=quest,proto3" json:"quest,omitempty"`
	Id    uint32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func NewAttemptID

func NewAttemptID(qst string, aid uint32) *Attempt_ID

NewAttemptID is a shorthand to New a new *Attempt_ID

func (*Attempt_ID) DMEncoded

func (a *Attempt_ID) DMEncoded() string

DMEncoded returns the encoded string id for this Attempt. Numeric values are inverted if flip is true.

func (*Attempt_ID) Descriptor deprecated

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

Deprecated: Use Attempt_ID.ProtoReflect.Descriptor instead.

func (*Attempt_ID) Equals

func (a *Attempt_ID) Equals(o *Attempt_ID) bool

Equals returns true iff the two Attempt_IDs are equivalent.

func (*Attempt_ID) Execution

func (a *Attempt_ID) Execution(eid uint32) *Execution_ID

Execution returns an Execution_ID for this Attempt.

func (*Attempt_ID) FromProperty

func (a *Attempt_ID) FromProperty(p datastore.Property) error

FromProperty implements datastore.PropertyConverter

func (*Attempt_ID) GetId

func (x *Attempt_ID) GetId() uint32

func (*Attempt_ID) GetQuest

func (x *Attempt_ID) GetQuest() string

func (*Attempt_ID) ProtoMessage

func (*Attempt_ID) ProtoMessage()

func (*Attempt_ID) ProtoReflect

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

func (*Attempt_ID) QuestID

func (a *Attempt_ID) QuestID() *Quest_ID

QuestID is a helper function to obtain the *Quest_ID from this Attempt_ID.

func (*Attempt_ID) Reset

func (x *Attempt_ID) Reset()

func (*Attempt_ID) SetDMEncoded

func (a *Attempt_ID) SetDMEncoded(val string) error

SetDMEncoded decodes val into this Attempt_ID, returning an error if there's a problem. Numeric values are inverted if flip is true.

func (*Attempt_ID) String

func (x *Attempt_ID) String() string

func (*Attempt_ID) ToProperty

func (a *Attempt_ID) ToProperty() (datastore.Property, error)

ToProperty implements datastore.PropertyConverter for the purpose of embedding this Attempt_ID as the ID of a luci/gae compatible datastore object. The numerical id field is stored as an inverted, hex-encoded string, so that Attempt_ID{"quest", 1} would encode as "quest|fffffffe". This is done so that the __key__ ordering in the dm application prefers to order the most recent attempts first.

The go representation will always have the normal non-flipped numerical id.

type Attempt_Partial

type Attempt_Partial struct {

	// Data is true iff the AttemptData should have been filled, but wasn't
	Data bool `protobuf:"varint,1,opt,name=data,proto3" json:"data,omitempty"`
	// Executions is true iff the Executions were requested, but not all of
	// them could be loaded.
	Executions bool `protobuf:"varint,2,opt,name=executions,proto3" json:"executions,omitempty"`
	// FwdDeps is true iff FwdDeps were requested, but not all of them could be
	// loaded.
	FwdDeps bool `protobuf:"varint,3,opt,name=fwd_deps,json=fwdDeps,proto3" json:"fwd_deps,omitempty"`
	// BackDeps is true iff BackDeps were requested, but not all of them could be
	// loaded.
	BackDeps bool `protobuf:"varint,4,opt,name=back_deps,json=backDeps,proto3" json:"back_deps,omitempty"`
	// result is set if AttemptResults were requested, and the attempt_type is
	// Finished, but for some reason the result but wasn't loaded.
	Result Attempt_Partial_Result `protobuf:"varint,5,opt,name=result,proto3,enum=dm.Attempt_Partial_Result" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*Attempt_Partial) Any

func (p *Attempt_Partial) Any() bool

Any returns true iff any of the Partial fields are true such that they could be successfully loaded on a subsequent query.

func (*Attempt_Partial) Descriptor deprecated

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

Deprecated: Use Attempt_Partial.ProtoReflect.Descriptor instead.

func (*Attempt_Partial) GetBackDeps

func (x *Attempt_Partial) GetBackDeps() bool

func (*Attempt_Partial) GetData

func (x *Attempt_Partial) GetData() bool

func (*Attempt_Partial) GetExecutions

func (x *Attempt_Partial) GetExecutions() bool

func (*Attempt_Partial) GetFwdDeps

func (x *Attempt_Partial) GetFwdDeps() bool

func (*Attempt_Partial) GetResult

func (x *Attempt_Partial) GetResult() Attempt_Partial_Result

func (*Attempt_Partial) ProtoMessage

func (*Attempt_Partial) ProtoMessage()

func (*Attempt_Partial) ProtoReflect

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

func (*Attempt_Partial) Reset

func (x *Attempt_Partial) Reset()

func (*Attempt_Partial) String

func (x *Attempt_Partial) String() string

type Attempt_Partial_Result

type Attempt_Partial_Result int32
const (
	// LOADED implies that the result was, in fact, loaded.
	Attempt_Partial_LOADED Attempt_Partial_Result = 0
	// NOT_LOADED is set if the result failed to load because there was
	// a transient error or the request ran out of time.
	Attempt_Partial_NOT_LOADED Attempt_Partial_Result = 1
	// NOT_AUTHORIZED is set if the query was authenticated from an Execution
	// whose Attempt doesn't depend on this one.
	Attempt_Partial_NOT_AUTHORIZED Attempt_Partial_Result = 2
	// DATA_SIZE_LIMIT is set if the max_data_size limit was reached.
	Attempt_Partial_DATA_SIZE_LIMIT Attempt_Partial_Result = 3
)

func (Attempt_Partial_Result) Descriptor

func (Attempt_Partial_Result) Enum

func (Attempt_Partial_Result) EnumDescriptor deprecated

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

Deprecated: Use Attempt_Partial_Result.Descriptor instead.

func (Attempt_Partial_Result) Number

func (Attempt_Partial_Result) String

func (x Attempt_Partial_Result) String() string

func (Attempt_Partial_Result) Type

type Attempt_State

type Attempt_State int32
const (
	// The Attempt is waiting to be Executed.
	Attempt_SCHEDULING Attempt_State = 0
	// The Attempt is currently waiting for its current Execution to finish.
	Attempt_EXECUTING Attempt_State = 1
	// The Attempt is waiting for dependent Attempts to be resolved.
	Attempt_WAITING Attempt_State = 2
	// The Attempt is in its final state.
	Attempt_FINISHED Attempt_State = 3
	// The Attempt is in an abnormal final state.
	Attempt_ABNORMAL_FINISHED Attempt_State = 4
)

func (Attempt_State) Descriptor

func (Attempt_State) Enum

func (x Attempt_State) Enum() *Attempt_State

func (Attempt_State) EnumDescriptor deprecated

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

Deprecated: Use Attempt_State.Descriptor instead.

func (*Attempt_State) Evolve

func (s *Attempt_State) Evolve(newState Attempt_State) error

Evolve attempts to evolve the state of this Attempt. If the state evolution is not allowed (e.g. invalid state transition), this returns an error.

func (*Attempt_State) MustEvolve

func (s *Attempt_State) MustEvolve(newState Attempt_State)

MustEvolve is a panic'ing version of Evolve.

func (Attempt_State) Number

func (Attempt_State) String

func (x Attempt_State) String() string

func (Attempt_State) Terminal

func (s Attempt_State) Terminal() bool

Terminal returns true iff there are no valid evolutions from the current state.

func (Attempt_State) Type

type DecoratedDeps

type DecoratedDeps struct {
	// Service is the service to decorate.
	Service DepsServer
	// Prelude is called for each method before forwarding the call to Service.
	// If Prelude returns an error, then the call is skipped and the error is
	// processed via the Postlude (if one is defined), or it is returned directly.
	Prelude func(ctx context.Context, methodName string, req proto.Message) (context.Context, error)
	// Postlude is called for each method after Service has processed the call, or
	// after the Prelude has returned an error. This takes the the Service's
	// response proto (which may be nil) and/or any error. The decorated
	// service will return the response (possibly mutated) and error that Postlude
	// returns.
	Postlude func(ctx context.Context, methodName string, rsp proto.Message, err error) error
}

func (*DecoratedDeps) ActivateExecution

func (s *DecoratedDeps) ActivateExecution(ctx context.Context, req *ActivateExecutionReq) (rsp *emptypb.Empty, err error)

func (*DecoratedDeps) EnsureGraphData

func (s *DecoratedDeps) EnsureGraphData(ctx context.Context, req *EnsureGraphDataReq) (rsp *EnsureGraphDataRsp, err error)

func (*DecoratedDeps) FinishAttempt

func (s *DecoratedDeps) FinishAttempt(ctx context.Context, req *FinishAttemptReq) (rsp *emptypb.Empty, err error)

func (*DecoratedDeps) WalkGraph

func (s *DecoratedDeps) WalkGraph(ctx context.Context, req *WalkGraphReq) (rsp *GraphData, err error)

type DepsClient

type DepsClient interface {
	// allows you to add additional data to the current dependency graph.
	EnsureGraphData(ctx context.Context, in *EnsureGraphDataReq, opts ...grpc.CallOption) (*EnsureGraphDataRsp, error)
	// is called by Execution clients to activate themselves with DM.
	ActivateExecution(ctx context.Context, in *ActivateExecutionReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// is called by Execution clients to indicate that an Attempt is finished.
	FinishAttempt(ctx context.Context, in *FinishAttemptReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// runs queries, and walks along the dependency graph from the query results.
	WalkGraph(ctx context.Context, in *WalkGraphReq, opts ...grpc.CallOption) (*GraphData, error)
}

DepsClient is the client API for Deps service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewDepsClient

func NewDepsClient(cc grpc.ClientConnInterface) DepsClient

func NewDepsPRPCClient

func NewDepsPRPCClient(client *prpc.Client) DepsClient

type DepsServer

type DepsServer interface {
	// allows you to add additional data to the current dependency graph.
	EnsureGraphData(context.Context, *EnsureGraphDataReq) (*EnsureGraphDataRsp, error)
	// is called by Execution clients to activate themselves with DM.
	ActivateExecution(context.Context, *ActivateExecutionReq) (*emptypb.Empty, error)
	// is called by Execution clients to indicate that an Attempt is finished.
	FinishAttempt(context.Context, *FinishAttemptReq) (*emptypb.Empty, error)
	// runs queries, and walks along the dependency graph from the query results.
	WalkGraph(context.Context, *WalkGraphReq) (*GraphData, error)
}

DepsServer is the server API for Deps service.

type EnsureGraphDataReq

type EnsureGraphDataReq struct {

	// Quest is a list of quest descriptors. DM will ensure that the
	// corresponding Quests exist. If they don't, they'll be created.
	Quest []*Quest_Desc `protobuf:"bytes,1,rep,name=quest,proto3" json:"quest,omitempty"`
	// QuestAttempt allows the addition of attempts which are derived from
	// the quest bodies provided above.
	// Each entry here maps 1:1 with the equivalent quest.
	QuestAttempt []*AttemptList_Nums `protobuf:"bytes,2,rep,name=quest_attempt,json=questAttempt,proto3" json:"quest_attempt,omitempty"`
	// TemplateQuest allows the addition of quests which are derived from
	// Templates, as defined on a per-project basis.
	TemplateQuest []*TemplateInstantiation `protobuf:"bytes,3,rep,name=template_quest,json=templateQuest,proto3" json:"template_quest,omitempty"`
	// TemplateAttempt allows the addition of attempts which are derived from
	// Templates. This must be equal in length to template_quest.
	// Each entry here maps 1:1 with the equivalent quest in template_quest.
	TemplateAttempt []*AttemptList_Nums `protobuf:"bytes,4,rep,name=template_attempt,json=templateAttempt,proto3" json:"template_attempt,omitempty"`
	// RawAttempts is a list that asserts that the following attempts should
	// exist. The quest ids in this list must be already-known to DM, NOT
	// included in the quest field above. This is useful when you know the ID of
	// the Quest, but not the actual definition of the quest.
	RawAttempts *AttemptList `protobuf:"bytes,5,opt,name=raw_attempts,json=rawAttempts,proto3" json:"raw_attempts,omitempty"`
	// ForExecution is an authentication pair (Execution_ID, Token).
	//
	// If this is provided then it will serve as authorization for the creation of
	// any `quests` included, and any `attempts` indicated will be set as
	// dependencies for the execution.
	//
	// If this omitted, then the request requires some user/bot authentication,
	// and any quests/attempts provided will be made standalone (e.g. nothing will
	// depend on them).
	ForExecution *Execution_Auth             `protobuf:"bytes,6,opt,name=for_execution,json=forExecution,proto3" json:"for_execution,omitempty"`
	Limit        *EnsureGraphDataReq_Limit   `protobuf:"bytes,7,opt,name=limit,proto3" json:"limit,omitempty"`
	Include      *EnsureGraphDataReq_Include `protobuf:"bytes,8,opt,name=include,proto3" json:"include,omitempty"`
	// contains filtered or unexported fields
}

EnsureGraphDataReq allows you to assert the existence of Attempts in DM's graph, and allows you to declare dependencies from one Attempt to another.

You can declare Attempts by any combination of:

  • Providing a quest description plus a list of Attempt numbers for that quest.
  • Providing a template instantiation (for a project-declared quest template) plus a list of Attempt numbers for that quest.
  • Providing a raw set of quest_id -> attempt numbers for quests that you already know that DM has a definition for.

In response, DM will tell you what the IDs of all supplied Quests/Attempts are.

To create a dependencies, call this method while running as part of an execution by filling the for_execution field. All attempts named as described above will become dependencies for the indicated execution. It is only possible for a currently-running execution to create dependencies for its own Attempt. In particular, it is not possible to create dependencies as a non-execution user (e.g. a human), nor is it possible for an execution to create attempts on behalf of some other execution.

If the attempts were being created as dependencies, and were already in the Finished state, this request can also opt to include the AttemptResults directly.

func (*EnsureGraphDataReq) Descriptor deprecated

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

Deprecated: Use EnsureGraphDataReq.ProtoReflect.Descriptor instead.

func (*EnsureGraphDataReq) GetForExecution

func (x *EnsureGraphDataReq) GetForExecution() *Execution_Auth

func (*EnsureGraphDataReq) GetInclude

func (*EnsureGraphDataReq) GetLimit

func (*EnsureGraphDataReq) GetQuest

func (x *EnsureGraphDataReq) GetQuest() []*Quest_Desc

func (*EnsureGraphDataReq) GetQuestAttempt

func (x *EnsureGraphDataReq) GetQuestAttempt() []*AttemptList_Nums

func (*EnsureGraphDataReq) GetRawAttempts

func (x *EnsureGraphDataReq) GetRawAttempts() *AttemptList

func (*EnsureGraphDataReq) GetTemplateAttempt

func (x *EnsureGraphDataReq) GetTemplateAttempt() []*AttemptList_Nums

func (*EnsureGraphDataReq) GetTemplateQuest

func (x *EnsureGraphDataReq) GetTemplateQuest() []*TemplateInstantiation

func (*EnsureGraphDataReq) Normalize

func (r *EnsureGraphDataReq) Normalize() error

Normalize returns an error iff the request is invalid.

func (*EnsureGraphDataReq) ProtoMessage

func (*EnsureGraphDataReq) ProtoMessage()

func (*EnsureGraphDataReq) ProtoReflect

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

func (*EnsureGraphDataReq) Reset

func (x *EnsureGraphDataReq) Reset()

func (*EnsureGraphDataReq) String

func (x *EnsureGraphDataReq) String() string

type EnsureGraphDataReq_Include

type EnsureGraphDataReq_Include struct {
	Attempt *EnsureGraphDataReq_Include_Options `protobuf:"bytes,4,opt,name=attempt,proto3" json:"attempt,omitempty"`
	// contains filtered or unexported fields
}

func (*EnsureGraphDataReq_Include) Descriptor deprecated

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

Deprecated: Use EnsureGraphDataReq_Include.ProtoReflect.Descriptor instead.

func (*EnsureGraphDataReq_Include) GetAttempt

func (*EnsureGraphDataReq_Include) ProtoMessage

func (*EnsureGraphDataReq_Include) ProtoMessage()

func (*EnsureGraphDataReq_Include) ProtoReflect

func (*EnsureGraphDataReq_Include) Reset

func (x *EnsureGraphDataReq_Include) Reset()

func (*EnsureGraphDataReq_Include) String

func (x *EnsureGraphDataReq_Include) String() string

type EnsureGraphDataReq_Include_Options

type EnsureGraphDataReq_Include_Options struct {

	// Instructs finished objects to include the Result field.
	Result bool `protobuf:"varint,3,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*EnsureGraphDataReq_Include_Options) Descriptor deprecated

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

Deprecated: Use EnsureGraphDataReq_Include_Options.ProtoReflect.Descriptor instead.

func (*EnsureGraphDataReq_Include_Options) GetResult

func (*EnsureGraphDataReq_Include_Options) ProtoMessage

func (*EnsureGraphDataReq_Include_Options) ProtoMessage()

func (*EnsureGraphDataReq_Include_Options) ProtoReflect

func (*EnsureGraphDataReq_Include_Options) Reset

func (*EnsureGraphDataReq_Include_Options) String

type EnsureGraphDataReq_Limit

type EnsureGraphDataReq_Limit struct {

	// MaxDataSize sets the maximum amount of 'Data' (in bytes) that can be
	// returned, if include.attempt_result is set. If this limit is hit, then
	// the appropriate 'partial' value will be set for that object, but the base
	// object would still be included in the result.
	//
	// If this limit is 0, a default limit of 16MB will be used. If this limit
	// exceeds 30MB, it will be reduced to 30MB.
	MaxDataSize uint32 `protobuf:"varint,3,opt,name=max_data_size,json=maxDataSize,proto3" json:"max_data_size,omitempty"`
	// contains filtered or unexported fields
}

func (*EnsureGraphDataReq_Limit) Descriptor deprecated

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

Deprecated: Use EnsureGraphDataReq_Limit.ProtoReflect.Descriptor instead.

func (*EnsureGraphDataReq_Limit) GetMaxDataSize

func (x *EnsureGraphDataReq_Limit) GetMaxDataSize() uint32

func (*EnsureGraphDataReq_Limit) ProtoMessage

func (*EnsureGraphDataReq_Limit) ProtoMessage()

func (*EnsureGraphDataReq_Limit) ProtoReflect

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

func (*EnsureGraphDataReq_Limit) Reset

func (x *EnsureGraphDataReq_Limit) Reset()

func (*EnsureGraphDataReq_Limit) String

func (x *EnsureGraphDataReq_Limit) String() string

type EnsureGraphDataRsp

type EnsureGraphDataRsp struct {

	// accepted is true when all new graph data was journaled successfully. This
	// means that `quests`, `attempts`, `template_quest`, `template_attempt` were
	// all well-formed and are scheduled to be added. They will 'eventually' be
	// readable via other APIs (like WalkGraph), but when they are, they'll have
	// the IDs reflected in this response.
	//
	// If `attempts` referrs to quests that don't exist and weren't provided in
	// `quests`, those quests will be listed in `result` with the DNE flag set.
	//
	// If `template_quest` had errors (missing template, bad params, etc.), the
	// errors will be located in `template_error`. If all of the templates parsed
	// successfully, the quest ids for those rendered `template_quest` will be in
	// `template_ids`.
	Accepted bool `protobuf:"varint,1,opt,name=accepted,proto3" json:"accepted,omitempty"`
	// quest_ids will be populated with the Quest.IDs of any quests defined
	// by quest in the initial request. Its length is guaranteed to match
	// the length of quest, if there were no errors.
	QuestIds []*Quest_ID `protobuf:"bytes,2,rep,name=quest_ids,json=questIds,proto3" json:"quest_ids,omitempty"`
	// template_ids will be populated with the Quest.IDs of any templates defined
	// by template_quest in the initial request. Its length is guaranteed to match
	// the length of template_quest, if there were no errors.
	TemplateIds []*Quest_ID `protobuf:"bytes,3,rep,name=template_ids,json=templateIds,proto3" json:"template_ids,omitempty"`
	// template_error is either empty if there were no template errors, or the
	// length of template_quest. Non-empty strings are errors.
	TemplateError []string `protobuf:"bytes,4,rep,name=template_error,json=templateError,proto3" json:"template_error,omitempty"`
	// result holds the graph data pertaining to the request, containing any
	// graph state that already existed at the time of the call. Any new data
	// that was added to the graph state (accepted==true) will appear with
	// `DNE==true`.
	//
	// Quest data will always be returned for any Quests which exist.
	//
	// If accepted==false, you can inspect this to determine why:
	//   * Quests (without data) mentioned by the `attempts` field that do not
	//     exist will have `DNE==true`.
	//
	// This also can be used to make adding dependencies a stateless
	// single-request action:
	//   * Attempts requested (assuming the corresponding Quest exists) will
	//     contain their current state. If Include.AttemptResult was true, the
	//     results will be populated (with the size limit mentioned in the request
	//     documentation).
	Result *GraphData `protobuf:"bytes,5,opt,name=result,proto3" json:"result,omitempty"`
	// (if `for_execution` was specified) ShouldHalt indicates that the request
	// was accepted by DM, and the execution should halt (DM will re-execute the
	// Attempt when it becomes unblocked). If this is true, then the execution's
	// auth Token is also revoked and will no longer work for futher API calls.
	//
	// If `for_execution` was provided in the request and this is false, it means
	// that the execution may continue executing.
	ShouldHalt bool `protobuf:"varint,6,opt,name=should_halt,json=shouldHalt,proto3" json:"should_halt,omitempty"`
	// contains filtered or unexported fields
}

func (*EnsureGraphDataRsp) Descriptor deprecated

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

Deprecated: Use EnsureGraphDataRsp.ProtoReflect.Descriptor instead.

func (*EnsureGraphDataRsp) GetAccepted

func (x *EnsureGraphDataRsp) GetAccepted() bool

func (*EnsureGraphDataRsp) GetQuestIds

func (x *EnsureGraphDataRsp) GetQuestIds() []*Quest_ID

func (*EnsureGraphDataRsp) GetResult

func (x *EnsureGraphDataRsp) GetResult() *GraphData

func (*EnsureGraphDataRsp) GetShouldHalt

func (x *EnsureGraphDataRsp) GetShouldHalt() bool

func (*EnsureGraphDataRsp) GetTemplateError

func (x *EnsureGraphDataRsp) GetTemplateError() []string

func (*EnsureGraphDataRsp) GetTemplateIds

func (x *EnsureGraphDataRsp) GetTemplateIds() []*Quest_ID

func (*EnsureGraphDataRsp) ProtoMessage

func (*EnsureGraphDataRsp) ProtoMessage()

func (*EnsureGraphDataRsp) ProtoReflect

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

func (*EnsureGraphDataRsp) Reset

func (x *EnsureGraphDataRsp) Reset()

func (*EnsureGraphDataRsp) String

func (x *EnsureGraphDataRsp) String() string

type Execution

type Execution struct {
	Id   *Execution_ID   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Data *Execution_Data `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// Partial is true iff the request asked for Executions, but wasn't able to
	// completely fill them.
	Partial bool `protobuf:"varint,16,opt,name=partial,proto3" json:"partial,omitempty"`
	// contains filtered or unexported fields
}

func NewExecutionAbnormalFinish

func NewExecutionAbnormalFinish(af *AbnormalFinish) *Execution

NewExecutionAbnormalFinish creates an Execution in the ABNORMAL_FINISH state.

func NewExecutionFinished

func NewExecutionFinished(result *JsonResult) *Execution

NewExecutionFinished creates an Execution in the FINISHED state.

func NewExecutionRunning

func NewExecutionRunning() *Execution

NewExecutionRunning creates an Execution in the RUNNING state.

func NewExecutionScheduling

func NewExecutionScheduling() *Execution

NewExecutionScheduling creates an Execution in the SCHEDULING state.

func NewExecutionStopping

func NewExecutionStopping() *Execution

NewExecutionStopping creates an Execution in the STOPPING state.

func (*Execution) Descriptor deprecated

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

Deprecated: Use Execution.ProtoReflect.Descriptor instead.

func (*Execution) GetData

func (x *Execution) GetData() *Execution_Data

func (*Execution) GetId

func (x *Execution) GetId() *Execution_ID

func (*Execution) GetPartial

func (x *Execution) GetPartial() bool

func (*Execution) ProtoMessage

func (*Execution) ProtoMessage()

func (*Execution) ProtoReflect

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

func (*Execution) PurgeTimestamps

func (e *Execution) PurgeTimestamps()

PurgeTimestamps implements TimestampPurger.

func (*Execution) Reset

func (x *Execution) Reset()

func (*Execution) String

func (x *Execution) String() string

func (*Execution) UpdateWith

func (e *Execution) UpdateWith(other *Execution)

UpdateWith updates this Execution with data from other.

type Execution_Auth

type Execution_Auth struct {
	Id    *Execution_ID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Token []byte        `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

Execution_Auth is a tuple of the requesting ExecutionID and the activated Execution Token (see the ActivateExecution rpc).

func (*Execution_Auth) Descriptor deprecated

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

Deprecated: Use Execution_Auth.ProtoReflect.Descriptor instead.

func (*Execution_Auth) FromProperty

func (p *Execution_Auth) FromProperty(prop datastore.Property) error

FromProperty implements datastore.PropertyConverter. It parses a '[]byte' into an embedded 'Execution_Auth' when used with the "go.chromium.org/luci/gae" library.

func (*Execution_Auth) GetId

func (x *Execution_Auth) GetId() *Execution_ID

func (*Execution_Auth) GetToken

func (x *Execution_Auth) GetToken() []byte

func (*Execution_Auth) Normalize

func (a *Execution_Auth) Normalize() error

Normalize returns an error iff the Execution_Auth has invalid form (e.g. contains nils).

func (*Execution_Auth) ProtoMessage

func (*Execution_Auth) ProtoMessage()

func (*Execution_Auth) ProtoReflect

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

func (*Execution_Auth) Reset

func (x *Execution_Auth) Reset()

func (*Execution_Auth) String

func (x *Execution_Auth) String() string

func (*Execution_Auth) ToProperty

func (p *Execution_Auth) ToProperty() (prop datastore.Property, err error)

ToProperty implements datastore.PropertyConverter. It causes an embedded 'Execution_Auth' to serialize to an unindexed '[]byte' when used with the "go.chromium.org/luci/gae" library.

type Execution_Data

type Execution_Data struct {
	Created         *timestamppb.Timestamp          `protobuf:"bytes,1,opt,name=created,proto3" json:"created,omitempty"`
	Modified        *timestamppb.Timestamp          `protobuf:"bytes,2,opt,name=modified,proto3" json:"modified,omitempty"`
	DistributorInfo *Execution_Data_DistributorInfo `protobuf:"bytes,3,opt,name=distributor_info,json=distributorInfo,proto3" json:"distributor_info,omitempty"`
	// Types that are assignable to ExecutionType:
	//	*Execution_Data_Scheduling_
	//	*Execution_Data_Running_
	//	*Execution_Data_Stopping_
	//	*Execution_Data_Finished_
	//	*Execution_Data_AbnormalFinish
	ExecutionType isExecution_Data_ExecutionType `protobuf_oneof:"execution_type"`
	// contains filtered or unexported fields
}

func (*Execution_Data) Descriptor deprecated

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

Deprecated: Use Execution_Data.ProtoReflect.Descriptor instead.

func (*Execution_Data) GetAbnormalFinish

func (x *Execution_Data) GetAbnormalFinish() *AbnormalFinish

func (*Execution_Data) GetCreated

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

func (*Execution_Data) GetDistributorInfo

func (x *Execution_Data) GetDistributorInfo() *Execution_Data_DistributorInfo

func (*Execution_Data) GetExecutionType

func (m *Execution_Data) GetExecutionType() isExecution_Data_ExecutionType

func (*Execution_Data) GetFinished

func (x *Execution_Data) GetFinished() *Execution_Data_Finished

func (*Execution_Data) GetModified

func (x *Execution_Data) GetModified() *timestamppb.Timestamp

func (*Execution_Data) GetRunning

func (x *Execution_Data) GetRunning() *Execution_Data_Running

func (*Execution_Data) GetScheduling

func (x *Execution_Data) GetScheduling() *Execution_Data_Scheduling

func (*Execution_Data) GetStopping

func (x *Execution_Data) GetStopping() *Execution_Data_Stopping

func (*Execution_Data) ProtoMessage

func (*Execution_Data) ProtoMessage()

func (*Execution_Data) ProtoReflect

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

func (*Execution_Data) PurgeTimestamps

func (ed *Execution_Data) PurgeTimestamps()

PurgeTimestamps implements TimestampPurger.

func (*Execution_Data) Reset

func (x *Execution_Data) Reset()

func (*Execution_Data) State

func (d *Execution_Data) State() Execution_State

State computes the Execution_State for the current Execution_Data

func (*Execution_Data) String

func (x *Execution_Data) String() string

func (*Execution_Data) UpdateWith

func (e *Execution_Data) UpdateWith(other *Execution_Data)

UpdateWith updates this Execution_Data with data from other.

type Execution_Data_AbnormalFinish

type Execution_Data_AbnormalFinish struct {
	AbnormalFinish *AbnormalFinish `protobuf:"bytes,8,opt,name=abnormal_finish,json=abnormalFinish,proto3,oneof"`
}

type Execution_Data_DistributorInfo

type Execution_Data_DistributorInfo struct {
	ConfigName    string `protobuf:"bytes,1,opt,name=config_name,json=configName,proto3" json:"config_name,omitempty"`
	ConfigVersion string `protobuf:"bytes,2,opt,name=config_version,json=configVersion,proto3" json:"config_version,omitempty"`
	Token         string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`
	Url           string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

func (*Execution_Data_DistributorInfo) Descriptor deprecated

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

Deprecated: Use Execution_Data_DistributorInfo.ProtoReflect.Descriptor instead.

func (*Execution_Data_DistributorInfo) GetConfigName

func (x *Execution_Data_DistributorInfo) GetConfigName() string

func (*Execution_Data_DistributorInfo) GetConfigVersion

func (x *Execution_Data_DistributorInfo) GetConfigVersion() string

func (*Execution_Data_DistributorInfo) GetToken

func (x *Execution_Data_DistributorInfo) GetToken() string

func (*Execution_Data_DistributorInfo) GetUrl

func (*Execution_Data_DistributorInfo) ProtoMessage

func (*Execution_Data_DistributorInfo) ProtoMessage()

func (*Execution_Data_DistributorInfo) ProtoReflect

func (*Execution_Data_DistributorInfo) Reset

func (x *Execution_Data_DistributorInfo) Reset()

func (*Execution_Data_DistributorInfo) String

type Execution_Data_Finished

type Execution_Data_Finished struct {
	Data *JsonResult `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*Execution_Data_Finished) Descriptor deprecated

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

Deprecated: Use Execution_Data_Finished.ProtoReflect.Descriptor instead.

func (*Execution_Data_Finished) GetData

func (x *Execution_Data_Finished) GetData() *JsonResult

func (*Execution_Data_Finished) ProtoMessage

func (*Execution_Data_Finished) ProtoMessage()

func (*Execution_Data_Finished) ProtoReflect

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

func (*Execution_Data_Finished) Reset

func (x *Execution_Data_Finished) Reset()

func (*Execution_Data_Finished) String

func (x *Execution_Data_Finished) String() string

type Execution_Data_Finished_

type Execution_Data_Finished_ struct {
	Finished *Execution_Data_Finished `protobuf:"bytes,7,opt,name=finished,proto3,oneof"`
}

type Execution_Data_Running

type Execution_Data_Running struct {
	// contains filtered or unexported fields
}

func (*Execution_Data_Running) Descriptor deprecated

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

Deprecated: Use Execution_Data_Running.ProtoReflect.Descriptor instead.

func (*Execution_Data_Running) ProtoMessage

func (*Execution_Data_Running) ProtoMessage()

func (*Execution_Data_Running) ProtoReflect

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

func (*Execution_Data_Running) Reset

func (x *Execution_Data_Running) Reset()

func (*Execution_Data_Running) String

func (x *Execution_Data_Running) String() string

type Execution_Data_Running_

type Execution_Data_Running_ struct {
	Running *Execution_Data_Running `protobuf:"bytes,5,opt,name=running,proto3,oneof"`
}

type Execution_Data_Scheduling

type Execution_Data_Scheduling struct {
	// contains filtered or unexported fields
}

func (*Execution_Data_Scheduling) Descriptor deprecated

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

Deprecated: Use Execution_Data_Scheduling.ProtoReflect.Descriptor instead.

func (*Execution_Data_Scheduling) ProtoMessage

func (*Execution_Data_Scheduling) ProtoMessage()

func (*Execution_Data_Scheduling) ProtoReflect

func (*Execution_Data_Scheduling) Reset

func (x *Execution_Data_Scheduling) Reset()

func (*Execution_Data_Scheduling) String

func (x *Execution_Data_Scheduling) String() string

type Execution_Data_Scheduling_

type Execution_Data_Scheduling_ struct {
	Scheduling *Execution_Data_Scheduling `protobuf:"bytes,4,opt,name=scheduling,proto3,oneof"`
}

type Execution_Data_Stopping

type Execution_Data_Stopping struct {
	// contains filtered or unexported fields
}

func (*Execution_Data_Stopping) Descriptor deprecated

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

Deprecated: Use Execution_Data_Stopping.ProtoReflect.Descriptor instead.

func (*Execution_Data_Stopping) ProtoMessage

func (*Execution_Data_Stopping) ProtoMessage()

func (*Execution_Data_Stopping) ProtoReflect

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

func (*Execution_Data_Stopping) Reset

func (x *Execution_Data_Stopping) Reset()

func (*Execution_Data_Stopping) String

func (x *Execution_Data_Stopping) String() string

type Execution_Data_Stopping_

type Execution_Data_Stopping_ struct {
	Stopping *Execution_Data_Stopping `protobuf:"bytes,6,opt,name=stopping,proto3,oneof"`
}

type Execution_ID

type Execution_ID struct {
	Quest   string `protobuf:"bytes,1,opt,name=quest,proto3" json:"quest,omitempty"`
	Attempt uint32 `protobuf:"varint,2,opt,name=attempt,proto3" json:"attempt,omitempty"`
	Id      uint32 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func NewExecutionID

func NewExecutionID(qst string, aid, eid uint32) *Execution_ID

NewExecutionID is a shorthand to New a new *Execution_ID

func (*Execution_ID) AttemptID

func (e *Execution_ID) AttemptID() *Attempt_ID

AttemptID is a helper function to obtain the *Attempt_ID from this Execution_ID.

func (*Execution_ID) Descriptor deprecated

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

Deprecated: Use Execution_ID.ProtoReflect.Descriptor instead.

func (*Execution_ID) Equals

func (e *Execution_ID) Equals(o *Execution_ID) bool

Equals returns true iff the two Execution_IDs are equivalent.

func (*Execution_ID) GetAttempt

func (x *Execution_ID) GetAttempt() uint32

func (*Execution_ID) GetId

func (x *Execution_ID) GetId() uint32

func (*Execution_ID) GetQuest

func (x *Execution_ID) GetQuest() string

func (*Execution_ID) ProtoMessage

func (*Execution_ID) ProtoMessage()

func (*Execution_ID) ProtoReflect

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

func (*Execution_ID) QuestID

func (e *Execution_ID) QuestID() *Quest_ID

QuestID is a helper function to obtain the *Quest_ID from this Execution_ID.

func (*Execution_ID) Reset

func (x *Execution_ID) Reset()

func (*Execution_ID) String

func (x *Execution_ID) String() string

type Execution_State

type Execution_State int32
const (
	// The execution has been accepted by the distributor, but is not running
	// yet.
	Execution_SCHEDULING Execution_State = 0
	// The execution is running (has activated with DM).
	Execution_RUNNING Execution_State = 1
	// The execution has been told to stop by DM, but we haven't heard from
	// the distributor yet.
	Execution_STOPPING Execution_State = 2
	// The execution is in its final state.
	Execution_FINISHED Execution_State = 3
	// The execution is in an abnormal final state
	Execution_ABNORMAL_FINISHED Execution_State = 4
)

func (Execution_State) Descriptor

func (Execution_State) Enum

func (x Execution_State) Enum() *Execution_State

func (Execution_State) EnumDescriptor deprecated

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

Deprecated: Use Execution_State.Descriptor instead.

func (*Execution_State) Evolve

func (s *Execution_State) Evolve(newState Execution_State) error

Evolve attempts to evolve the state of this Attempt. If the state evolution is not allowed (e.g. invalid state transition), this returns an error.

func (*Execution_State) MustEvolve

func (s *Execution_State) MustEvolve(newState Execution_State)

MustEvolve is a panic'ing version of Evolve.

func (Execution_State) Number

func (Execution_State) String

func (x Execution_State) String() string

func (Execution_State) Terminal

func (s Execution_State) Terminal() bool

Terminal returns true iff there are no valid evolutions from the current state.

func (Execution_State) Type

type FinishAttemptReq

type FinishAttemptReq struct {

	// required
	Auth *Execution_Auth `protobuf:"bytes,1,opt,name=auth,proto3" json:"auth,omitempty"`
	// The result data for this Attempt. The `size` field is recalculated after
	// the data field is normalized, and may be omitted.
	Data *JsonResult `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

FinishAttemptReq sets the final result of an Attempt.

func (*FinishAttemptReq) Descriptor deprecated

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

Deprecated: Use FinishAttemptReq.ProtoReflect.Descriptor instead.

func (*FinishAttemptReq) GetAuth

func (x *FinishAttemptReq) GetAuth() *Execution_Auth

func (*FinishAttemptReq) GetData

func (x *FinishAttemptReq) GetData() *JsonResult

func (*FinishAttemptReq) Normalize

func (a *FinishAttemptReq) Normalize() error

Normalize returns an error iff the ActivateExecutionReq has bad form (nils, insufficient activation token length, etc.

func (*FinishAttemptReq) ProtoMessage

func (*FinishAttemptReq) ProtoMessage()

func (*FinishAttemptReq) ProtoReflect

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

func (*FinishAttemptReq) Reset

func (x *FinishAttemptReq) Reset()

func (*FinishAttemptReq) String

func (x *FinishAttemptReq) String() string

type GraphData

type GraphData struct {

	// Quests is the main entry point for all the graph data.
	// key is the `id` field of the QuestID
	Quests map[string]*Quest `` /* 153-byte string literal not displayed */
	// HadErrors is set to true if the data represented here is a partial view
	// of the requested data due to internal errors. The request may be repeated
	// or the client may chose to make smaller queries into the portions of the
	// graph that are missing.
	//
	// If HadErrors is set HadMore will also be set.
	HadErrors bool `protobuf:"varint,2,opt,name=had_errors,json=hadErrors,proto3" json:"had_errors,omitempty"`
	// HadMore is set to true if the request stopped short of the full query
	// result set due to things like:
	//   * max response size limit
	//   * max time limit (e.g. WalkGraphReq.MaxTime) being hit
	//   * non-terminal errors encountered during the request (HadErrors will also
	//     be true in this case).
	//
	// Note that this is different than the Partial booleans: This refers
	// specifically to situations when Queries do not run to completion.
	HadMore bool `protobuf:"varint,3,opt,name=had_more,json=hadMore,proto3" json:"had_more,omitempty"`
	// contains filtered or unexported fields
}

GraphData defines all of the DM graph data that may be returned from DM.

Currently only WalkGraph returns GraphData, but in the future other APIs will explore the graph in other ways, and they'll return this same data structure.

The design of this message is intended to allow clients to easily accumulate various GraphData from different sources in order to maintain an in-memory cache of data that exists in DM, where that data is discovered across multiple RPCs.

func (*GraphData) Descriptor deprecated

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

Deprecated: Use GraphData.ProtoReflect.Descriptor instead.

func (*GraphData) GetHadErrors

func (x *GraphData) GetHadErrors() bool

func (*GraphData) GetHadMore

func (x *GraphData) GetHadMore() bool

func (*GraphData) GetQuest

func (g *GraphData) GetQuest(qid string) (*Quest, bool)

GetQuest gets the specified quest from GraphData, if it's already there. If it's not, then a new Quest will be created, added, and returned.

If the Quests map is uninitialized, this will initialize it.

func (*GraphData) GetQuests

func (x *GraphData) GetQuests() map[string]*Quest

func (*GraphData) ProtoMessage

func (*GraphData) ProtoMessage()

func (*GraphData) ProtoReflect

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

func (*GraphData) PurgeTimestamps

func (g *GraphData) PurgeTimestamps()

PurgeTimestamps implements TimestampPurger.

func (*GraphData) Reset

func (x *GraphData) Reset()

func (*GraphData) String

func (x *GraphData) String() string

func (*GraphData) ToQuery

func (g *GraphData) ToQuery() (ret *GraphQuery)

ToQuery generates a new GraphQuery.

This generates a GraphQuery that queries for any Attempts which are marked as Partial in the current GraphData.

func (*GraphData) UpdateWith

func (g *GraphData) UpdateWith(other *GraphData)

UpdateWith updates this GraphData with all of the data contained in other. Assumes that any mutable data in other is more up-to-date than the data in g.

type GraphQuery

type GraphQuery struct {

	// AttemptList allows you to list one or more specific attempts as the result
	// of the query. If a quest contains the attempt number 0, or is empty, it
	// means 'all attempts for this quest'.
	AttemptList *AttemptList `protobuf:"bytes,1,opt,name=attempt_list,json=attemptList,proto3" json:"attempt_list,omitempty"`
	// attempt_range allows you to list a range of attempts in a single quest.
	// low must be > 0, and high must be > low. The range is [low, high). High may
	// be higher than the highest attempt, and low may be lower than the lowest
	// attempt (but not 0).
	AttemptRange []*GraphQuery_AttemptRange `protobuf:"bytes,2,rep,name=attempt_range,json=attemptRange,proto3" json:"attempt_range,omitempty"`
	Search       []*GraphQuery_Search       `protobuf:"bytes,3,rep,name=search,proto3" json:"search,omitempty"`
	// contains filtered or unexported fields
}

GraphQuery represents a single query into the state of DM's dependency graph. It's a required parameter for WalkGraphReq.

func AttemptListQuery

func AttemptListQuery(fanout *AttemptList) *GraphQuery

AttemptListQuery returns a new GraphQuery for the given AttemptList.

func AttemptListQueryL

func AttemptListQueryL(fanout map[string][]uint32) *GraphQuery

AttemptListQueryL returns a new GraphQuery for the given AttemptList literal.

func AttemptRangeQuery

func AttemptRangeQuery(quest string, low, high uint32) *GraphQuery

AttemptRangeQuery returns a new GraphQuery for the given AttemptRange specification.

func (*GraphQuery) Descriptor deprecated

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

Deprecated: Use GraphQuery.ProtoReflect.Descriptor instead.

func (*GraphQuery) GetAttemptList

func (x *GraphQuery) GetAttemptList() *AttemptList

func (*GraphQuery) GetAttemptRange

func (x *GraphQuery) GetAttemptRange() []*GraphQuery_AttemptRange

func (*GraphQuery) GetSearch

func (x *GraphQuery) GetSearch() []*GraphQuery_Search

func (*GraphQuery) Normalize

func (g *GraphQuery) Normalize() error

Normalize returns an error iff this GraphQuery is not valid.

func (*GraphQuery) ProtoMessage

func (*GraphQuery) ProtoMessage()

func (*GraphQuery) ProtoReflect

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

func (*GraphQuery) Reset

func (x *GraphQuery) Reset()

func (*GraphQuery) String

func (x *GraphQuery) String() string

type GraphQuery_AttemptRange

type GraphQuery_AttemptRange struct {
	Quest string `protobuf:"bytes,1,opt,name=quest,proto3" json:"quest,omitempty"`
	Low   uint32 `protobuf:"varint,2,opt,name=low,proto3" json:"low,omitempty"`
	High  uint32 `protobuf:"varint,3,opt,name=high,proto3" json:"high,omitempty"`
	// contains filtered or unexported fields
}

func (*GraphQuery_AttemptRange) Descriptor deprecated

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

Deprecated: Use GraphQuery_AttemptRange.ProtoReflect.Descriptor instead.

func (*GraphQuery_AttemptRange) GetHigh

func (x *GraphQuery_AttemptRange) GetHigh() uint32

func (*GraphQuery_AttemptRange) GetLow

func (x *GraphQuery_AttemptRange) GetLow() uint32

func (*GraphQuery_AttemptRange) GetQuest

func (x *GraphQuery_AttemptRange) GetQuest() string

func (*GraphQuery_AttemptRange) Normalize

func (al *GraphQuery_AttemptRange) Normalize() error

Normalize returns nil iff this AttemptRange is in a bad state.

func (*GraphQuery_AttemptRange) ProtoMessage

func (*GraphQuery_AttemptRange) ProtoMessage()

func (*GraphQuery_AttemptRange) ProtoReflect

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

func (*GraphQuery_AttemptRange) Reset

func (x *GraphQuery_AttemptRange) Reset()

func (*GraphQuery_AttemptRange) String

func (x *GraphQuery_AttemptRange) String() string
type GraphQuery_Search struct {

	// Domain indicates which class of objects your query applies to. The fields
	// available to query are defined by the `data` field in the corresponding
	// GraphData message.
	//
	// Additionally `Attempt` has a special field $quest whose subfields are
	// queriable in the exact same way that a search in a Quest domain works.
	Domain GraphQuery_Search_Domain `protobuf:"varint,1,opt,name=domain,proto3,enum=dm.GraphQuery_Search_Domain" json:"domain,omitempty"`
	// Start and End are optional restrictions on the first sort property. For
	// now, these are just restrictions on the 'created' timestamp for either
	// the Quest or Attempt, depending on the SearchDomain.
	Start *PropertyValue `protobuf:"bytes,3,opt,name=start,proto3" json:"start,omitempty"`
	End   *PropertyValue `protobuf:"bytes,4,opt,name=end,proto3" json:"end,omitempty"`
	// ApproxFilters allows you to filter on 'approximate' fields. Approximate
	// fields are the json path to the value, without any array subscripts. For
	// example, if your document looked like:
	//
	//   {
	//     "some": ["list", {"of": ["data", "and", "stuff"]}],
	//   }
	//
	// Then the following approximate filters would match:
	//   "some" = ["list"]
	//   "some.of" = ["data"]
	//   "some.of" = ["and"]
	//   "some.of" = ["stuff"]
	//   "some.of" = ["stuff", "and"]
	//   "some.of" = ["stuff", "and", "data"]
	//
	// This is useful for filtering documents where the order of parameters
	// in a list or sublist isn't known, or doesn't matter.
	ApproxFilters map[string]*MultiPropertyValue `` /* 188-byte string literal not displayed */
	// ExactFilters allows you to filter on 'exact' fields. Exact fields are the
	// json path to the value, including array subscripts. For example if your
	// document looked like:
	//
	//   {
	//     "some": ["list", {"of": ["data", "and", "stuff"]}],
	//   }
	//
	// Then the following exact filters would match:
	//   "some[0]" = "list"
	//   "some[1].of[0]" = "data"
	//   "some[1].of[1]" = "and"
	//   "some[1].of[2]" = "stuff"
	//
	// This is useful for filtering documents where the order of parameters
	// in a list or sublist matters.
	ExactFilters map[string]*PropertyValue `` /* 185-byte string literal not displayed */
	// contains filtered or unexported fields
}

A Search allows you to query objects whose properties match all of the provided filters. Filters take the form of a dot-delimited path. For example, say that we had the following objects:

Quest(id=deadbeef):
  created = <timestamp>  #sort
  descriptor.distributor_config_name = "foo"
  descriptor.json_payload = {
    "key": "value",
    "multi": ["some", 10, "values", true],
    "sub": [{"msg": 11}, {"msg": 12}],
  }

Attempt(id=deadbeef|1):
  created = <timestamp>  #sort
  attempt_type = Finished
  finished.expiration = <timestamp>
  finished.json_result = {
    "rslt": "yes",
    "ok": true,
  }

Then you could query (in pseudo-proto):

domain: Attempt
approx_filters: {
  "attempt_type": ["Finished"],
  "$quest.descriptor.json_payload.multi": [true, 10],
  "$quest.descriptor.json_payload.sub.msg": [11, 10],
  "finished.json_result.ok": [true],
}

Or:

domain: Attempt
exact_filters: {
  "$quest.descriptor.json_payload.multi[1]": [10],
  "$quest.descriptor.json_payload.sub[0].msg": [11],
}

Literal '.' and '[' characters may be escaped with a backslash.

func (*GraphQuery_Search) Descriptor deprecated

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

Deprecated: Use GraphQuery_Search.ProtoReflect.Descriptor instead.

func (*GraphQuery_Search) GetApproxFilters

func (x *GraphQuery_Search) GetApproxFilters() map[string]*MultiPropertyValue

func (*GraphQuery_Search) GetDomain

func (*GraphQuery_Search) GetEnd

func (x *GraphQuery_Search) GetEnd() *PropertyValue

func (*GraphQuery_Search) GetExactFilters

func (x *GraphQuery_Search) GetExactFilters() map[string]*PropertyValue

func (*GraphQuery_Search) GetStart

func (x *GraphQuery_Search) GetStart() *PropertyValue

func (*GraphQuery_Search) Normalize

func (s *GraphQuery_Search) Normalize() error

Normalize returns nil iff this Search is in a bad state.

func (*GraphQuery_Search) ProtoMessage

func (*GraphQuery_Search) ProtoMessage()

func (*GraphQuery_Search) ProtoReflect

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

func (*GraphQuery_Search) Reset

func (x *GraphQuery_Search) Reset()

func (*GraphQuery_Search) String

func (x *GraphQuery_Search) String() string

type GraphQuery_Search_Domain

type GraphQuery_Search_Domain int32
const (
	GraphQuery_Search_QUEST   GraphQuery_Search_Domain = 0
	GraphQuery_Search_ATTEMPT GraphQuery_Search_Domain = 1
)

func (GraphQuery_Search_Domain) Descriptor

func (GraphQuery_Search_Domain) Enum

func (GraphQuery_Search_Domain) EnumDescriptor deprecated

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

Deprecated: Use GraphQuery_Search_Domain.Descriptor instead.

func (GraphQuery_Search_Domain) Number

func (GraphQuery_Search_Domain) String

func (x GraphQuery_Search_Domain) String() string

func (GraphQuery_Search_Domain) Type

type JsonResult

type JsonResult struct {

	// Guaranteed to be a JSON object `{...}` or the empty string (if this is part
	// of a Partial result from e.g. a WalkGraph RPC).
	Object string `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"`
	// The length of data. If this message is non-nil, this will have a value even
	// if object is empty (e.g. for a partial result). This is useful for query
	// results where you either opt to not load the data (include.*.data ==
	// false), or the response exceeds the size limit (so you can see how big the
	// data would have been if the limit wasn't exceeded).
	Size uint32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	// The timestamp of when this JsonResult's contents expire. If omitted, it
	// should be assumed that the contents never expire.
	Expiration *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expiration,proto3" json:"expiration,omitempty"`
	// contains filtered or unexported fields
}

JsonResult represents a free-form JSON object. It has a maximum size of 256KB normalized (no extra whitespace). DM will normalize incoming JSONObjects before recalculating their size.

func NewDatalessJsonResult

func NewDatalessJsonResult(size uint32, exps ...time.Time) *JsonResult

NewDatalessJsonResult creates a new JsonResult object without data and with optional expiration time.

func NewJsonResult

func NewJsonResult(data string, exps ...time.Time) *JsonResult

NewJsonResult creates a new JsonResult object with optional expiration time.

func (*JsonResult) Descriptor deprecated

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

Deprecated: Use JsonResult.ProtoReflect.Descriptor instead.

func (*JsonResult) FromProperty

func (p *JsonResult) FromProperty(prop datastore.Property) error

FromProperty implements datastore.PropertyConverter. It parses a '[]byte' into an embedded 'JsonResult' when used with the "go.chromium.org/luci/gae" library.

func (*JsonResult) GetExpiration

func (x *JsonResult) GetExpiration() *timestamppb.Timestamp

func (*JsonResult) GetObject

func (x *JsonResult) GetObject() string

func (*JsonResult) GetSize

func (x *JsonResult) GetSize() uint32

func (*JsonResult) Normalize

func (j *JsonResult) Normalize() error

Normalize normalizes the JSONObject (ensures it's an object, removes whitespace, sorts keys, normalizes Size value, etc.)

func (*JsonResult) ProtoMessage

func (*JsonResult) ProtoMessage()

func (*JsonResult) ProtoReflect

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

func (*JsonResult) Reset

func (x *JsonResult) Reset()

func (*JsonResult) String

func (x *JsonResult) String() string

func (*JsonResult) ToProperty

func (p *JsonResult) ToProperty() (prop datastore.Property, err error)

ToProperty implements datastore.PropertyConverter. It causes an embedded 'JsonResult' to serialize to an unindexed '[]byte' when used with the "go.chromium.org/luci/gae" library.

type MultiPropertyValue

type MultiPropertyValue struct {
	Values []*PropertyValue `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*MultiPropertyValue) Descriptor deprecated

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

Deprecated: Use MultiPropertyValue.ProtoReflect.Descriptor instead.

func (*MultiPropertyValue) GetValues

func (x *MultiPropertyValue) GetValues() []*PropertyValue

func (*MultiPropertyValue) ProtoMessage

func (*MultiPropertyValue) ProtoMessage()

func (*MultiPropertyValue) ProtoReflect

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

func (*MultiPropertyValue) Reset

func (x *MultiPropertyValue) Reset()

func (*MultiPropertyValue) String

func (x *MultiPropertyValue) String() string

type PropertyValue

type PropertyValue struct {

	// Types that are assignable to Value:
	//	*PropertyValue_Str
	//	*PropertyValue_Dat
	//	*PropertyValue_Num
	//	*PropertyValue_Bin
	//	*PropertyValue_Time
	//	*PropertyValue_Null
	Value isPropertyValue_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*PropertyValue) Descriptor deprecated

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

Deprecated: Use PropertyValue.ProtoReflect.Descriptor instead.

func (*PropertyValue) GetBin

func (x *PropertyValue) GetBin() bool

func (*PropertyValue) GetDat

func (x *PropertyValue) GetDat() []byte

func (*PropertyValue) GetNull

func (x *PropertyValue) GetNull() *emptypb.Empty

func (*PropertyValue) GetNum

func (x *PropertyValue) GetNum() int64

func (*PropertyValue) GetStr

func (x *PropertyValue) GetStr() string

func (*PropertyValue) GetTime

func (x *PropertyValue) GetTime() *timestamppb.Timestamp

func (*PropertyValue) GetValue

func (m *PropertyValue) GetValue() isPropertyValue_Value

func (*PropertyValue) ProtoMessage

func (*PropertyValue) ProtoMessage()

func (*PropertyValue) ProtoReflect

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

func (*PropertyValue) Reset

func (x *PropertyValue) Reset()

func (*PropertyValue) String

func (x *PropertyValue) String() string

type PropertyValue_Bin

type PropertyValue_Bin struct {
	Bin bool `protobuf:"varint,5,opt,name=bin,proto3,oneof"`
}

type PropertyValue_Dat

type PropertyValue_Dat struct {
	Dat []byte `protobuf:"bytes,2,opt,name=dat,proto3,oneof"`
}

type PropertyValue_Null

type PropertyValue_Null struct {
	Null *emptypb.Empty `protobuf:"bytes,7,opt,name=null,proto3,oneof"`
}

type PropertyValue_Num

type PropertyValue_Num struct {
	Num int64 `protobuf:"varint,3,opt,name=num,proto3,oneof"`
}

type PropertyValue_Str

type PropertyValue_Str struct {
	Str string `protobuf:"bytes,1,opt,name=str,proto3,oneof"`
}

type PropertyValue_Time

type PropertyValue_Time struct {
	// Time should only be used with the start/end PropertyValues in
	// GraphQuerySearch. If specified in a filter map, it will be ignored.
	Time *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=time,proto3,oneof"`
}

type Quest

type Quest struct {
	Id *Quest_ID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// DNE is set to true if this Quest does not exist. None of the following
	// fields are valid if this is set to true.
	DNE  bool        `protobuf:"varint,2,opt,name=DNE,proto3" json:"DNE,omitempty"`
	Data *Quest_Data `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// key is the `id` field of the Attempt.ID
	Attempts map[uint32]*Attempt `` /* 158-byte string literal not displayed */
	// Partial is true iff the request asked for QuestData, but wasn't able to
	// completely fill it.
	Partial bool `protobuf:"varint,16,opt,name=partial,proto3" json:"partial,omitempty"`
	// contains filtered or unexported fields
}

func (*Quest) Descriptor deprecated

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

Deprecated: Use Quest.ProtoReflect.Descriptor instead.

func (*Quest) GetAttempts

func (x *Quest) GetAttempts() map[uint32]*Attempt

func (*Quest) GetDNE

func (x *Quest) GetDNE() bool

func (*Quest) GetData

func (x *Quest) GetData() *Quest_Data

func (*Quest) GetId

func (x *Quest) GetId() *Quest_ID

func (*Quest) GetPartial

func (x *Quest) GetPartial() bool

func (*Quest) ProtoMessage

func (*Quest) ProtoMessage()

func (*Quest) ProtoReflect

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

func (*Quest) PurgeTimestamps

func (q *Quest) PurgeTimestamps()

PurgeTimestamps implements TimestampPurger.

func (*Quest) Reset

func (x *Quest) Reset()

func (*Quest) String

func (x *Quest) String() string

func (*Quest) UpdateWith

func (q *Quest) UpdateWith(o *Quest)

UpdateWith updates this Quest with data from other.

type QuestTemplateSpecs

type QuestTemplateSpecs []*Quest_TemplateSpec

QuestTemplateSpecs is a sortable slice of *Quest_TemplateSpec.

func (QuestTemplateSpecs) Len

func (s QuestTemplateSpecs) Len() int

func (QuestTemplateSpecs) Less

func (s QuestTemplateSpecs) Less(i, j int) bool

func (QuestTemplateSpecs) Swap

func (s QuestTemplateSpecs) Swap(i, j int)

type Quest_Data

type Quest_Data struct {
	Created *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=created,proto3" json:"created,omitempty"`
	Desc    *Quest_Desc            `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"`
	BuiltBy []*Quest_TemplateSpec  `protobuf:"bytes,3,rep,name=built_by,json=builtBy,proto3" json:"built_by,omitempty"`
	// contains filtered or unexported fields
}

func (*Quest_Data) Descriptor deprecated

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

Deprecated: Use Quest_Data.ProtoReflect.Descriptor instead.

func (*Quest_Data) GetBuiltBy

func (x *Quest_Data) GetBuiltBy() []*Quest_TemplateSpec

func (*Quest_Data) GetCreated

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

func (*Quest_Data) GetDesc

func (x *Quest_Data) GetDesc() *Quest_Desc

func (*Quest_Data) ProtoMessage

func (*Quest_Data) ProtoMessage()

func (*Quest_Data) ProtoReflect

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

func (*Quest_Data) PurgeTimestamps

func (qd *Quest_Data) PurgeTimestamps()

PurgeTimestamps implements TimestampPurger.

func (*Quest_Data) Reset

func (x *Quest_Data) Reset()

func (*Quest_Data) String

func (x *Quest_Data) String() string

func (*Quest_Data) UpdateWith

func (q *Quest_Data) UpdateWith(other *Quest_Data)

UpdateWith updates this Quest_Data with data from other.

type Quest_Desc

type Quest_Desc struct {

	// This names a specific distributor configuration (or alias) in the
	// service's distributors.cfg file. This will be used to look up the
	// distributor's implementation and connection information when Attempts for
	// this Quest are Executed.
	DistributorConfigName string `` /* 126-byte string literal not displayed */
	// A JSON object which corresponds to the input parameters for the job.
	// These will be passed in a distributor-specific way to the job. This is
	// a freeform JSON object, and must parse as such, but otherwise doesn't
	// necessarily have a server-enforced schema.
	//
	// The distributor implementation in DM will not use the contents of these
	// to make any scheduling decisions.
	//
	// The distributor MAY choose to validate some schema for these parameters.
	Parameters string `protobuf:"bytes,2,opt,name=parameters,proto3" json:"parameters,omitempty"`
	// A JSON object which corresponds to the distributor-specific parameters
	// for the job.
	//
	// The distributor defines and validates the schema for these, and will use
	// the values herein to make decisions about how the job is run. It is up to
	// the distributor whether these values are passed on to the job, and if so
	// in what form.
	DistributorParameters string `protobuf:"bytes,3,opt,name=distributor_parameters,json=distributorParameters,proto3" json:"distributor_parameters,omitempty"`
	// This is metadata which doesn't affect the functionality of the payload,
	// but does affect how DM interacts with the distributor when scheduling
	// Executions.
	Meta *Quest_Desc_Meta `protobuf:"bytes,4,opt,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

func NewQuestDesc

func NewQuestDesc(cfg string, params, distParams string, meta *Quest_Desc_Meta) *Quest_Desc

NewQuestDesc is a shorthand method for building a new *Quest_Desc.

func (*Quest_Desc) Descriptor deprecated

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

Deprecated: Use Quest_Desc.ProtoReflect.Descriptor instead.

func (*Quest_Desc) FromProperty

func (p *Quest_Desc) FromProperty(prop datastore.Property) error

FromProperty implements datastore.PropertyConverter. It parses a '[]byte' into an embedded 'Quest_Desc' when used with the "go.chromium.org/luci/gae" library.

func (*Quest_Desc) GetDistributorConfigName

func (x *Quest_Desc) GetDistributorConfigName() string

func (*Quest_Desc) GetDistributorParameters

func (x *Quest_Desc) GetDistributorParameters() string

func (*Quest_Desc) GetMeta

func (x *Quest_Desc) GetMeta() *Quest_Desc_Meta

func (*Quest_Desc) GetParameters

func (x *Quest_Desc) GetParameters() string

func (*Quest_Desc) Normalize

func (q *Quest_Desc) Normalize() error

Normalize returns an error iff the Quest_Desc is invalid.

func (*Quest_Desc) ProtoMessage

func (*Quest_Desc) ProtoMessage()

func (*Quest_Desc) ProtoReflect

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

func (*Quest_Desc) QuestID

func (q *Quest_Desc) QuestID() string

QuestID computes the DM compatible quest ID for this Quest_Desc. The Quest_Desc should already be Normalize()'d.

func (*Quest_Desc) Reset

func (x *Quest_Desc) Reset()

func (*Quest_Desc) String

func (x *Quest_Desc) String() string

func (*Quest_Desc) ToProperty

func (p *Quest_Desc) ToProperty() (prop datastore.Property, err error)

ToProperty implements datastore.PropertyConverter. It causes an embedded 'Quest_Desc' to serialize to an unindexed '[]byte' when used with the "go.chromium.org/luci/gae" library.

type Quest_Desc_Meta

type Quest_Desc_Meta struct {

	// This names the user/service account for all Attempts on this quest. You
	// must have permission to use this account when creating the Quest and/or
	// Attempts.
	AsAccount string `protobuf:"bytes,1,opt,name=as_account,json=asAccount,proto3" json:"as_account,omitempty"`
	// This affects how DM will retry the job payload in various exceptional
	// circumstances.
	Retry    *Quest_Desc_Meta_Retry    `protobuf:"bytes,2,opt,name=retry,proto3" json:"retry,omitempty"`
	Timeouts *Quest_Desc_Meta_Timeouts `protobuf:"bytes,3,opt,name=timeouts,proto3" json:"timeouts,omitempty"`
	// contains filtered or unexported fields
}

func (*Quest_Desc_Meta) Descriptor deprecated

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

Deprecated: Use Quest_Desc_Meta.ProtoReflect.Descriptor instead.

func (*Quest_Desc_Meta) GetAsAccount

func (x *Quest_Desc_Meta) GetAsAccount() string

func (*Quest_Desc_Meta) GetRetry

func (x *Quest_Desc_Meta) GetRetry() *Quest_Desc_Meta_Retry

func (*Quest_Desc_Meta) GetTimeouts

func (x *Quest_Desc_Meta) GetTimeouts() *Quest_Desc_Meta_Timeouts

func (*Quest_Desc_Meta) IsEmpty

func (q *Quest_Desc_Meta) IsEmpty() bool

IsEmpty returns true if this metadata only contains zero-values.

func (*Quest_Desc_Meta) ProtoMessage

func (*Quest_Desc_Meta) ProtoMessage()

func (*Quest_Desc_Meta) ProtoReflect

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

func (*Quest_Desc_Meta) Reset

func (x *Quest_Desc_Meta) Reset()

func (*Quest_Desc_Meta) String

func (x *Quest_Desc_Meta) String() string

type Quest_Desc_Meta_Retry

type Quest_Desc_Meta_Retry struct {

	// The number of times in a row to retry Executions which have an
	// ABNORMAL_FINISHED status of FAILED.
	Failed uint32 `protobuf:"varint,1,opt,name=failed,proto3" json:"failed,omitempty"`
	// The number of times in a row to retry Executions which have an
	// ABNORMAL_FINISHED status of CRASHED.
	Crashed uint32 `protobuf:"varint,2,opt,name=crashed,proto3" json:"crashed,omitempty"`
	// The number of times in a row to retry Executions which have an
	// ABNORMAL_FINISHED status of EXPIRED.
	Expired uint32 `protobuf:"varint,3,opt,name=expired,proto3" json:"expired,omitempty"`
	// The number of times in a row to retry Executions which have an
	// ABNORMAL_FINISHED status of TIMED_OUT.
	TimedOut uint32 `protobuf:"varint,4,opt,name=timed_out,json=timedOut,proto3" json:"timed_out,omitempty"`
	// contains filtered or unexported fields
}

Retry specifies the number of times in a row that DM should re-Execute an Attempt due to the provided abnormal result.

NOTE: The proto tag numbers for these MUST be aligned with the enumeration values of AbnormalFinish.Status!

func (*Quest_Desc_Meta_Retry) Descriptor deprecated

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

Deprecated: Use Quest_Desc_Meta_Retry.ProtoReflect.Descriptor instead.

func (*Quest_Desc_Meta_Retry) GetCrashed

func (x *Quest_Desc_Meta_Retry) GetCrashed() uint32

func (*Quest_Desc_Meta_Retry) GetExpired

func (x *Quest_Desc_Meta_Retry) GetExpired() uint32

func (*Quest_Desc_Meta_Retry) GetFailed

func (x *Quest_Desc_Meta_Retry) GetFailed() uint32

func (*Quest_Desc_Meta_Retry) GetTimedOut

func (x *Quest_Desc_Meta_Retry) GetTimedOut() uint32

func (*Quest_Desc_Meta_Retry) IsEmpty

func (q *Quest_Desc_Meta_Retry) IsEmpty() bool

IsEmpty returns true if this metadata retry message only contains zero-values.

func (*Quest_Desc_Meta_Retry) ProtoMessage

func (*Quest_Desc_Meta_Retry) ProtoMessage()

func (*Quest_Desc_Meta_Retry) ProtoReflect

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

func (*Quest_Desc_Meta_Retry) Reset

func (x *Quest_Desc_Meta_Retry) Reset()

func (*Quest_Desc_Meta_Retry) String

func (x *Quest_Desc_Meta_Retry) String() string

type Quest_Desc_Meta_Timeouts

type Quest_Desc_Meta_Timeouts struct {
	Start *durationpb.Duration `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"`
	Run   *durationpb.Duration `protobuf:"bytes,2,opt,name=run,proto3" json:"run,omitempty"`
	Stop  *durationpb.Duration `protobuf:"bytes,3,opt,name=stop,proto3" json:"stop,omitempty"`
	// contains filtered or unexported fields
}

Timing describes the amount of time that Executions for this Quest should have, on the following timeline:

Event: execution sent to distributor
  ^ "start" v
Event: execution sends ActivateExecution
  ^ "run" v
Event: execution sends halting RPC (either ActivateExecution or
  EnsureGraphData)
  ^ "stop" v
Event: distributor gives execution result back to DM

If the given timeout hits before the next event in the timeline, DM will mark the Execution as TIMED_OUT, and the appropriate retry policy will be applied.

If a given timeout is unlimited, leave the duration unset or 0.

func (*Quest_Desc_Meta_Timeouts) Descriptor deprecated

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

Deprecated: Use Quest_Desc_Meta_Timeouts.ProtoReflect.Descriptor instead.

func (*Quest_Desc_Meta_Timeouts) GetRun

func (*Quest_Desc_Meta_Timeouts) GetStart

func (*Quest_Desc_Meta_Timeouts) GetStop

func (*Quest_Desc_Meta_Timeouts) Normalize

func (t *Quest_Desc_Meta_Timeouts) Normalize() error

Normalize ensures that all timeouts are >= 0

func (*Quest_Desc_Meta_Timeouts) ProtoMessage

func (*Quest_Desc_Meta_Timeouts) ProtoMessage()

func (*Quest_Desc_Meta_Timeouts) ProtoReflect

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

func (*Quest_Desc_Meta_Timeouts) Reset

func (x *Quest_Desc_Meta_Timeouts) Reset()

func (*Quest_Desc_Meta_Timeouts) String

func (x *Quest_Desc_Meta_Timeouts) String() string

type Quest_ID

type Quest_ID struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func NewQuestID

func NewQuestID(qst string) *Quest_ID

NewQuestID is a shorthand to New a new *Quest_ID

func (*Quest_ID) Descriptor deprecated

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

Deprecated: Use Quest_ID.ProtoReflect.Descriptor instead.

func (*Quest_ID) Equals

func (q *Quest_ID) Equals(o *Quest_ID) bool

Equals returns true iff the two Quest_IDs are equivalent.

func (*Quest_ID) GetId

func (x *Quest_ID) GetId() string

func (*Quest_ID) ProtoMessage

func (*Quest_ID) ProtoMessage()

func (*Quest_ID) ProtoReflect

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

func (*Quest_ID) Reset

func (x *Quest_ID) Reset()

func (*Quest_ID) String

func (x *Quest_ID) String() string

type Quest_TemplateSpec

type Quest_TemplateSpec struct {
	Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	Ref     string `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"`
	Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
	Name    string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func NewTemplateSpec

func NewTemplateSpec(project, ref, version, name string) *Quest_TemplateSpec

NewTemplateSpec is a shorthand method for building a new *Quest_TemplateSpec.

func (*Quest_TemplateSpec) Descriptor deprecated

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

Deprecated: Use Quest_TemplateSpec.ProtoReflect.Descriptor instead.

func (*Quest_TemplateSpec) Equals

Equals returns true iff this Quest_TemplateSpec matches all of the fields of the `o` Quest_TemplateSpec.

func (*Quest_TemplateSpec) FromProperty

func (p *Quest_TemplateSpec) FromProperty(prop datastore.Property) error

FromProperty implements datastore.PropertyConverter. It parses a '[]byte' into an embedded 'Quest_TemplateSpec' when used with the "go.chromium.org/luci/gae" library.

func (*Quest_TemplateSpec) GetName

func (x *Quest_TemplateSpec) GetName() string

func (*Quest_TemplateSpec) GetProject

func (x *Quest_TemplateSpec) GetProject() string

func (*Quest_TemplateSpec) GetRef

func (x *Quest_TemplateSpec) GetRef() string

func (*Quest_TemplateSpec) GetVersion

func (x *Quest_TemplateSpec) GetVersion() string

func (*Quest_TemplateSpec) ProtoMessage

func (*Quest_TemplateSpec) ProtoMessage()

func (*Quest_TemplateSpec) ProtoReflect

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

func (*Quest_TemplateSpec) Reset

func (x *Quest_TemplateSpec) Reset()

func (*Quest_TemplateSpec) String

func (x *Quest_TemplateSpec) String() string

func (*Quest_TemplateSpec) ToProperty

func (p *Quest_TemplateSpec) ToProperty() (prop datastore.Property, err error)

ToProperty implements datastore.PropertyConverter. It causes an embedded 'Quest_TemplateSpec' to serialize to an unindexed '[]byte' when used with the "go.chromium.org/luci/gae" library.

type Result

type Result struct {
	Data           *JsonResult     `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	AbnormalFinish *AbnormalFinish `protobuf:"bytes,2,opt,name=abnormal_finish,json=abnormalFinish,proto3" json:"abnormal_finish,omitempty"`
	// contains filtered or unexported fields
}

Result holds either data OR abnormal finish information.

func (*Result) Descriptor deprecated

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

Deprecated: Use Result.ProtoReflect.Descriptor instead.

func (*Result) FromProperty

func (p *Result) FromProperty(prop datastore.Property) error

FromProperty implements datastore.PropertyConverter. It parses a '[]byte' into an embedded 'Result' when used with the "go.chromium.org/luci/gae" library.

func (*Result) GetAbnormalFinish

func (x *Result) GetAbnormalFinish() *AbnormalFinish

func (*Result) GetData

func (x *Result) GetData() *JsonResult

func (*Result) ProtoMessage

func (*Result) ProtoMessage()

func (*Result) ProtoReflect

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

func (*Result) Reset

func (x *Result) Reset()

func (*Result) String

func (x *Result) String() string

func (*Result) ToProperty

func (p *Result) ToProperty() (prop datastore.Property, err error)

ToProperty implements datastore.PropertyConverter. It causes an embedded 'Result' to serialize to an unindexed '[]byte' when used with the "go.chromium.org/luci/gae" library.

type TemplateInstantiation

type TemplateInstantiation struct {

	// project is the luci-config project which defines the template.
	Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	// ref is the git ref of the project that defined this template. If omitted,
	// this will use the template definition from the project-wide configuration
	// and not the configuration located on a particular ref (like
	// 'refs/heads/master').
	Ref string `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"`
	// specifier specifies the actual template name, as well as any substitution
	// parameters which that template might require.
	Specifier *templateproto.Specifier `protobuf:"bytes,4,opt,name=specifier,proto3" json:"specifier,omitempty"`
	// contains filtered or unexported fields
}

func (*TemplateInstantiation) Descriptor deprecated

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

Deprecated: Use TemplateInstantiation.ProtoReflect.Descriptor instead.

func (*TemplateInstantiation) GetProject

func (x *TemplateInstantiation) GetProject() string

func (*TemplateInstantiation) GetRef

func (x *TemplateInstantiation) GetRef() string

func (*TemplateInstantiation) GetSpecifier

func (x *TemplateInstantiation) GetSpecifier() *templateproto.Specifier

func (*TemplateInstantiation) Normalize

func (t *TemplateInstantiation) Normalize() error

Normalize returns an error iff the TemplateInstantiation is invalid.

func (*TemplateInstantiation) ProtoMessage

func (*TemplateInstantiation) ProtoMessage()

func (*TemplateInstantiation) ProtoReflect

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

func (*TemplateInstantiation) Reset

func (x *TemplateInstantiation) Reset()

func (*TemplateInstantiation) String

func (x *TemplateInstantiation) String() string

type TimestampPurger

type TimestampPurger interface {
	PurgeTimestamps()
}

TimestampPurger is for testing: invoking this on a struct in this package will remove all timestamps from it. This is useful for testing where the timestamps are frequently just noise.

type UnimplementedDepsServer

type UnimplementedDepsServer struct {
}

UnimplementedDepsServer can be embedded to have forward compatible implementations.

func (*UnimplementedDepsServer) ActivateExecution

func (*UnimplementedDepsServer) EnsureGraphData

func (*UnimplementedDepsServer) FinishAttempt

func (*UnimplementedDepsServer) WalkGraph

type WalkGraphReq

type WalkGraphReq struct {

	// Optional. See Include.AttemptResult for restrictions.
	Auth *Execution_Auth `protobuf:"bytes,1,opt,name=auth,proto3" json:"auth,omitempty"`
	// Query specifies a list of queries to start the graph traversal on. The
	// traversal will occur as a union of the query results. Redundant
	// specification will not cause additional heavy work; every graph node will
	// be processed exactly once, regardless of how many times it appears in the
	// query results. However, redundancy in the queries will cause the server to
	// retrieve and discard more information.
	Query *GraphQuery         `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"`
	Mode  *WalkGraphReq_Mode  `protobuf:"bytes,3,opt,name=mode,proto3" json:"mode,omitempty"`
	Limit *WalkGraphReq_Limit `protobuf:"bytes,4,opt,name=limit,proto3" json:"limit,omitempty"`
	// Include allows you to add additional information to the returned
	// GraphData which is typically medium-to-large sized.
	Include *WalkGraphReq_Include `protobuf:"bytes,5,opt,name=include,proto3" json:"include,omitempty"`
	Exclude *WalkGraphReq_Exclude `protobuf:"bytes,6,opt,name=exclude,proto3" json:"exclude,omitempty"`
	// contains filtered or unexported fields
}

WalkGraphReq allows you to walk from one or more Quests through their Attempt's forward dependencies.

The handler will evaluate all of the queries, executing them in parallel. For each attempt or quest produced by the query, it will queue a walk operation for that node, respecting the options set (max_depth, etc.).

func (*WalkGraphReq) Descriptor deprecated

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

Deprecated: Use WalkGraphReq.ProtoReflect.Descriptor instead.

func (*WalkGraphReq) GetAuth

func (x *WalkGraphReq) GetAuth() *Execution_Auth

func (*WalkGraphReq) GetExclude

func (x *WalkGraphReq) GetExclude() *WalkGraphReq_Exclude

func (*WalkGraphReq) GetInclude

func (x *WalkGraphReq) GetInclude() *WalkGraphReq_Include

func (*WalkGraphReq) GetLimit

func (x *WalkGraphReq) GetLimit() *WalkGraphReq_Limit

func (*WalkGraphReq) GetMode

func (x *WalkGraphReq) GetMode() *WalkGraphReq_Mode

func (*WalkGraphReq) GetQuery

func (x *WalkGraphReq) GetQuery() *GraphQuery

func (*WalkGraphReq) Normalize

func (w *WalkGraphReq) Normalize() error

Normalize returns an error iff the WalkGraphReq is invalid.

func (*WalkGraphReq) ProtoMessage

func (*WalkGraphReq) ProtoMessage()

func (*WalkGraphReq) ProtoReflect

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

func (*WalkGraphReq) Reset

func (x *WalkGraphReq) Reset()

func (*WalkGraphReq) String

func (x *WalkGraphReq) String() string

type WalkGraphReq_Exclude

type WalkGraphReq_Exclude struct {

	// Do not include data from the following quests in the response.
	Quests []string `protobuf:"bytes,1,rep,name=quests,proto3" json:"quests,omitempty"`
	// Do not include data from the following attempts in the response.
	Attempts *AttemptList `protobuf:"bytes,2,opt,name=attempts,proto3" json:"attempts,omitempty"`
	// contains filtered or unexported fields
}

func (*WalkGraphReq_Exclude) Descriptor deprecated

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

Deprecated: Use WalkGraphReq_Exclude.ProtoReflect.Descriptor instead.

func (*WalkGraphReq_Exclude) GetAttempts

func (x *WalkGraphReq_Exclude) GetAttempts() *AttemptList

func (*WalkGraphReq_Exclude) GetQuests

func (x *WalkGraphReq_Exclude) GetQuests() []string

func (*WalkGraphReq_Exclude) Normalize

func (e *WalkGraphReq_Exclude) Normalize() error

Normalize returns an error iff the WalkGraphReq_Exclude is invalid.

func (*WalkGraphReq_Exclude) ProtoMessage

func (*WalkGraphReq_Exclude) ProtoMessage()

func (*WalkGraphReq_Exclude) ProtoReflect

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

func (*WalkGraphReq_Exclude) Reset

func (x *WalkGraphReq_Exclude) Reset()

func (*WalkGraphReq_Exclude) String

func (x *WalkGraphReq_Exclude) String() string

type WalkGraphReq_Include

type WalkGraphReq_Include struct {
	Quest     *WalkGraphReq_Include_Options `protobuf:"bytes,1,opt,name=quest,proto3" json:"quest,omitempty"`
	Attempt   *WalkGraphReq_Include_Options `protobuf:"bytes,2,opt,name=attempt,proto3" json:"attempt,omitempty"`
	Execution *WalkGraphReq_Include_Options `protobuf:"bytes,3,opt,name=execution,proto3" json:"execution,omitempty"`
	// Executions is the number of Executions to include per Attempt. If this
	// is 0, then the execution data will be omitted completely.
	//
	// Executions included are from high ids to low ids. So setting this to `1`
	// would return the LAST execution made for this Attempt.
	NumExecutions uint32 `protobuf:"varint,4,opt,name=num_executions,json=numExecutions,proto3" json:"num_executions,omitempty"`
	// FwdDeps instructs WalkGraph to include forward dependency information
	// from the result. This only changes the presence of information in the
	// result; if the query is walking forward attempt dependencies, that will
	// still occur even if this is false.
	FwdDeps bool `protobuf:"varint,5,opt,name=fwd_deps,json=fwdDeps,proto3" json:"fwd_deps,omitempty"`
	// BackDeps instructs WalkGraph to include the backwards dependency
	// information. This only changes the presence of information in the result;
	// if the query is walking backward attempt dependencies, that will still
	// occur even if this is false.
	BackDeps bool `protobuf:"varint,6,opt,name=back_deps,json=backDeps,proto3" json:"back_deps,omitempty"`
	// contains filtered or unexported fields
}

func MakeWalkGraphIncludeAll

func MakeWalkGraphIncludeAll() *WalkGraphReq_Include

MakeWalkGraphIncludeAll makes a new WalkGraphReq_Include which has all the boxes ticked. This should only be used when your application plans to dump the resulting graph query data to some logging/debugging trace for humans.

If you don't plan on dumping it for humans, please set the Include options appropriately in order to avoid wasting bandwidth/cpu/datastore query time on the server (and draining your DM quotas unnecessarially).

func (*WalkGraphReq_Include) Descriptor deprecated

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

Deprecated: Use WalkGraphReq_Include.ProtoReflect.Descriptor instead.

func (*WalkGraphReq_Include) GetAttempt

func (*WalkGraphReq_Include) GetBackDeps

func (x *WalkGraphReq_Include) GetBackDeps() bool

func (*WalkGraphReq_Include) GetExecution

func (*WalkGraphReq_Include) GetFwdDeps

func (x *WalkGraphReq_Include) GetFwdDeps() bool

func (*WalkGraphReq_Include) GetNumExecutions

func (x *WalkGraphReq_Include) GetNumExecutions() uint32

func (*WalkGraphReq_Include) GetQuest

func (*WalkGraphReq_Include) ProtoMessage

func (*WalkGraphReq_Include) ProtoMessage()

func (*WalkGraphReq_Include) ProtoReflect

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

func (*WalkGraphReq_Include) Reset

func (x *WalkGraphReq_Include) Reset()

func (*WalkGraphReq_Include) String

func (x *WalkGraphReq_Include) String() string

type WalkGraphReq_Include_Options

type WalkGraphReq_Include_Options struct {

	// Fills the 'id' field.
	//
	// If this is false, it will be omitted.
	//
	// Note that there's enough information contextually to derive these ids
	// on the client side, though it can be handy to have the server produce
	// them for you.
	Ids bool `protobuf:"varint,1,opt,name=ids,proto3" json:"ids,omitempty"`
	// Instructs the request to include the Data field
	Data bool `protobuf:"varint,2,opt,name=data,proto3" json:"data,omitempty"`
	// Instructs finished objects to include the Result field.
	//
	// If the requestor is an execution, the query logic will only include the
	// result if the execution's Attempt depends on it, otherwise it will be
	// blank.
	//
	// If the request's cumulative result data would be more than
	// limit.max_data_size of data, the remaining results will have their
	// Partial.Result set to DATA_SIZE_LIMIT.
	//
	// Has no effect for Quests.
	Result bool `protobuf:"varint,3,opt,name=result,proto3" json:"result,omitempty"`
	// If set to true, objects with an abnormal termination will be included.
	Abnormal bool `protobuf:"varint,4,opt,name=abnormal,proto3" json:"abnormal,omitempty"`
	// If set to true, expired objects will be included.
	Expired bool `protobuf:"varint,5,opt,name=expired,proto3" json:"expired,omitempty"`
	// contains filtered or unexported fields
}

func (*WalkGraphReq_Include_Options) Descriptor deprecated

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

Deprecated: Use WalkGraphReq_Include_Options.ProtoReflect.Descriptor instead.

func (*WalkGraphReq_Include_Options) GetAbnormal

func (x *WalkGraphReq_Include_Options) GetAbnormal() bool

func (*WalkGraphReq_Include_Options) GetData

func (x *WalkGraphReq_Include_Options) GetData() bool

func (*WalkGraphReq_Include_Options) GetExpired

func (x *WalkGraphReq_Include_Options) GetExpired() bool

func (*WalkGraphReq_Include_Options) GetIds

func (x *WalkGraphReq_Include_Options) GetIds() bool

func (*WalkGraphReq_Include_Options) GetResult

func (x *WalkGraphReq_Include_Options) GetResult() bool

func (*WalkGraphReq_Include_Options) ProtoMessage

func (*WalkGraphReq_Include_Options) ProtoMessage()

func (*WalkGraphReq_Include_Options) ProtoReflect

func (*WalkGraphReq_Include_Options) Reset

func (x *WalkGraphReq_Include_Options) Reset()

func (*WalkGraphReq_Include_Options) String

type WalkGraphReq_Limit

type WalkGraphReq_Limit struct {

	// MaxDepth sets the number of attempts to traverse; 0 means 'immediate'
	// (no dependencies), -1 means 'no limit', and >0 is a limit.
	//
	// Any negative value besides -1 is an error.
	MaxDepth int64 `protobuf:"varint,1,opt,name=max_depth,json=maxDepth,proto3" json:"max_depth,omitempty"`
	// MaxTime sets the maximum amount of time that the query processor should
	// take. Application of this deadline is 'best effort', which means the query
	// may take a bit longer than this timeout and still attempt to return data.
	//
	// This is different than the grpc timeout header, which will set a hard
	// deadline for the request.
	MaxTime *durationpb.Duration `protobuf:"bytes,2,opt,name=max_time,json=maxTime,proto3" json:"max_time,omitempty"`
	// MaxDataSize sets the maximum amount of 'Data' (in bytes) that can be
	// returned, if include.quest_data, include.attempt_data, and/or
	// include.attempt_result are set. If this limit is hit, then the
	// appropriate 'partial' value will be set for that object, but the base
	// object would still be included in the result.
	//
	// If this limit is 0, a default limit of 16MB will be used. If this limit
	// exceeds 30MB, it will be reduced to 30MB.
	MaxDataSize uint32 `protobuf:"varint,3,opt,name=max_data_size,json=maxDataSize,proto3" json:"max_data_size,omitempty"`
	// contains filtered or unexported fields
}

func (*WalkGraphReq_Limit) Descriptor deprecated

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

Deprecated: Use WalkGraphReq_Limit.ProtoReflect.Descriptor instead.

func (*WalkGraphReq_Limit) GetMaxDataSize

func (x *WalkGraphReq_Limit) GetMaxDataSize() uint32

func (*WalkGraphReq_Limit) GetMaxDepth

func (x *WalkGraphReq_Limit) GetMaxDepth() int64

func (*WalkGraphReq_Limit) GetMaxTime

func (x *WalkGraphReq_Limit) GetMaxTime() *durationpb.Duration

func (*WalkGraphReq_Limit) ProtoMessage

func (*WalkGraphReq_Limit) ProtoMessage()

func (*WalkGraphReq_Limit) ProtoReflect

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

func (*WalkGraphReq_Limit) Reset

func (x *WalkGraphReq_Limit) Reset()

func (*WalkGraphReq_Limit) String

func (x *WalkGraphReq_Limit) String() string

type WalkGraphReq_Mode

type WalkGraphReq_Mode struct {

	// DFS sets whether this is a Depth-first (ish) or a Breadth-first (ish) load.
	// Since the load operation is multi-threaded, the search order is best
	// effort, but will actually be some hybrid between DFS and BFS. This setting
	// controls the bias direction of the hybrid loading algorithm.
	Dfs       bool                        `protobuf:"varint,1,opt,name=dfs,proto3" json:"dfs,omitempty"`
	Direction WalkGraphReq_Mode_Direction `protobuf:"varint,2,opt,name=direction,proto3,enum=dm.WalkGraphReq_Mode_Direction" json:"direction,omitempty"`
	// contains filtered or unexported fields
}

func (*WalkGraphReq_Mode) Descriptor deprecated

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

Deprecated: Use WalkGraphReq_Mode.ProtoReflect.Descriptor instead.

func (*WalkGraphReq_Mode) GetDfs

func (x *WalkGraphReq_Mode) GetDfs() bool

func (*WalkGraphReq_Mode) GetDirection

func (*WalkGraphReq_Mode) ProtoMessage

func (*WalkGraphReq_Mode) ProtoMessage()

func (*WalkGraphReq_Mode) ProtoReflect

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

func (*WalkGraphReq_Mode) Reset

func (x *WalkGraphReq_Mode) Reset()

func (*WalkGraphReq_Mode) String

func (x *WalkGraphReq_Mode) String() string

type WalkGraphReq_Mode_Direction

type WalkGraphReq_Mode_Direction int32

Direction indicates that direction of dependencies that the request should walk.

const (
	WalkGraphReq_Mode_FORWARDS  WalkGraphReq_Mode_Direction = 0
	WalkGraphReq_Mode_BACKWARDS WalkGraphReq_Mode_Direction = 1
	WalkGraphReq_Mode_BOTH      WalkGraphReq_Mode_Direction = 2
)

func (WalkGraphReq_Mode_Direction) Descriptor

func (WalkGraphReq_Mode_Direction) Enum

func (WalkGraphReq_Mode_Direction) EnumDescriptor deprecated

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

Deprecated: Use WalkGraphReq_Mode_Direction.Descriptor instead.

func (WalkGraphReq_Mode_Direction) Number

func (WalkGraphReq_Mode_Direction) String

func (WalkGraphReq_Mode_Direction) Type

Jump to

Keyboard shortcuts

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