modelpb

package
v0.0.0-...-d3da680 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package modelpb contains LUCI Deploy data model messages.

Index

Constants

This section is empty.

Variables

View Source
var (
	Actuation_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "EXECUTING",
		2: "SUCCEEDED",
		3: "FAILED",
		4: "EXPIRED",
	}
	Actuation_State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"EXECUTING":         1,
		"SUCCEEDED":         2,
		"FAILED":            3,
		"EXPIRED":           4,
	}
)

Enum value maps for Actuation_State.

View Source
var (
	ActuationLock_Kind_name = map[int32]string{
		0: "KIND_UNSPECIFIED",
		1: "MANUAL",
		2: "ANTISTOMP",
	}
	ActuationLock_Kind_value = map[string]int32{
		"KIND_UNSPECIFIED": 0,
		"MANUAL":           1,
		"ANTISTOMP":        2,
	}
)

Enum value maps for ActuationLock_Kind.

View Source
var (
	ActuationLock_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "ACTIVE",
		2: "DISABLED",
		3: "EXPIRED",
	}
	ActuationLock_State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"ACTIVE":            1,
		"DISABLED":          2,
		"EXPIRED":           3,
	}
)

Enum value maps for ActuationLock_State.

View Source
var (
	ActuationDecision_Decision_name = map[int32]string{
		0: "DECISION_UNSPECIFIED",
		1: "ACTUATE_STALE",
		2: "ACTUATE_FORCE",
		3: "SKIP_UPTODATE",
		4: "SKIP_DISABLED",
		5: "SKIP_LOCKED",
		6: "SKIP_BROKEN",
	}
	ActuationDecision_Decision_value = map[string]int32{
		"DECISION_UNSPECIFIED": 0,
		"ACTUATE_STALE":        1,
		"ACTUATE_FORCE":        2,
		"SKIP_UPTODATE":        3,
		"SKIP_DISABLED":        4,
		"SKIP_LOCKED":          5,
		"SKIP_BROKEN":          6,
	}
)

Enum value maps for ActuationDecision_Decision.

View Source
var (
	ArtifactID_Kind_name = map[int32]string{
		0: "KIND_UNSPECIFIED",
		1: "GAE_TARBALL",
		2: "DOCKER_IMAGE",
	}
	ArtifactID_Kind_value = map[string]int32{
		"KIND_UNSPECIFIED": 0,
		"GAE_TARBALL":      1,
		"DOCKER_IMAGE":     2,
	}
)

Enum value maps for ArtifactID_Kind.

View Source
var (
	AppengineState_Service_TrafficSplitting_name = map[int32]string{
		0: "TRAFFIC_SPLITTING_UNSPECIFIED",
		1: "COOKIE",
		2: "IP",
		3: "RANDOM",
	}
	AppengineState_Service_TrafficSplitting_value = map[string]int32{
		"TRAFFIC_SPLITTING_UNSPECIFIED": 0,
		"COOKIE":                        1,
		"IP":                            2,
		"RANDOM":                        3,
	}
)

Enum value maps for AppengineState_Service_TrafficSplitting.

View Source
var (
	AppengineState_CapturedState_DatabaseType_name = map[int32]string{
		0: "DATABASE_TYPE_UNSPECIFIED",
		1: "CLOUD_DATASTORE",
		2: "CLOUD_FIRESTORE",
		3: "CLOUD_DATASTORE_COMPATIBILITY",
	}
	AppengineState_CapturedState_DatabaseType_value = map[string]int32{
		"DATABASE_TYPE_UNSPECIFIED":     0,
		"CLOUD_DATASTORE":               1,
		"CLOUD_FIRESTORE":               2,
		"CLOUD_DATASTORE_COMPATIBILITY": 3,
	}
)

Enum value maps for AppengineState_CapturedState_DatabaseType.

View Source
var (
	DeploymentConfig_Notification_Event_name = map[int32]string{
		0: "EVENT_UNSPECIFIED",
		1: "ACTUATION_STARTING",
		2: "ACTUATION_SUCCEEDED",
		3: "ACTUATION_FAILED",
		4: "ACTUATION_FIXED",
	}
	DeploymentConfig_Notification_Event_value = map[string]int32{
		"EVENT_UNSPECIFIED":   0,
		"ACTUATION_STARTING":  1,
		"ACTUATION_SUCCEEDED": 2,
		"ACTUATION_FAILED":    3,
		"ACTUATION_FIXED":     4,
	}
)

Enum value maps for DeploymentConfig_Notification_Event.

View Source
var File_go_chromium_org_luci_deploy_api_modelpb_actuation_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_deploy_api_modelpb_artifact_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_deploy_api_modelpb_asset_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_deploy_api_modelpb_deployment_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Actuation

type Actuation struct {

	// Unique ID of the actuation.
	//
	// Generated by the actuator when it starts an actuation attempt. Can be an
	// arbitrary string under 40 chars (as long as it is sufficiently random).
	//
	// Used to make BeginActuation and EndActuation calls idempotent and to pair
	// them with each other.
	Id    string          `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	State Actuation_State `protobuf:"varint,2,opt,name=state,proto3,enum=deploy.model.Actuation_State" json:"state,omitempty"`
	// The deployment being actuated.
	Deployment *Deployment `protobuf:"bytes,3,opt,name=deployment,proto3" json:"deployment,omitempty"`
	// The actuator that performs the actuation.
	Actuator *ActuatorInfo `protobuf:"bytes,4,opt,name=actuator,proto3" json:"actuator,omitempty"`
	// The list of triggers if the actuation attempt was triggered by the backend.
	Triggers []*ActuationTrigger `protobuf:"bytes,5,rep,name=triggers,proto3" json:"triggers,omitempty"`
	// When the actuation was created.
	Created *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created,proto3" json:"created,omitempty"`
	// When the actuation finished (successfully or not).
	Finished *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=finished,proto3" json:"finished,omitempty"`
	// When the actuation expires.
	Expiry *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=expiry,proto3" json:"expiry,omitempty"`
	// Error details if the actuation failed or expired.
	Status *status.Status `protobuf:"bytes,9,opt,name=status,proto3" json:"status,omitempty"`
	// Link to a human-readable actuation log (if available).
	LogUrl string `protobuf:"bytes,10,opt,name=log_url,json=logUrl,proto3" json:"log_url,omitempty"`
	// contains filtered or unexported fields
}

An inflight or finished actuation of some deployment.

Initiated by BeginActuation RPC and finalized by EndActuation RPC or by timeout.

func (*Actuation) Descriptor deprecated

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

Deprecated: Use Actuation.ProtoReflect.Descriptor instead.

func (*Actuation) GetActuator

func (x *Actuation) GetActuator() *ActuatorInfo

func (*Actuation) GetCreated

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

func (*Actuation) GetDeployment

func (x *Actuation) GetDeployment() *Deployment

func (*Actuation) GetExpiry

func (x *Actuation) GetExpiry() *timestamppb.Timestamp

func (*Actuation) GetFinished

func (x *Actuation) GetFinished() *timestamppb.Timestamp

func (*Actuation) GetId

func (x *Actuation) GetId() string

func (*Actuation) GetLogUrl

func (x *Actuation) GetLogUrl() string

func (*Actuation) GetState

func (x *Actuation) GetState() Actuation_State

func (*Actuation) GetStatus

func (x *Actuation) GetStatus() *status.Status

func (*Actuation) GetTriggers

func (x *Actuation) GetTriggers() []*ActuationTrigger

func (*Actuation) ProtoMessage

func (*Actuation) ProtoMessage()

func (*Actuation) ProtoReflect

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

func (*Actuation) Reset

func (x *Actuation) Reset()

func (*Actuation) String

func (x *Actuation) String() string

type ActuationDecision

type ActuationDecision struct {
	Decision ActuationDecision_Decision `protobuf:"varint,1,opt,name=decision,proto3,enum=deploy.model.ActuationDecision_Decision" json:"decision,omitempty"`
	// Error details for SKIP_BROKEN decision.
	Status *status.Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	// The list of active locks for this asset (if any).
	Locks []*ActuationLock `protobuf:"bytes,3,rep,name=locks,proto3" json:"locks,omitempty"`
	// contains filtered or unexported fields
}

Defines what the actuator should do with an asset.

func (*ActuationDecision) Descriptor deprecated

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

Deprecated: Use ActuationDecision.ProtoReflect.Descriptor instead.

func (*ActuationDecision) GetDecision

func (*ActuationDecision) GetLocks

func (x *ActuationDecision) GetLocks() []*ActuationLock

func (*ActuationDecision) GetStatus

func (x *ActuationDecision) GetStatus() *status.Status

func (*ActuationDecision) ProtoMessage

func (*ActuationDecision) ProtoMessage()

func (*ActuationDecision) ProtoReflect

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

func (*ActuationDecision) Reset

func (x *ActuationDecision) Reset()

func (*ActuationDecision) String

func (x *ActuationDecision) String() string

type ActuationDecision_Decision

type ActuationDecision_Decision int32

What to do with an asset.

const (
	ActuationDecision_DECISION_UNSPECIFIED ActuationDecision_Decision = 0
	ActuationDecision_ACTUATE_STALE        ActuationDecision_Decision = 1 // the asset appears to be stale and must be actuated
	ActuationDecision_ACTUATE_FORCE        ActuationDecision_Decision = 2 // the asset must be actuated even if it is up-to-date
	ActuationDecision_SKIP_UPTODATE        ActuationDecision_Decision = 3 // the asset is up-to-date and should not be actuated
	ActuationDecision_SKIP_DISABLED        ActuationDecision_Decision = 4 // the actuation is disabled in the config
	ActuationDecision_SKIP_LOCKED          ActuationDecision_Decision = 5 // the actuation of this asset is locked
	ActuationDecision_SKIP_BROKEN          ActuationDecision_Decision = 6 // something is broken, the asset should not be touched
)

func (ActuationDecision_Decision) Descriptor

func (ActuationDecision_Decision) Enum

func (ActuationDecision_Decision) EnumDescriptor deprecated

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

Deprecated: Use ActuationDecision_Decision.Descriptor instead.

func (ActuationDecision_Decision) Number

func (ActuationDecision_Decision) String

func (ActuationDecision_Decision) Type

type ActuationDecisions

type ActuationDecisions struct {

	// Per-asset decision whether to proceed with the actuation or to skip it.
	Decisions map[string]*ActuationDecision `` /* 159-byte string literal not displayed */
	// contains filtered or unexported fields
}

Records the decisions made when the actuation was started.

func (*ActuationDecisions) Descriptor deprecated

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

Deprecated: Use ActuationDecisions.ProtoReflect.Descriptor instead.

func (*ActuationDecisions) GetDecisions

func (x *ActuationDecisions) GetDecisions() map[string]*ActuationDecision

func (*ActuationDecisions) ProtoMessage

func (*ActuationDecisions) ProtoMessage()

func (*ActuationDecisions) ProtoReflect

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

func (*ActuationDecisions) Reset

func (x *ActuationDecisions) Reset()

func (*ActuationDecisions) String

func (x *ActuationDecisions) String() string

type ActuationLock

type ActuationLock struct {

	// Unique global auto-generated ID.
	Id    string              `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Kind  ActuationLock_Kind  `protobuf:"varint,2,opt,name=kind,proto3,enum=deploy.model.ActuationLock_Kind" json:"kind,omitempty"`
	State ActuationLock_State `protobuf:"varint,3,opt,name=state,proto3,enum=deploy.model.ActuationLock_State" json:"state,omitempty"`
	// A short human readable message describing why the lock exists.
	ReasonText string `protobuf:"bytes,4,opt,name=reason_text,json=reasonText,proto3" json:"reason_text,omitempty"`
	// An HTTP URL to the full justification (e.g. a bug or some status page).
	ReasonUrl string `protobuf:"bytes,5,opt,name=reason_url,json=reasonUrl,proto3" json:"reason_url,omitempty"`
	// When the lock was created.
	Created *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created,proto3" json:"created,omitempty"`
	// When the lock was removed (if it was).
	Removed *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=removed,proto3" json:"removed,omitempty"`
	// When the lock expires (if it is).
	Expiry *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=expiry,proto3" json:"expiry,omitempty"`
	// User that created the lock (if any).
	CreatedBy string `protobuf:"bytes,9,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"`
	// User that removed the lock (if any).
	RemovedBy string `protobuf:"bytes,10,opt,name=removed_by,json=removedBy,proto3" json:"removed_by,omitempty"`
	// contains filtered or unexported fields
}

Describes why an actuation must **not** be attempted.

Multiple assets may refer to a single lock by its ID.

func (*ActuationLock) Descriptor deprecated

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

Deprecated: Use ActuationLock.ProtoReflect.Descriptor instead.

func (*ActuationLock) GetCreated

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

func (*ActuationLock) GetCreatedBy

func (x *ActuationLock) GetCreatedBy() string

func (*ActuationLock) GetExpiry

func (x *ActuationLock) GetExpiry() *timestamppb.Timestamp

func (*ActuationLock) GetId

func (x *ActuationLock) GetId() string

func (*ActuationLock) GetKind

func (x *ActuationLock) GetKind() ActuationLock_Kind

func (*ActuationLock) GetReasonText

func (x *ActuationLock) GetReasonText() string

func (*ActuationLock) GetReasonUrl

func (x *ActuationLock) GetReasonUrl() string

func (*ActuationLock) GetRemoved

func (x *ActuationLock) GetRemoved() *timestamppb.Timestamp

func (*ActuationLock) GetRemovedBy

func (x *ActuationLock) GetRemovedBy() string

func (*ActuationLock) GetState

func (x *ActuationLock) GetState() ActuationLock_State

func (*ActuationLock) ProtoMessage

func (*ActuationLock) ProtoMessage()

func (*ActuationLock) ProtoReflect

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

func (*ActuationLock) Reset

func (x *ActuationLock) Reset()

func (*ActuationLock) String

func (x *ActuationLock) String() string

type ActuationLock_Kind

type ActuationLock_Kind int32

What kind of lock this is.

const (
	ActuationLock_KIND_UNSPECIFIED ActuationLock_Kind = 0
	ActuationLock_MANUAL           ActuationLock_Kind = 1 // created by an end-user via web UI or API
	ActuationLock_ANTISTOMP        ActuationLock_Kind = 2 // an automatically created anti-stomp lock
)

func (ActuationLock_Kind) Descriptor

func (ActuationLock_Kind) Enum

func (ActuationLock_Kind) EnumDescriptor deprecated

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

Deprecated: Use ActuationLock_Kind.Descriptor instead.

func (ActuationLock_Kind) Number

func (ActuationLock_Kind) String

func (x ActuationLock_Kind) String() string

func (ActuationLock_Kind) Type

type ActuationLock_State

type ActuationLock_State int32

The state of the lock.

const (
	ActuationLock_STATE_UNSPECIFIED ActuationLock_State = 0
	ActuationLock_ACTIVE            ActuationLock_State = 1 // the lock is still active
	ActuationLock_DISABLED          ActuationLock_State = 2 // the lock was explicitly disabled via web UI or API
	ActuationLock_EXPIRED           ActuationLock_State = 3 // the lock expired
)

func (ActuationLock_State) Descriptor

func (ActuationLock_State) Enum

func (ActuationLock_State) EnumDescriptor deprecated

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

Deprecated: Use ActuationLock_State.Descriptor instead.

func (ActuationLock_State) Number

func (ActuationLock_State) String

func (x ActuationLock_State) String() string

func (ActuationLock_State) Type

type ActuationTrigger

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

ActuationTrigger is round-tripped through LUCI when triggering actuations.

It is converted to google.protobuf.Struct and used as `properties` in scheduler.BuildbucketTrigger when calling Scheduler's EmitTriggers RPC.

func (*ActuationTrigger) Descriptor deprecated

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

Deprecated: Use ActuationTrigger.ProtoReflect.Descriptor instead.

func (*ActuationTrigger) ProtoMessage

func (*ActuationTrigger) ProtoMessage()

func (*ActuationTrigger) ProtoReflect

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

func (*ActuationTrigger) Reset

func (x *ActuationTrigger) Reset()

func (*ActuationTrigger) String

func (x *ActuationTrigger) String() string

type Actuation_State

type Actuation_State int32

The state of this actuation.

const (
	Actuation_STATE_UNSPECIFIED Actuation_State = 0
	Actuation_EXECUTING         Actuation_State = 1 // the actuation is executing right now
	Actuation_SUCCEEDED         Actuation_State = 2 // the actuation finished successfully
	Actuation_FAILED            Actuation_State = 3 // the actuation failed (perhaps partially)
	Actuation_EXPIRED           Actuation_State = 4 // the actuator disappeared before reporting the outcome
)

func (Actuation_State) Descriptor

func (Actuation_State) Enum

func (x Actuation_State) Enum() *Actuation_State

func (Actuation_State) EnumDescriptor deprecated

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

Deprecated: Use Actuation_State.Descriptor instead.

func (Actuation_State) Number

func (Actuation_State) String

func (x Actuation_State) String() string

func (Actuation_State) Type

type ActuatorInfo

type ActuatorInfo struct {

	// The RPC identity of the actuator.
	Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"`
	// Buildbucket host hosting the builder.
	Buildbucket string `protobuf:"bytes,2,opt,name=buildbucket,proto3" json:"buildbucket,omitempty"`
	// Buildbucket builder running the actuation, as "project/bucket/name".
	BuildbucketBuilder string `protobuf:"bytes,3,opt,name=buildbucket_builder,json=buildbucketBuilder,proto3" json:"buildbucket_builder,omitempty"`
	// Buildbucket build ID of the build running the actuation.
	BuildbucketBuild int64 `protobuf:"varint,4,opt,name=buildbucket_build,json=buildbucketBuild,proto3" json:"buildbucket_build,omitempty"`
	// Scheduler host hosting the job.
	Scheduler string `protobuf:"bytes,5,opt,name=scheduler,proto3" json:"scheduler,omitempty"`
	// Scheduler job ID that triggered the build, as "project/name".
	SchedulerJob string `protobuf:"bytes,6,opt,name=scheduler_job,json=schedulerJob,proto3" json:"scheduler_job,omitempty"`
	// Scheduler invocation ID that triggered the build.
	SchedulerInvocation int64 `protobuf:"varint,7,opt,name=scheduler_invocation,json=schedulerInvocation,proto3" json:"scheduler_invocation,omitempty"`
	// contains filtered or unexported fields
}

Information about the agent that performs the actuation.

func (*ActuatorInfo) Descriptor deprecated

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

Deprecated: Use ActuatorInfo.ProtoReflect.Descriptor instead.

func (*ActuatorInfo) GetBuildbucket

func (x *ActuatorInfo) GetBuildbucket() string

func (*ActuatorInfo) GetBuildbucketBuild

func (x *ActuatorInfo) GetBuildbucketBuild() int64

func (*ActuatorInfo) GetBuildbucketBuilder

func (x *ActuatorInfo) GetBuildbucketBuilder() string

func (*ActuatorInfo) GetIdentity

func (x *ActuatorInfo) GetIdentity() string

func (*ActuatorInfo) GetScheduler

func (x *ActuatorInfo) GetScheduler() string

func (*ActuatorInfo) GetSchedulerInvocation

func (x *ActuatorInfo) GetSchedulerInvocation() int64

func (*ActuatorInfo) GetSchedulerJob

func (x *ActuatorInfo) GetSchedulerJob() string

func (*ActuatorInfo) ProtoMessage

func (*ActuatorInfo) ProtoMessage()

func (*ActuatorInfo) ProtoReflect

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

func (*ActuatorInfo) Reset

func (x *ActuatorInfo) Reset()

func (*ActuatorInfo) String

func (x *ActuatorInfo) String() string

type AppengineState

type AppengineState struct {
	Services      []*AppengineState_Service     `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"`
	IntendedState *AppengineState_IntendedState `protobuf:"bytes,2,opt,name=intended_state,json=intendedState,proto3" json:"intended_state,omitempty"`
	CapturedState *AppengineState_CapturedState `protobuf:"bytes,3,opt,name=captured_state,json=capturedState,proto3" json:"captured_state,omitempty"`
	// contains filtered or unexported fields
}

Intended or captured state of an Appengine service.

func (*AppengineState) Descriptor deprecated

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

Deprecated: Use AppengineState.ProtoReflect.Descriptor instead.

func (*AppengineState) GetCapturedState

func (x *AppengineState) GetCapturedState() *AppengineState_CapturedState

func (*AppengineState) GetIntendedState

func (x *AppengineState) GetIntendedState() *AppengineState_IntendedState

func (*AppengineState) GetServices

func (x *AppengineState) GetServices() []*AppengineState_Service

func (*AppengineState) ProtoMessage

func (*AppengineState) ProtoMessage()

func (*AppengineState) ProtoReflect

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

func (*AppengineState) Reset

func (x *AppengineState) Reset()

func (*AppengineState) String

func (x *AppengineState) String() string

type AppengineState_CapturedState

type AppengineState_CapturedState struct {

	// E.g. "us-central".
	LocationId string `protobuf:"bytes,1,opt,name=location_id,json=locationId,proto3" json:"location_id,omitempty"`
	// Default service hostname.
	DefaultHostname string                                    `protobuf:"bytes,2,opt,name=default_hostname,json=defaultHostname,proto3" json:"default_hostname,omitempty"`
	DatabaseType    AppengineState_CapturedState_DatabaseType `` /* 158-byte string literal not displayed */
	// contains filtered or unexported fields
}

State which is captured using Cloud APIs and which can't be defined in the config (at least not directly).

This field is populated in `reported_state` and `actuated_state`.

See https://cloud.google.com/appengine/docs/admin-api/reference/rpc/google.appengine.v1#google.appengine.v1.Application

func (*AppengineState_CapturedState) Descriptor deprecated

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

Deprecated: Use AppengineState_CapturedState.ProtoReflect.Descriptor instead.

func (*AppengineState_CapturedState) GetDatabaseType

func (*AppengineState_CapturedState) GetDefaultHostname

func (x *AppengineState_CapturedState) GetDefaultHostname() string

func (*AppengineState_CapturedState) GetLocationId

func (x *AppengineState_CapturedState) GetLocationId() string

func (*AppengineState_CapturedState) ProtoMessage

func (*AppengineState_CapturedState) ProtoMessage()

func (*AppengineState_CapturedState) ProtoReflect

func (*AppengineState_CapturedState) Reset

func (x *AppengineState_CapturedState) Reset()

func (*AppengineState_CapturedState) String

type AppengineState_CapturedState_DatabaseType

type AppengineState_CapturedState_DatabaseType int32

What kind of a database is associated with the app.

const (
	AppengineState_CapturedState_DATABASE_TYPE_UNSPECIFIED     AppengineState_CapturedState_DatabaseType = 0
	AppengineState_CapturedState_CLOUD_DATASTORE               AppengineState_CapturedState_DatabaseType = 1
	AppengineState_CapturedState_CLOUD_FIRESTORE               AppengineState_CapturedState_DatabaseType = 2
	AppengineState_CapturedState_CLOUD_DATASTORE_COMPATIBILITY AppengineState_CapturedState_DatabaseType = 3
)

func (AppengineState_CapturedState_DatabaseType) Descriptor

func (AppengineState_CapturedState_DatabaseType) Enum

func (AppengineState_CapturedState_DatabaseType) EnumDescriptor deprecated

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

Deprecated: Use AppengineState_CapturedState_DatabaseType.Descriptor instead.

func (AppengineState_CapturedState_DatabaseType) Number

func (AppengineState_CapturedState_DatabaseType) String

func (AppengineState_CapturedState_DatabaseType) Type

type AppengineState_IntendedState

type AppengineState_IntendedState struct {
	DeployableYamls []*AppengineState_IntendedState_DeployableYaml `protobuf:"bytes,1,rep,name=deployable_yamls,json=deployableYamls,proto3" json:"deployable_yamls,omitempty"`
	// contains filtered or unexported fields
}

State which is defined in the config and which can't be easily captured using Cloud APIs.

This field is populated in `intended_state`.

func (*AppengineState_IntendedState) Descriptor deprecated

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

Deprecated: Use AppengineState_IntendedState.ProtoReflect.Descriptor instead.

func (*AppengineState_IntendedState) GetDeployableYamls

func (*AppengineState_IntendedState) ProtoMessage

func (*AppengineState_IntendedState) ProtoMessage()

func (*AppengineState_IntendedState) ProtoReflect

func (*AppengineState_IntendedState) Reset

func (x *AppengineState_IntendedState) Reset()

func (*AppengineState_IntendedState) String

type AppengineState_IntendedState_DeployableYaml

type AppengineState_IntendedState_DeployableYaml struct {

	// The artifact (GAE tarball) with the YAML.
	Artifact *ArtifactID `protobuf:"bytes,1,opt,name=artifact,proto3" json:"artifact,omitempty"`
	// Path to the YAML within the tarball.
	YamlPath string `protobuf:"bytes,2,opt,name=yaml_path,json=yamlPath,proto3" json:"yaml_path,omitempty"`
	// contains filtered or unexported fields
}

The list of deployable YAMLs (such as "cron.yaml").

func (*AppengineState_IntendedState_DeployableYaml) Descriptor deprecated

Deprecated: Use AppengineState_IntendedState_DeployableYaml.ProtoReflect.Descriptor instead.

func (*AppengineState_IntendedState_DeployableYaml) GetArtifact

func (*AppengineState_IntendedState_DeployableYaml) GetYamlPath

func (*AppengineState_IntendedState_DeployableYaml) ProtoMessage

func (*AppengineState_IntendedState_DeployableYaml) ProtoReflect

func (*AppengineState_IntendedState_DeployableYaml) Reset

func (*AppengineState_IntendedState_DeployableYaml) String

type AppengineState_Service

type AppengineState_Service struct {

	// Name of the service e.g. "default".
	Name             string                                  `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Versions         []*AppengineState_Service_Version       `protobuf:"bytes,2,rep,name=versions,proto3" json:"versions,omitempty"`
	TrafficSplitting AppengineState_Service_TrafficSplitting `` /* 168-byte string literal not displayed */
	// Traffic allocation as a map from version name to [0, 1000].
	TrafficAllocation map[string]int32 `` /* 201-byte string literal not displayed */
	// contains filtered or unexported fields
}

A list of services (sorted by name) with intended or captured state.

func (*AppengineState_Service) Descriptor deprecated

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

Deprecated: Use AppengineState_Service.ProtoReflect.Descriptor instead.

func (*AppengineState_Service) GetName

func (x *AppengineState_Service) GetName() string

func (*AppengineState_Service) GetTrafficAllocation

func (x *AppengineState_Service) GetTrafficAllocation() map[string]int32

func (*AppengineState_Service) GetTrafficSplitting

func (*AppengineState_Service) GetVersions

func (*AppengineState_Service) ProtoMessage

func (*AppengineState_Service) ProtoMessage()

func (*AppengineState_Service) ProtoReflect

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

func (*AppengineState_Service) Reset

func (x *AppengineState_Service) Reset()

func (*AppengineState_Service) String

func (x *AppengineState_Service) String() string

type AppengineState_Service_TrafficSplitting

type AppengineState_Service_TrafficSplitting int32

Traffic splitting method.

const (
	AppengineState_Service_TRAFFIC_SPLITTING_UNSPECIFIED AppengineState_Service_TrafficSplitting = 0
	AppengineState_Service_COOKIE                        AppengineState_Service_TrafficSplitting = 1
	AppengineState_Service_IP                            AppengineState_Service_TrafficSplitting = 2
	AppengineState_Service_RANDOM                        AppengineState_Service_TrafficSplitting = 3
)

func (AppengineState_Service_TrafficSplitting) Descriptor

func (AppengineState_Service_TrafficSplitting) Enum

func (AppengineState_Service_TrafficSplitting) EnumDescriptor deprecated

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

Deprecated: Use AppengineState_Service_TrafficSplitting.Descriptor instead.

func (AppengineState_Service_TrafficSplitting) Number

func (AppengineState_Service_TrafficSplitting) String

func (AppengineState_Service_TrafficSplitting) Type

type AppengineState_Service_Version

type AppengineState_Service_Version struct {

	// Name of the version e.g. "11120-9f81d82".
	Name          string                                        `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	IntendedState *AppengineState_Service_Version_IntendedState `protobuf:"bytes,2,opt,name=intended_state,json=intendedState,proto3" json:"intended_state,omitempty"`
	CapturedState *AppengineState_Service_Version_CapturedState `protobuf:"bytes,3,opt,name=captured_state,json=capturedState,proto3" json:"captured_state,omitempty"`
	// contains filtered or unexported fields
}

A list of service versions sorted by name.

func (*AppengineState_Service_Version) Descriptor deprecated

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

Deprecated: Use AppengineState_Service_Version.ProtoReflect.Descriptor instead.

func (*AppengineState_Service_Version) GetCapturedState

func (*AppengineState_Service_Version) GetIntendedState

func (*AppengineState_Service_Version) GetName

func (*AppengineState_Service_Version) ProtoMessage

func (*AppengineState_Service_Version) ProtoMessage()

func (*AppengineState_Service_Version) ProtoReflect

func (*AppengineState_Service_Version) Reset

func (x *AppengineState_Service_Version) Reset()

func (*AppengineState_Service_Version) String

type AppengineState_Service_Version_CapturedState

type AppengineState_Service_Version_CapturedState struct {

	// E.g. "F4".
	InstanceClass string `protobuf:"bytes,1,opt,name=instance_class,json=instanceClass,proto3" json:"instance_class,omitempty"`
	// E.g. "standard".
	Env string `protobuf:"bytes,2,opt,name=env,proto3" json:"env,omitempty"`
	// E.g. "go116"
	Runtime string `protobuf:"bytes,3,opt,name=runtime,proto3" json:"runtime,omitempty"`
	// Some runtimes have channels.
	RuntimeChannel string `protobuf:"bytes,4,opt,name=runtime_channel,json=runtimeChannel,proto3" json:"runtime_channel,omitempty"`
	// Some runtimes have API versions.
	RuntimeApiVersion string `protobuf:"bytes,5,opt,name=runtime_api_version,json=runtimeApiVersion,proto3" json:"runtime_api_version,omitempty"`
	// Email of who uploaded this version.
	CreatedBy string `protobuf:"bytes,6,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"`
	// When it was uploaded.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Serving URL of this version specifically.
	VersionUrl string `protobuf:"bytes,8,opt,name=version_url,json=versionUrl,proto3" json:"version_url,omitempty"`
	// contains filtered or unexported fields
}

State which is captured using Cloud APIs and which can't be defined in the config (at least not directly).

This field is populated in `reported_state` and `actuated_state`.

See https://cloud.google.com/appengine/docs/admin-api/reference/rpc/google.appengine.v1#google.appengine.v1.Version

func (*AppengineState_Service_Version_CapturedState) Descriptor deprecated

Deprecated: Use AppengineState_Service_Version_CapturedState.ProtoReflect.Descriptor instead.

func (*AppengineState_Service_Version_CapturedState) GetCreateTime

func (*AppengineState_Service_Version_CapturedState) GetCreatedBy

func (*AppengineState_Service_Version_CapturedState) GetEnv

func (*AppengineState_Service_Version_CapturedState) GetInstanceClass

func (*AppengineState_Service_Version_CapturedState) GetRuntime

func (*AppengineState_Service_Version_CapturedState) GetRuntimeApiVersion

func (x *AppengineState_Service_Version_CapturedState) GetRuntimeApiVersion() string

func (*AppengineState_Service_Version_CapturedState) GetRuntimeChannel

func (*AppengineState_Service_Version_CapturedState) GetVersionUrl

func (*AppengineState_Service_Version_CapturedState) ProtoMessage

func (*AppengineState_Service_Version_CapturedState) ProtoReflect

func (*AppengineState_Service_Version_CapturedState) Reset

func (*AppengineState_Service_Version_CapturedState) String

type AppengineState_Service_Version_IntendedState

type AppengineState_Service_Version_IntendedState struct {

	// The artifact (GAE tarball) that should be running there.
	Artifact *ArtifactID `protobuf:"bytes,1,opt,name=artifact,proto3" json:"artifact,omitempty"`
	// Path to the service YAML within the tarball.
	YamlPath string `protobuf:"bytes,2,opt,name=yaml_path,json=yamlPath,proto3" json:"yaml_path,omitempty"`
	// Vars passed to `gaedeploy` for substitution in the YAML.
	LuciVars map[string]string `` /* 173-byte string literal not displayed */
	// contains filtered or unexported fields
}

State which is defined in the config and which can't be easily captured using Cloud APIs.

This field is populated in `intended_state`.

func (*AppengineState_Service_Version_IntendedState) Descriptor deprecated

Deprecated: Use AppengineState_Service_Version_IntendedState.ProtoReflect.Descriptor instead.

func (*AppengineState_Service_Version_IntendedState) GetArtifact

func (*AppengineState_Service_Version_IntendedState) GetLuciVars

func (*AppengineState_Service_Version_IntendedState) GetYamlPath

func (*AppengineState_Service_Version_IntendedState) ProtoMessage

func (*AppengineState_Service_Version_IntendedState) ProtoReflect

func (*AppengineState_Service_Version_IntendedState) Reset

func (*AppengineState_Service_Version_IntendedState) String

type Artifact

type Artifact struct {

	// Its full ID (including version).
	Id *ArtifactID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Artifact URL in the storage, the format depends on the artifact kind.
	Location string `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"`
	// Its digest as "<algo>:<hex>".
	Digest string `protobuf:"bytes,3,opt,name=digest,proto3" json:"digest,omitempty"`
	// When it was published to the IaC repository the first time.
	Published *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=published,proto3" json:"published,omitempty"`
	// Reference to the source code the artifact was built from, for change logs.
	Sources []*ArtifactSource `protobuf:"bytes,5,rep,name=sources,proto3" json:"sources,omitempty"`
	// Links to logs and UI pages related to the artifact.
	Links *ArtifactLinks `protobuf:"bytes,6,opt,name=links,proto3" json:"links,omitempty"`
	// contains filtered or unexported fields
}

Metadata about an artifact version.

Immutable.

func (*Artifact) Descriptor deprecated

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

Deprecated: Use Artifact.ProtoReflect.Descriptor instead.

func (*Artifact) GetDigest

func (x *Artifact) GetDigest() string

func (*Artifact) GetId

func (x *Artifact) GetId() *ArtifactID
func (x *Artifact) GetLinks() *ArtifactLinks

func (*Artifact) GetLocation

func (x *Artifact) GetLocation() string

func (*Artifact) GetPublished

func (x *Artifact) GetPublished() *timestamppb.Timestamp

func (*Artifact) GetSources

func (x *Artifact) GetSources() []*ArtifactSource

func (*Artifact) ProtoMessage

func (*Artifact) ProtoMessage()

func (*Artifact) ProtoReflect

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

func (*Artifact) Reset

func (x *Artifact) Reset()

func (*Artifact) String

func (x *Artifact) String() string

type ArtifactID

type ArtifactID struct {
	Kind ArtifactID_Kind `protobuf:"varint,1,opt,name=kind,proto3,enum=deploy.model.ArtifactID_Kind" json:"kind,omitempty"`
	// Name of the artifact, e.g. a tarball path or container image name.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Its version label, e.g. "47712-fe5d339".
	Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

Identifier of an artifact version.

func (*ArtifactID) Descriptor deprecated

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

Deprecated: Use ArtifactID.ProtoReflect.Descriptor instead.

func (*ArtifactID) GetKind

func (x *ArtifactID) GetKind() ArtifactID_Kind

func (*ArtifactID) GetName

func (x *ArtifactID) GetName() string

func (*ArtifactID) GetVersion

func (x *ArtifactID) GetVersion() string

func (*ArtifactID) ProtoMessage

func (*ArtifactID) ProtoMessage()

func (*ArtifactID) ProtoReflect

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

func (*ArtifactID) Reset

func (x *ArtifactID) Reset()

func (*ArtifactID) String

func (x *ArtifactID) String() string

type ArtifactID_Kind

type ArtifactID_Kind int32

Artifact kind.

const (
	ArtifactID_KIND_UNSPECIFIED ArtifactID_Kind = 0
	ArtifactID_GAE_TARBALL      ArtifactID_Kind = 1 // a tarball with GAE code built by cloudbuildhelper
	ArtifactID_DOCKER_IMAGE     ArtifactID_Kind = 2 // a docker image
)

func (ArtifactID_Kind) Descriptor

func (ArtifactID_Kind) Enum

func (x ArtifactID_Kind) Enum() *ArtifactID_Kind

func (ArtifactID_Kind) EnumDescriptor deprecated

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

Deprecated: Use ArtifactID_Kind.Descriptor instead.

func (ArtifactID_Kind) Number

func (ArtifactID_Kind) String

func (x ArtifactID_Kind) String() string

func (ArtifactID_Kind) Type

type ArtifactLinks struct {

	// Link to where the artifact is defined (e.g. its build configs).
	Definition string `protobuf:"bytes,1,opt,name=definition,proto3" json:"definition,omitempty"`
	// Link to view the artifact via its storage UI (e.g. GCR Cloud Console link).
	View string `protobuf:"bytes,2,opt,name=view,proto3" json:"view,omitempty"`
	// Link to the buildbucket build that produced this artifact.
	Buildbucket string `protobuf:"bytes,3,opt,name=buildbucket,proto3" json:"buildbucket,omitempty"`
	// Link to the cloudbuild build that produced this artifact.
	Cloudbuild string `protobuf:"bytes,4,opt,name=cloudbuild,proto3" json:"cloudbuild,omitempty"`
	// contains filtered or unexported fields
}

Links to human-readable logs and UI pages related to the artifact.

All are optional.

func (*ArtifactLinks) Descriptor deprecated

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

Deprecated: Use ArtifactLinks.ProtoReflect.Descriptor instead.

func (*ArtifactLinks) GetBuildbucket

func (x *ArtifactLinks) GetBuildbucket() string

func (*ArtifactLinks) GetCloudbuild

func (x *ArtifactLinks) GetCloudbuild() string

func (*ArtifactLinks) GetDefinition

func (x *ArtifactLinks) GetDefinition() string

func (*ArtifactLinks) GetView

func (x *ArtifactLinks) GetView() string

func (*ArtifactLinks) ProtoMessage

func (*ArtifactLinks) ProtoMessage()

func (*ArtifactLinks) ProtoReflect

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

func (*ArtifactLinks) Reset

func (x *ArtifactLinks) Reset()

func (*ArtifactLinks) String

func (x *ArtifactLinks) String() string

type ArtifactSource

type ArtifactSource struct {

	// Full git repository URL.
	Repository string `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
	// Git revision.
	Revision string `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"`
	// List of the directories inside this repo with sources to include.
	Sources []string `protobuf:"bytes,3,rep,name=sources,proto3" json:"sources,omitempty"`
	// contains filtered or unexported fields
}

Reference to the source code to calculate change logs.

It is not a full manifest, just "interesting" directories worthy of inclusion in the change log.

func (*ArtifactSource) Descriptor deprecated

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

Deprecated: Use ArtifactSource.ProtoReflect.Descriptor instead.

func (*ArtifactSource) GetRepository

func (x *ArtifactSource) GetRepository() string

func (*ArtifactSource) GetRevision

func (x *ArtifactSource) GetRevision() string

func (*ArtifactSource) GetSources

func (x *ArtifactSource) GetSources() []string

func (*ArtifactSource) ProtoMessage

func (*ArtifactSource) ProtoMessage()

func (*ArtifactSource) ProtoReflect

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

func (*ArtifactSource) Reset

func (x *ArtifactSource) Reset()

func (*ArtifactSource) String

func (x *ArtifactSource) String() string

type Asset

type Asset struct {

	// Unique ID of this asset.
	//
	// Defines the asset type (in particular what oneof branch is expected to
	// be populated in AssetState).
	//
	// Matches full resource name of the asset's root resource per Google Cloud
	// API conventions. For now only Appengine services are supported with asset
	// ID being "apps/<app-id>".
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The snapshot of the most recent actuation.
	//
	// This is the most recent actuation. Most of the time it will be an actuation
	// that made SKIP_UPTODATE decision (since most of the time assets are
	// up-to-date).
	//
	// May still be in-flight.
	LastActuation *Actuation `protobuf:"bytes,2,opt,name=last_actuation,json=lastActuation,proto3" json:"last_actuation,omitempty"`
	// The last actuation decision regarding this asset.
	//
	// It is the decision that was made by the `last_actuation` when it started.
	LastDecision *ActuationDecision `protobuf:"bytes,3,opt,name=last_decision,json=lastDecision,proto3" json:"last_decision,omitempty"`
	// The snapshot of the most recent actuation with ACTUATE_* decision.
	//
	// It is the actuation that changed (or attempted to change) this asset the
	// last time.
	//
	// May still be in-flight.
	LastActuateActuation *Actuation `protobuf:"bytes,4,opt,name=last_actuate_actuation,json=lastActuateActuation,proto3" json:"last_actuate_actuation,omitempty"`
	// The last ACTUATE_* actuation decision regarding this asset.
	//
	// It is the decision that was made by the `last_actuate_actuation` when it
	// started.
	LastActuateDecision *ActuationDecision `protobuf:"bytes,5,opt,name=last_actuate_decision,json=lastActuateDecision,proto3" json:"last_actuate_decision,omitempty"`
	// Asset configuration as defined in the IaC repo.
	//
	// It's the configuration consumed the deployment system itself. Actuated
	// resources are configured via `intended_state`.
	Config *AssetConfig `protobuf:"bytes,6,opt,name=config,proto3" json:"config,omitempty"`
	// The intended state of the asset as defined in the IaC repo.
	//
	// It is the intended asset state reported by the actuator during its most
	// recent BeginActuation call. This state is derived purely from the committed
	// configuration. The actuator will try to move the asset into this state.
	//
	// Has its `state` oneof populated according to the asset kind using
	// IntendedState sub-fields. Never contains an erroneous AssetState.
	//
	// May be missing for new assets if they are misconfigured in the IaC repo.
	IntendedState *AssetState `protobuf:"bytes,7,opt,name=intended_state,json=intendedState,proto3" json:"intended_state,omitempty"`
	// The last successfully applied intended state.
	//
	// May be different from `intended_state` for assets being actuated right now
	// of for disabled, locked or broken assets.
	//
	// Has its `state` oneof populated according to the asset kind using
	// IntendedState sub-fields. Never contains an erroneous AssetState.
	//
	// May be missing for new assets if they never had successful actuations.
	AppliedState *AssetState `protobuf:"bytes,8,opt,name=applied_state,json=appliedState,proto3" json:"applied_state,omitempty"`
	// The actual state of the asset as reported by the actuator most recently.
	//
	// It is the captured asset state reported by the actuator during its most
	// BeginActuation or EndActuation calls. Matches some real most recently
	// observed state of the asset, regardless how this state came to be.
	//
	// Has its `state` oneof populated according to the asset kind using
	// CapturedState sub-fields. Never contains an erroneous AssetState.
	//
	// May be missing for new assets if the actuator fails to capture their state.
	ReportedState *AssetState `protobuf:"bytes,9,opt,name=reported_state,json=reportedState,proto3" json:"reported_state,omitempty"`
	// The last state applied by the actuator itself.
	//
	// For up-to-date assets it matches `intended_state` and `reported_state`.
	//
	// If during an actuation cycle the actuator partially updates some resources
	// and then fails, `actuated_state` may be some intermediate state between
	// the intended and the initial pre-actuation states.
	//
	// If some external entity (not the actuator) messes with the asset,
	// `reported_state` may be different from `actuated_state`.
	//
	// Has its `state` oneof populated according to the asset kind using
	// CapturedState sub-fields. Never contains an erroneous AssetState.
	//
	// May be missing for new assets while they are being actuated or if the
	// actuator fails to capture their post-actuation state.
	ActuatedState *AssetState `protobuf:"bytes,10,opt,name=actuated_state,json=actuatedState,proto3" json:"actuated_state,omitempty"`
	// Populated if the actuator failed to capture the post-actuation state.
	//
	// If this field is set then `actuated_state` likely doesn't match reality
	// and the next actuation attempt will likely trigger the anti-stomp
	// protection.
	PostActuationStatus *status.Status `protobuf:"bytes,11,opt,name=post_actuation_status,json=postActuationStatus,proto3" json:"post_actuation_status,omitempty"`
	// contains filtered or unexported fields
}

Asset represents a Cloud resource (or a bunch of resources) actuated as a single unit.

func (*Asset) Descriptor deprecated

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

Deprecated: Use Asset.ProtoReflect.Descriptor instead.

func (*Asset) GetActuatedState

func (x *Asset) GetActuatedState() *AssetState

func (*Asset) GetAppliedState

func (x *Asset) GetAppliedState() *AssetState

func (*Asset) GetConfig

func (x *Asset) GetConfig() *AssetConfig

func (*Asset) GetId

func (x *Asset) GetId() string

func (*Asset) GetIntendedState

func (x *Asset) GetIntendedState() *AssetState

func (*Asset) GetLastActuateActuation

func (x *Asset) GetLastActuateActuation() *Actuation

func (*Asset) GetLastActuateDecision

func (x *Asset) GetLastActuateDecision() *ActuationDecision

func (*Asset) GetLastActuation

func (x *Asset) GetLastActuation() *Actuation

func (*Asset) GetLastDecision

func (x *Asset) GetLastDecision() *ActuationDecision

func (*Asset) GetPostActuationStatus

func (x *Asset) GetPostActuationStatus() *status.Status

func (*Asset) GetReportedState

func (x *Asset) GetReportedState() *AssetState

func (*Asset) ProtoMessage

func (*Asset) ProtoMessage()

func (*Asset) ProtoReflect

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

func (*Asset) Reset

func (x *Asset) Reset()

func (*Asset) String

func (x *Asset) String() string

type AssetConfig

type AssetConfig struct {

	// True to actuate the asset, false to leave it alone.
	EnableAutomation bool `protobuf:"varint,1,opt,name=enable_automation,json=enableAutomation,proto3" json:"enable_automation,omitempty"`
	// How many inactive GAE versions to keep.
	InactiveVersionsToKeep int32 `` /* 132-byte string literal not displayed */
	// contains filtered or unexported fields
}

Asset configuration as defined in the IaC repo.

func (*AssetConfig) Descriptor deprecated

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

Deprecated: Use AssetConfig.ProtoReflect.Descriptor instead.

func (*AssetConfig) GetEnableAutomation

func (x *AssetConfig) GetEnableAutomation() bool

func (*AssetConfig) GetInactiveVersionsToKeep

func (x *AssetConfig) GetInactiveVersionsToKeep() int32

func (*AssetConfig) ProtoMessage

func (*AssetConfig) ProtoMessage()

func (*AssetConfig) ProtoReflect

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

func (*AssetConfig) Reset

func (x *AssetConfig) Reset()

func (*AssetConfig) String

func (x *AssetConfig) String() string

type AssetHistory

type AssetHistory struct {

	// The parent asset ID.
	AssetId string `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"`
	// Index in the asset's history log, monotonically increasing starting with 1.
	HistoryId int64 `protobuf:"varint,2,opt,name=history_id,json=historyId,proto3" json:"history_id,omitempty"`
	// The decision made by the backend.
	Decision *ActuationDecision `protobuf:"bytes,3,opt,name=decision,proto3" json:"decision,omitempty"`
	// The snapshot of the associated actuation.
	Actuation *Actuation `protobuf:"bytes,4,opt,name=actuation,proto3" json:"actuation,omitempty"`
	// Reported asset configuration as defined in the IaC repo.
	Config *AssetConfig `protobuf:"bytes,5,opt,name=config,proto3" json:"config,omitempty"`
	// Reported intended state of the asset as defined in the IaC repo.
	IntendedState *AssetState `protobuf:"bytes,6,opt,name=intended_state,json=intendedState,proto3" json:"intended_state,omitempty"`
	// Reported actual state of the asset (as scanned by the actuator).
	ReportedState *AssetState `protobuf:"bytes,7,opt,name=reported_state,json=reportedState,proto3" json:"reported_state,omitempty"`
	// The last successfully applied intended state **prior** to the actuation.
	LastAppliedState *AssetState `protobuf:"bytes,8,opt,name=last_applied_state,json=lastAppliedState,proto3" json:"last_applied_state,omitempty"`
	// The reported state **after** the actuation, if it was performed.
	PostActuationState *AssetState `protobuf:"bytes,9,opt,name=post_actuation_state,json=postActuationState,proto3" json:"post_actuation_state,omitempty"`
	// Number of consecutive failures prior to this entry (excluding itself).
	PriorConsecutiveFailures int64 `` /* 137-byte string literal not displayed */
	// contains filtered or unexported fields
}

AssetHistory captures an actuation decision made by the backend regarding some asset along with all data that led to it, as well as the corresponding actuation outcome.

func (*AssetHistory) Descriptor deprecated

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

Deprecated: Use AssetHistory.ProtoReflect.Descriptor instead.

func (*AssetHistory) GetActuation

func (x *AssetHistory) GetActuation() *Actuation

func (*AssetHistory) GetAssetId

func (x *AssetHistory) GetAssetId() string

func (*AssetHistory) GetConfig

func (x *AssetHistory) GetConfig() *AssetConfig

func (*AssetHistory) GetDecision

func (x *AssetHistory) GetDecision() *ActuationDecision

func (*AssetHistory) GetHistoryId

func (x *AssetHistory) GetHistoryId() int64

func (*AssetHistory) GetIntendedState

func (x *AssetHistory) GetIntendedState() *AssetState

func (*AssetHistory) GetLastAppliedState

func (x *AssetHistory) GetLastAppliedState() *AssetState

func (*AssetHistory) GetPostActuationState

func (x *AssetHistory) GetPostActuationState() *AssetState

func (*AssetHistory) GetPriorConsecutiveFailures

func (x *AssetHistory) GetPriorConsecutiveFailures() int64

func (*AssetHistory) GetReportedState

func (x *AssetHistory) GetReportedState() *AssetState

func (*AssetHistory) ProtoMessage

func (*AssetHistory) ProtoMessage()

func (*AssetHistory) ProtoReflect

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

func (*AssetHistory) Reset

func (x *AssetHistory) Reset()

func (*AssetHistory) String

func (x *AssetHistory) String() string

type AssetState

type AssetState struct {

	// When this state was captured.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The deployment configuration at the time the state was captured.
	Deployment *Deployment `protobuf:"bytes,2,opt,name=deployment,proto3" json:"deployment,omitempty"`
	// The actuator that performed the capture.
	Actuator *ActuatorInfo `protobuf:"bytes,3,opt,name=actuator,proto3" json:"actuator,omitempty"`
	// Error details if the asset state could not be captured.
	Status *status.Status `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"`
	// The intended or captured state of the asset if `status` is OK.
	//
	// Types that are assignable to State:
	//
	//	*AssetState_Appengine
	State isAssetState_State `protobuf_oneof:"state"`
	// contains filtered or unexported fields
}

A snapshot of the intended or captured state of an asset.

Also contains information about the actuator and the deployment at the time the state was captured. This is useful for the historical log of states.

func (*AssetState) Descriptor deprecated

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

Deprecated: Use AssetState.ProtoReflect.Descriptor instead.

func (*AssetState) GetActuator

func (x *AssetState) GetActuator() *ActuatorInfo

func (*AssetState) GetAppengine

func (x *AssetState) GetAppengine() *AppengineState

func (*AssetState) GetDeployment

func (x *AssetState) GetDeployment() *Deployment

func (*AssetState) GetState

func (m *AssetState) GetState() isAssetState_State

func (*AssetState) GetStatus

func (x *AssetState) GetStatus() *status.Status

func (*AssetState) GetTimestamp

func (x *AssetState) GetTimestamp() *timestamppb.Timestamp

func (*AssetState) ProtoMessage

func (*AssetState) ProtoMessage()

func (*AssetState) ProtoReflect

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

func (*AssetState) Reset

func (x *AssetState) Reset()

func (*AssetState) String

func (x *AssetState) String() string

type AssetState_Appengine

type AssetState_Appengine struct {
	// For assets with ID "apps/<app-id>".
	Appengine *AppengineState `protobuf:"bytes,10,opt,name=appengine,proto3,oneof"`
}

type CommitDetails

type CommitDetails struct {

	// Author name, as git understands it.
	AuthorName string `protobuf:"bytes,1,opt,name=author_name,json=authorName,proto3" json:"author_name,omitempty"`
	// Author email, as git understands it.
	AuthorEmail string `protobuf:"bytes,2,opt,name=author_email,json=authorEmail,proto3" json:"author_email,omitempty"`
	// Full commit message, including subject and footers.
	CommitMessage string `protobuf:"bytes,3,opt,name=commit_message,json=commitMessage,proto3" json:"commit_message,omitempty"`
	// contains filtered or unexported fields
}

Details of an IaC repo commit, to show in the UI.

func (*CommitDetails) Descriptor deprecated

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

Deprecated: Use CommitDetails.ProtoReflect.Descriptor instead.

func (*CommitDetails) GetAuthorEmail

func (x *CommitDetails) GetAuthorEmail() string

func (*CommitDetails) GetAuthorName

func (x *CommitDetails) GetAuthorName() string

func (*CommitDetails) GetCommitMessage

func (x *CommitDetails) GetCommitMessage() string

func (*CommitDetails) ProtoMessage

func (*CommitDetails) ProtoMessage()

func (*CommitDetails) ProtoReflect

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

func (*CommitDetails) Reset

func (x *CommitDetails) Reset()

func (*CommitDetails) String

func (x *CommitDetails) String() string

type Deployment

type Deployment struct {

	// The stable identifier of the deployment based on the config location.
	Id *DeploymentID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The revision of the HEAD of IaC repository with the deployment.
	//
	// Can be obtained with `git rev-parse HEAD`. Moves frequently.
	RepoRev string `protobuf:"bytes,2,opt,name=repo_rev,json=repoRev,proto3" json:"repo_rev,omitempty"`
	// The revision of the deployment config directory.
	//
	// Can be obtained `git log --pretty=tformat:"%H" -n1 <config_path>`. If it
	// changes, the deployment most like is changing too.
	ConfigRev string `protobuf:"bytes,3,opt,name=config_rev,json=configRev,proto3" json:"config_rev,omitempty"`
	// Configuration for the deployment system itself, as defined in the IaC repo.
	//
	// Applies to all assets associated with this deployment.
	Config *DeploymentConfig `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"`
	// Details of the commit matching `config_rev`.
	LatestCommit *CommitDetails `protobuf:"bytes,5,opt,name=latest_commit,json=latestCommit,proto3" json:"latest_commit,omitempty"`
	// contains filtered or unexported fields
}

Deployment as defined in the IaC repo.

func (*Deployment) Descriptor deprecated

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

Deprecated: Use Deployment.ProtoReflect.Descriptor instead.

func (*Deployment) GetConfig

func (x *Deployment) GetConfig() *DeploymentConfig

func (*Deployment) GetConfigRev

func (x *Deployment) GetConfigRev() string

func (*Deployment) GetId

func (x *Deployment) GetId() *DeploymentID

func (*Deployment) GetLatestCommit

func (x *Deployment) GetLatestCommit() *CommitDetails

func (*Deployment) GetRepoRev

func (x *Deployment) GetRepoRev() string

func (*Deployment) ProtoMessage

func (*Deployment) ProtoMessage()

func (*Deployment) ProtoReflect

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

func (*Deployment) Reset

func (x *Deployment) Reset()

func (*Deployment) String

func (x *Deployment) String() string

type DeploymentConfig

type DeploymentConfig struct {

	// How long the actuation can run before it is considered crashed.
	//
	// Default is 20 min.
	ActuationTimeout *durationpb.Duration             `protobuf:"bytes,1,opt,name=actuation_timeout,json=actuationTimeout,proto3" json:"actuation_timeout,omitempty"`
	Notifications    []*DeploymentConfig_Notification `protobuf:"bytes,2,rep,name=notifications,proto3" json:"notifications,omitempty"`
	// contains filtered or unexported fields
}

Deployment configuration, as defined in the IaC repo.

func (*DeploymentConfig) Descriptor deprecated

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

Deprecated: Use DeploymentConfig.ProtoReflect.Descriptor instead.

func (*DeploymentConfig) GetActuationTimeout

func (x *DeploymentConfig) GetActuationTimeout() *durationpb.Duration

func (*DeploymentConfig) GetNotifications

func (x *DeploymentConfig) GetNotifications() []*DeploymentConfig_Notification

func (*DeploymentConfig) ProtoMessage

func (*DeploymentConfig) ProtoMessage()

func (*DeploymentConfig) ProtoReflect

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

func (*DeploymentConfig) Reset

func (x *DeploymentConfig) Reset()

func (*DeploymentConfig) String

func (x *DeploymentConfig) String() string

type DeploymentConfig_Notification

type DeploymentConfig_Notification struct {
	Events []DeploymentConfig_Notification_Event `` /* 127-byte string literal not displayed */
	// List of emails to send notifications to.
	Emails     []string                                   `protobuf:"bytes,2,rep,name=emails,proto3" json:"emails,omitempty"`
	ChatSpaces []*DeploymentConfig_Notification_ChatSpace `protobuf:"bytes,3,rep,name=chat_spaces,json=chatSpaces,proto3" json:"chat_spaces,omitempty"`
	// Consecutive failures threshold for ACTUATION_FAILED and ACTUATION_FIXED.
	//
	// First few failures (below the threshold) will *not* result in
	// a notification. This is useful to avoid spamming on flaky failures
	// resolved by automatic retries.
	ConsecutiveFailures int32 `protobuf:"varint,4,opt,name=consecutive_failures,json=consecutiveFailures,proto3" json:"consecutive_failures,omitempty"`
	// contains filtered or unexported fields
}

Who to notify on noteworthy events.

Various asset state transitions emit 0 or more events per transition. For each event kind `notifications` define a set of destinations to send it to. During a state transition, all emitted events are bucketed by their destination, then redundant events are trimmed (e.g. if a single destination is getting ACTUATION_FIXED and ACTUATION_SUCCEEDED events, only ACTUATION_FIXED will be retained, since it makes little sense to send two success notifications to the same destination at the same time).

func (*DeploymentConfig_Notification) Descriptor deprecated

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

Deprecated: Use DeploymentConfig_Notification.ProtoReflect.Descriptor instead.

func (*DeploymentConfig_Notification) GetChatSpaces

func (*DeploymentConfig_Notification) GetConsecutiveFailures

func (x *DeploymentConfig_Notification) GetConsecutiveFailures() int32

func (*DeploymentConfig_Notification) GetEmails

func (x *DeploymentConfig_Notification) GetEmails() []string

func (*DeploymentConfig_Notification) GetEvents

func (*DeploymentConfig_Notification) ProtoMessage

func (*DeploymentConfig_Notification) ProtoMessage()

func (*DeploymentConfig_Notification) ProtoReflect

func (*DeploymentConfig_Notification) Reset

func (x *DeploymentConfig_Notification) Reset()

func (*DeploymentConfig_Notification) String

type DeploymentConfig_Notification_ChatSpace

type DeploymentConfig_Notification_ChatSpace struct {

	// Space ID e.g. "AAAA9ulaM5M", can be extracted from the Space URL.
	//
	// The chat app needs to be added into the space first. Search for it
	// using "LUCI Deploy" title.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

List of Google Chat spaces to send notifications to.

func (*DeploymentConfig_Notification_ChatSpace) Descriptor deprecated

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

Deprecated: Use DeploymentConfig_Notification_ChatSpace.ProtoReflect.Descriptor instead.

func (*DeploymentConfig_Notification_ChatSpace) GetId

func (*DeploymentConfig_Notification_ChatSpace) ProtoMessage

func (*DeploymentConfig_Notification_ChatSpace) ProtoReflect

func (*DeploymentConfig_Notification_ChatSpace) Reset

func (*DeploymentConfig_Notification_ChatSpace) String

type DeploymentConfig_Notification_Event

type DeploymentConfig_Notification_Event int32

Types of events to notify on.

const (
	DeploymentConfig_Notification_EVENT_UNSPECIFIED DeploymentConfig_Notification_Event = 0
	// An actuation is starting.
	//
	// Always emitted regardless of any prior history.
	DeploymentConfig_Notification_ACTUATION_STARTING DeploymentConfig_Notification_Event = 1
	// An actuation has finished successfully.
	//
	// Always emitted regardless of any prior history.
	DeploymentConfig_Notification_ACTUATION_SUCCEEDED DeploymentConfig_Notification_Event = 2
	// An actuation failed, perhaps after several retries.
	//
	// First few failures (below `consecutive_failures` threshold) will *not*
	// result in an event. Every consecutive failure after that will result
	// in an event.
	DeploymentConfig_Notification_ACTUATION_FAILED DeploymentConfig_Notification_Event = 3
	// An actuation succeeded after a series of failures.
	//
	// Emitted if the actuation succeeded after >= `consecutive_failures`
	// consecutive failures. Overrides ACTUATION_SUCCEEDED if emitted by the
	// same state transition.
	DeploymentConfig_Notification_ACTUATION_FIXED DeploymentConfig_Notification_Event = 4
)

func (DeploymentConfig_Notification_Event) Descriptor

func (DeploymentConfig_Notification_Event) Enum

func (DeploymentConfig_Notification_Event) EnumDescriptor deprecated

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

Deprecated: Use DeploymentConfig_Notification_Event.Descriptor instead.

func (DeploymentConfig_Notification_Event) Number

func (DeploymentConfig_Notification_Event) String

func (DeploymentConfig_Notification_Event) Type

type DeploymentID

type DeploymentID struct {

	// Hostname of the GoB server with the IaC repository, e.g. "chrome-internal".
	RepoHost string `protobuf:"bytes,1,opt,name=repo_host,json=repoHost,proto3" json:"repo_host,omitempty"`
	// Name of the IaC repository relative to the host, e.g. "infradata/gae".
	RepoName string `protobuf:"bytes,2,opt,name=repo_name,json=repoName,proto3" json:"repo_name,omitempty"`
	// Path to the root of the IaC config tree in the repository, e.g. ".".
	RepoPath string `protobuf:"bytes,3,opt,name=repo_path,json=repoPath,proto3" json:"repo_path,omitempty"`
	// Path to the directory inside the IaC configs, e.g. "apps/luci-deploy/prod".
	ConfigPath string `protobuf:"bytes,4,opt,name=config_path,json=configPath,proto3" json:"config_path,omitempty"`
	// contains filtered or unexported fields
}

Identifier of a deployment: a reference to its config location.

A deployment is located in some directory of a git repository on `HEAD` ref.

The directory path has two segments: the path to the root of the configuration tree, and the path to the particular configuration within this tree.

func (*DeploymentID) Descriptor deprecated

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

Deprecated: Use DeploymentID.ProtoReflect.Descriptor instead.

func (*DeploymentID) GetConfigPath

func (x *DeploymentID) GetConfigPath() string

func (*DeploymentID) GetRepoHost

func (x *DeploymentID) GetRepoHost() string

func (*DeploymentID) GetRepoName

func (x *DeploymentID) GetRepoName() string

func (*DeploymentID) GetRepoPath

func (x *DeploymentID) GetRepoPath() string

func (*DeploymentID) ProtoMessage

func (*DeploymentID) ProtoMessage()

func (*DeploymentID) ProtoReflect

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

func (*DeploymentID) Reset

func (x *DeploymentID) Reset()

func (*DeploymentID) String

func (x *DeploymentID) String() string

Jump to

Keyboard shortcuts

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