model

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package model contains definitions of model objects that are stored in the datastore.

Index

Constants

View Source
const DefaultDeploymentConfigFileName = ".pipe.yaml"

Variables

View Source
var (
	ApplicationSyncStatus_name = map[int32]string{
		0: "UNKNOWN",
		1: "SYNCED",
		2: "DEPLOYING",
		3: "OUT_OF_SYNC",
	}
	ApplicationSyncStatus_value = map[string]int32{
		"UNKNOWN":     0,
		"SYNCED":      1,
		"DEPLOYING":   2,
		"OUT_OF_SYNC": 3,
	}
)

Enum value maps for ApplicationSyncStatus.

View Source
var (
	ApplicationLiveStateSnapshot_Status_name = map[int32]string{
		0: "UNKNOWN",
		1: "HEALTHY",
		2: "OTHER",
	}
	ApplicationLiveStateSnapshot_Status_value = map[string]int32{
		"UNKNOWN": 0,
		"HEALTHY": 1,
		"OTHER":   2,
	}
)

Enum value maps for ApplicationLiveStateSnapshot_Status.

View Source
var (
	KubernetesResourceState_HealthStatus_name = map[int32]string{
		0: "UNKNOWN",
		1: "HEALTHY",
		2: "OTHER",
	}
	KubernetesResourceState_HealthStatus_value = map[string]int32{
		"UNKNOWN": 0,
		"HEALTHY": 1,
		"OTHER":   2,
	}
)

Enum value maps for KubernetesResourceState_HealthStatus.

View Source
var (
	KubernetesResourceStateEvent_Type_name = map[int32]string{
		0: "ADD_OR_UPDATED",
		2: "DELETED",
	}
	KubernetesResourceStateEvent_Type_value = map[string]int32{
		"ADD_OR_UPDATED": 0,
		"DELETED":        2,
	}
)

Enum value maps for KubernetesResourceStateEvent_Type.

View Source
var (
	CommandStatus_name = map[int32]string{
		0: "COMMAND_NOT_HANDLED_YET",
		1: "COMMAND_SUCCEEDED",
		2: "COMMAND_FAILED",
		3: "COMMAND_TIMEOUT",
	}
	CommandStatus_value = map[string]int32{
		"COMMAND_NOT_HANDLED_YET": 0,
		"COMMAND_SUCCEEDED":       1,
		"COMMAND_FAILED":          2,
		"COMMAND_TIMEOUT":         3,
	}
)

Enum value maps for CommandStatus.

View Source
var (
	Command_Type_name = map[int32]string{
		0: "SYNC_APPLICATION",
		1: "UPDATE_APPLICATION_CONFIG",
		2: "CANCEL_DEPLOYMENT",
		3: "APPROVE_STAGE",
	}
	Command_Type_value = map[string]int32{
		"SYNC_APPLICATION":          0,
		"UPDATE_APPLICATION_CONFIG": 1,
		"CANCEL_DEPLOYMENT":         2,
		"APPROVE_STAGE":             3,
	}
)

Enum value maps for Command_Type.

View Source
var (
	ApplicationKind_name = map[int32]string{
		0: "KUBERNETES",
		1: "TERRAFORM",
		2: "CROSSPLANE",
		3: "LAMBDA",
		4: "CLOUDRUN",
	}
	ApplicationKind_value = map[string]int32{
		"KUBERNETES": 0,
		"TERRAFORM":  1,
		"CROSSPLANE": 2,
		"LAMBDA":     3,
		"CLOUDRUN":   4,
	}
)

Enum value maps for ApplicationKind.

View Source
var (
	DeploymentStatus_name = map[int32]string{
		0: "DEPLOYMENT_PENDING",
		1: "DEPLOYMENT_PLANNED",
		2: "DEPLOYMENT_RUNNING",
		3: "DEPLOYMENT_ROLLING_BACK",
		4: "DEPLOYMENT_SUCCESS",
		5: "DEPLOYMENT_FAILURE",
		6: "DEPLOYMENT_CANCELLED",
	}
	DeploymentStatus_value = map[string]int32{
		"DEPLOYMENT_PENDING":      0,
		"DEPLOYMENT_PLANNED":      1,
		"DEPLOYMENT_RUNNING":      2,
		"DEPLOYMENT_ROLLING_BACK": 3,
		"DEPLOYMENT_SUCCESS":      4,
		"DEPLOYMENT_FAILURE":      5,
		"DEPLOYMENT_CANCELLED":    6,
	}
)

Enum value maps for DeploymentStatus.

View Source
var (
	StageStatus_name = map[int32]string{
		0: "STAGE_NOT_STARTED_YET",
		1: "STAGE_RUNNING",
		2: "STAGE_SUCCESS",
		3: "STAGE_FAILURE",
		4: "STAGE_CANCELLED",
	}
	StageStatus_value = map[string]int32{
		"STAGE_NOT_STARTED_YET": 0,
		"STAGE_RUNNING":         1,
		"STAGE_SUCCESS":         2,
		"STAGE_FAILURE":         3,
		"STAGE_CANCELLED":       4,
	}
)

Enum value maps for StageStatus.

View Source
var (
	EventType_name = map[int32]string{
		0:   "EVENT_DEPLOYMENT_TRIGGERED",
		1:   "EVENT_DEPLOYMENT_PLANNED",
		2:   "EVENT_DEPLOYMENT_APPROVED",
		3:   "EVENT_DEPLOYMENT_ROLLING_BACK",
		4:   "EVENT_DEPLOYMENT_SUCCEEDED",
		5:   "EVENT_DEPLOYMENT_FAILED",
		6:   "EVENT_DEPLOYMENT_CANCELLED",
		100: "EVENT_APPLICATION_SYNCED",
		101: "EVENT_APPLICATION_OUT_OF_SYNC",
		200: "EVENT_APPLICATION_HEALTHY",
		300: "EVENT_PIPED_STARTED",
		301: "EVENT_PIPED_STOPPED",
	}
	EventType_value = map[string]int32{
		"EVENT_DEPLOYMENT_TRIGGERED":    0,
		"EVENT_DEPLOYMENT_PLANNED":      1,
		"EVENT_DEPLOYMENT_APPROVED":     2,
		"EVENT_DEPLOYMENT_ROLLING_BACK": 3,
		"EVENT_DEPLOYMENT_SUCCEEDED":    4,
		"EVENT_DEPLOYMENT_FAILED":       5,
		"EVENT_DEPLOYMENT_CANCELLED":    6,
		"EVENT_APPLICATION_SYNCED":      100,
		"EVENT_APPLICATION_OUT_OF_SYNC": 101,
		"EVENT_APPLICATION_HEALTHY":     200,
		"EVENT_PIPED_STARTED":           300,
		"EVENT_PIPED_STOPPED":           301,
	}
)

Enum value maps for EventType.

View Source
var (
	EventGroup_name = map[int32]string{
		0: "EVENT_NONE",
		1: "EVENT_DEPLOYMENT",
		2: "EVENT_APPLICATION_SYNC",
		3: "EVENT_APPLICATION_HEALTH",
		4: "EVENT_PIPED",
	}
	EventGroup_value = map[string]int32{
		"EVENT_NONE":               0,
		"EVENT_DEPLOYMENT":         1,
		"EVENT_APPLICATION_SYNC":   2,
		"EVENT_APPLICATION_HEALTH": 3,
		"EVENT_PIPED":              4,
	}
)

Enum value maps for EventGroup.

View Source
var (
	LogSeverity_name = map[int32]string{
		0: "INFO",
		1: "SUCCESS",
		2: "ERROR",
	}
	LogSeverity_value = map[string]int32{
		"INFO":    0,
		"SUCCESS": 1,
		"ERROR":   2,
	}
)

Enum value maps for LogSeverity.

View Source
var (
	Piped_ConnectionStatus_name = map[int32]string{
		0: "ONLINE",
		1: "OFFLINE",
	}
	Piped_ConnectionStatus_value = map[string]int32{
		"ONLINE":  0,
		"OFFLINE": 1,
	}
)

Enum value maps for Piped_ConnectionStatus.

View Source
var (
	PrometheusMetrics_Type_name = map[int32]string{
		0: "GAUGE",
		1: "COUNTER",
	}
	PrometheusMetrics_Type_value = map[string]int32{
		"GAUGE":   0,
		"COUNTER": 1,
	}
)

Enum value maps for PrometheusMetrics_Type.

View Source
var (
	ProjectSSOConfig_Provider_name = map[int32]string{
		0: "GITHUB",
		1: "GITHUB_ENTERPRISE",
		2: "GOOGLE",
	}
	ProjectSSOConfig_Provider_value = map[string]int32{
		"GITHUB":            0,
		"GITHUB_ENTERPRISE": 1,
		"GOOGLE":            2,
	}
)

Enum value maps for ProjectSSOConfig_Provider.

View Source
var (
	Role_ProjectRole_name = map[int32]string{
		0: "VIEWER",
		1: "EDITOR",
		2: "ADMIN",
	}
	Role_ProjectRole_value = map[string]int32{
		"VIEWER": 0,
		"EDITOR": 1,
		"ADMIN":  2,
	}
)

Enum value maps for Role_ProjectRole.

View Source
var (
	// Required role for ID token that will be checked before running RPC method.
	//
	// optional pipe.model.Role role = 59090;
	E_Role = &file_pkg_model_role_proto_extTypes[0]
)

Extension fields to descriptor.MethodOptions.

View Source
var File_pkg_model_application_live_state_proto protoreflect.FileDescriptor
View Source
var File_pkg_model_application_proto protoreflect.FileDescriptor
View Source
var File_pkg_model_command_proto protoreflect.FileDescriptor
View Source
var File_pkg_model_common_proto protoreflect.FileDescriptor
View Source
var File_pkg_model_deployment_proto protoreflect.FileDescriptor
View Source
var File_pkg_model_environment_proto protoreflect.FileDescriptor
View Source
var File_pkg_model_event_proto protoreflect.FileDescriptor
View Source
var File_pkg_model_logblock_proto protoreflect.FileDescriptor
View Source
var File_pkg_model_piped_proto protoreflect.FileDescriptor
View Source
var File_pkg_model_piped_stats_proto protoreflect.FileDescriptor
View Source
var File_pkg_model_project_proto protoreflect.FileDescriptor
View Source
var File_pkg_model_role_proto protoreflect.FileDescriptor
View Source
var File_pkg_model_user_proto protoreflect.FileDescriptor

Functions

func CanUpdateDeploymentStatus

func CanUpdateDeploymentStatus(cur, next DeploymentStatus) bool

CanUpdateDeploymentStatus checks whether the deployment can transit to the given status.

func CanUpdateStageStatus

func CanUpdateStageStatus(cur, next StageStatus) bool

CanUpdateStageStatus checks whether the stage can transit to the given status.

func GeneratePipedKey

func GeneratePipedKey() (key, hash string, err error)

GeneratePipedKey generates a new key for piped. This returns raw key value for used by piped and a hash value of the key for storing in datastore.

func GenerateRandomString

func GenerateRandomString(n int) string

GenerateRandomString makes a random string with the given length. This implementation was referenced from the link below. https://stackoverflow.com/questions/22892120/how-to-generate-a-random-string-of-a-fixed-length-in-go

func IsCompletedDeployment

func IsCompletedDeployment(status DeploymentStatus) bool

IsCompletedDeployment checks whether the deployment is at a completion state.

func IsCompletedStage

func IsCompletedStage(status StageStatus) bool

IsCompletedStage checks whether the stage is at a completion state.

Types

type AnalysisProviderType

type AnalysisProviderType string
const (
	AnalysisProviderPrometheus  AnalysisProviderType = "PROMETHEUS"
	AnalysisProviderDatadog     AnalysisProviderType = "DATADOG"
	AnalysisProviderStackdriver AnalysisProviderType = "STACKDRIVER"
)

func (AnalysisProviderType) String

func (t AnalysisProviderType) String() string

type Application

type Application struct {

	// The generated unique identifier.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The name of the application.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// The id of environment this application belongs to.
	EnvId string `protobuf:"bytes,3,opt,name=env_id,json=envId,proto3" json:"env_id,omitempty"`
	// The ID of the piped that should handle this application.
	PipedId string `protobuf:"bytes,4,opt,name=piped_id,json=pipedId,proto3" json:"piped_id,omitempty"`
	// The ID of the project this enviroment belongs to.
	ProjectId string `protobuf:"bytes,5,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// What kind of this application.
	Kind ApplicationKind `protobuf:"varint,6,opt,name=kind,proto3,enum=pipe.model.ApplicationKind" json:"kind,omitempty"`
	// The path to the git directory of this application.
	GitPath *ApplicationGitPath `protobuf:"bytes,7,opt,name=git_path,json=gitPath,proto3" json:"git_path,omitempty"`
	// The name of cloud provider where to deploy this application.
	// This must be one of the provider names registered in the piped.
	CloudProvider string `protobuf:"bytes,8,opt,name=cloud_provider,json=cloudProvider,proto3" json:"cloud_provider,omitempty"`
	// Basic information about the most recently successful deployment.
	// This also shows information about current running workloads.
	MostRecentlySuccessfulDeployment *ApplicationDeploymentReference `` /* 162-byte string literal not displayed */
	// Basic information about the most recently trigered deployment.
	MostRecentlyTriggeredDeployment *ApplicationDeploymentReference `` /* 159-byte string literal not displayed */
	// Current sync state.
	SyncState *ApplicationSyncState `protobuf:"bytes,13,opt,name=sync_state,json=syncState,proto3" json:"sync_state,omitempty"`
	// Whether the application is disabled or not.
	Disabled bool `protobuf:"varint,100,opt,name=disabled,proto3" json:"disabled,omitempty"`
	// Unix time when the application is created.
	CreatedAt int64 `protobuf:"varint,101,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Unix time of the last time when the application is updated.
	UpdatedAt int64 `protobuf:"varint,102,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Application) Descriptor deprecated

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

Deprecated: Use Application.ProtoReflect.Descriptor instead.

func (*Application) GetCloudProvider

func (x *Application) GetCloudProvider() string

func (*Application) GetCreatedAt

func (x *Application) GetCreatedAt() int64

func (*Application) GetDisabled

func (x *Application) GetDisabled() bool

func (*Application) GetEnvId

func (x *Application) GetEnvId() string

func (*Application) GetGitPath

func (x *Application) GetGitPath() *ApplicationGitPath

func (*Application) GetId

func (x *Application) GetId() string

func (*Application) GetKind

func (x *Application) GetKind() ApplicationKind

func (*Application) GetMostRecentlySuccessfulDeployment

func (x *Application) GetMostRecentlySuccessfulDeployment() *ApplicationDeploymentReference

func (*Application) GetMostRecentlyTriggeredDeployment

func (x *Application) GetMostRecentlyTriggeredDeployment() *ApplicationDeploymentReference

func (*Application) GetName

func (x *Application) GetName() string

func (*Application) GetPipedId

func (x *Application) GetPipedId() string

func (*Application) GetProjectId

func (x *Application) GetProjectId() string

func (*Application) GetSyncState

func (x *Application) GetSyncState() *ApplicationSyncState

func (*Application) GetUpdatedAt

func (x *Application) GetUpdatedAt() int64

func (*Application) ProtoMessage

func (*Application) ProtoMessage()

func (*Application) ProtoReflect

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

func (*Application) Reset

func (x *Application) Reset()

func (*Application) String

func (x *Application) String() string

type ApplicationDeploymentReference

type ApplicationDeploymentReference struct {
	DeploymentId string             `protobuf:"bytes,1,opt,name=deployment_id,json=deploymentId,proto3" json:"deployment_id,omitempty"`
	Trigger      *DeploymentTrigger `protobuf:"bytes,2,opt,name=trigger,proto3" json:"trigger,omitempty"`
	Summary      string             `protobuf:"bytes,3,opt,name=summary,proto3" json:"summary,omitempty"`
	Version      string             `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
	StartedAt    int64              `protobuf:"varint,14,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
	CompletedAt  int64              `protobuf:"varint,15,opt,name=completed_at,json=completedAt,proto3" json:"completed_at,omitempty"`
	// contains filtered or unexported fields
}

func (*ApplicationDeploymentReference) Descriptor deprecated

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

Deprecated: Use ApplicationDeploymentReference.ProtoReflect.Descriptor instead.

func (*ApplicationDeploymentReference) GetCompletedAt

func (x *ApplicationDeploymentReference) GetCompletedAt() int64

func (*ApplicationDeploymentReference) GetDeploymentId

func (x *ApplicationDeploymentReference) GetDeploymentId() string

func (*ApplicationDeploymentReference) GetStartedAt

func (x *ApplicationDeploymentReference) GetStartedAt() int64

func (*ApplicationDeploymentReference) GetSummary

func (x *ApplicationDeploymentReference) GetSummary() string

func (*ApplicationDeploymentReference) GetTrigger

func (*ApplicationDeploymentReference) GetVersion

func (x *ApplicationDeploymentReference) GetVersion() string

func (*ApplicationDeploymentReference) ProtoMessage

func (*ApplicationDeploymentReference) ProtoMessage()

func (*ApplicationDeploymentReference) ProtoReflect

func (*ApplicationDeploymentReference) Reset

func (x *ApplicationDeploymentReference) Reset()

func (*ApplicationDeploymentReference) String

type ApplicationGitPath

type ApplicationGitPath struct {

	// The repository that was configured at piped.
	Repo *ApplicationGitRepository `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
	Path string                    `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	// Deprecated: Do not use.
	ConfigPath     string `protobuf:"bytes,3,opt,name=config_path,json=configPath,proto3" json:"config_path,omitempty"`
	ConfigFilename string `protobuf:"bytes,4,opt,name=config_filename,json=configFilename,proto3" json:"config_filename,omitempty"`
	Url            string `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

func (*ApplicationGitPath) Descriptor deprecated

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

Deprecated: Use ApplicationGitPath.ProtoReflect.Descriptor instead.

func (*ApplicationGitPath) GetConfigFilename

func (x *ApplicationGitPath) GetConfigFilename() string

func (*ApplicationGitPath) GetConfigPath deprecated

func (x *ApplicationGitPath) GetConfigPath() string

Deprecated: Do not use.

func (ApplicationGitPath) GetDeploymentConfigFilePath

func (p ApplicationGitPath) GetDeploymentConfigFilePath() string

GetDeploymentConfigFilePath returns the path to deployment configuration file.

func (*ApplicationGitPath) GetPath

func (x *ApplicationGitPath) GetPath() string

func (*ApplicationGitPath) GetRepo

func (*ApplicationGitPath) GetUrl

func (x *ApplicationGitPath) GetUrl() string

func (*ApplicationGitPath) ProtoMessage

func (*ApplicationGitPath) ProtoMessage()

func (*ApplicationGitPath) ProtoReflect

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

func (*ApplicationGitPath) Reset

func (x *ApplicationGitPath) Reset()

func (*ApplicationGitPath) String

func (x *ApplicationGitPath) String() string

type ApplicationGitRepository

type ApplicationGitRepository struct {
	Id     string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Remote string `protobuf:"bytes,2,opt,name=remote,proto3" json:"remote,omitempty"`
	Branch string `protobuf:"bytes,3,opt,name=branch,proto3" json:"branch,omitempty"`
	// contains filtered or unexported fields
}

func (*ApplicationGitRepository) Descriptor deprecated

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

Deprecated: Use ApplicationGitRepository.ProtoReflect.Descriptor instead.

func (*ApplicationGitRepository) GetBranch

func (x *ApplicationGitRepository) GetBranch() string

func (*ApplicationGitRepository) GetId

func (x *ApplicationGitRepository) GetId() string

func (*ApplicationGitRepository) GetRemote

func (x *ApplicationGitRepository) GetRemote() string

func (*ApplicationGitRepository) ProtoMessage

func (*ApplicationGitRepository) ProtoMessage()

func (*ApplicationGitRepository) ProtoReflect

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

func (*ApplicationGitRepository) Reset

func (x *ApplicationGitRepository) Reset()

func (*ApplicationGitRepository) String

func (x *ApplicationGitRepository) String() string

type ApplicationKind

type ApplicationKind int32
const (
	ApplicationKind_KUBERNETES ApplicationKind = 0
	ApplicationKind_TERRAFORM  ApplicationKind = 1
	ApplicationKind_CROSSPLANE ApplicationKind = 2
	ApplicationKind_LAMBDA     ApplicationKind = 3
	ApplicationKind_CLOUDRUN   ApplicationKind = 4
)

func (ApplicationKind) Descriptor

func (ApplicationKind) Enum

func (x ApplicationKind) Enum() *ApplicationKind

func (ApplicationKind) EnumDescriptor deprecated

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

Deprecated: Use ApplicationKind.Descriptor instead.

func (ApplicationKind) Number

func (ApplicationKind) String

func (x ApplicationKind) String() string

func (ApplicationKind) Type

type ApplicationLiveStateSnapshot

type ApplicationLiveStateSnapshot struct {
	ApplicationId string                              `protobuf:"bytes,1,opt,name=application_id,json=applicationId,proto3" json:"application_id,omitempty"`
	EnvId         string                              `protobuf:"bytes,2,opt,name=env_id,json=envId,proto3" json:"env_id,omitempty"`
	PipedId       string                              `protobuf:"bytes,3,opt,name=piped_id,json=pipedId,proto3" json:"piped_id,omitempty"`
	ProjectId     string                              `protobuf:"bytes,4,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	Kind          ApplicationKind                     `protobuf:"varint,5,opt,name=kind,proto3,enum=pipe.model.ApplicationKind" json:"kind,omitempty"`
	HealthStatus  ApplicationLiveStateSnapshot_Status `` /* 150-byte string literal not displayed */
	Kubernetes    *KubernetesApplicationLiveState     `protobuf:"bytes,10,opt,name=kubernetes,proto3" json:"kubernetes,omitempty"`
	Terraform     *TerraformApplicationLiveState      `protobuf:"bytes,11,opt,name=terraform,proto3" json:"terraform,omitempty"`
	Cloudrun      *CloudRunApplicationLiveState       `protobuf:"bytes,12,opt,name=cloudrun,proto3" json:"cloudrun,omitempty"`
	Lambda        *LambdaApplicationLiveState         `protobuf:"bytes,13,opt,name=lambda,proto3" json:"lambda,omitempty"`
	Version       *ApplicationLiveStateVersion        `protobuf:"bytes,15,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

ApplicationLiveStateSnapshot represents the full live state information of an application at a specific timestamp.

func (*ApplicationLiveStateSnapshot) Descriptor deprecated

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

Deprecated: Use ApplicationLiveStateSnapshot.ProtoReflect.Descriptor instead.

func (*ApplicationLiveStateSnapshot) DetermineAppHealthStatus

func (s *ApplicationLiveStateSnapshot) DetermineAppHealthStatus()

DetermineAppHealthStatus updates its own health status, which is determined based on its resources status.

func (*ApplicationLiveStateSnapshot) GetApplicationId

func (x *ApplicationLiveStateSnapshot) GetApplicationId() string

func (*ApplicationLiveStateSnapshot) GetCloudrun

func (*ApplicationLiveStateSnapshot) GetEnvId

func (x *ApplicationLiveStateSnapshot) GetEnvId() string

func (*ApplicationLiveStateSnapshot) GetHealthStatus

func (*ApplicationLiveStateSnapshot) GetKind

func (*ApplicationLiveStateSnapshot) GetKubernetes

func (*ApplicationLiveStateSnapshot) GetLambda

func (*ApplicationLiveStateSnapshot) GetPipedId

func (x *ApplicationLiveStateSnapshot) GetPipedId() string

func (*ApplicationLiveStateSnapshot) GetProjectId

func (x *ApplicationLiveStateSnapshot) GetProjectId() string

func (*ApplicationLiveStateSnapshot) GetTerraform

func (*ApplicationLiveStateSnapshot) GetVersion

func (*ApplicationLiveStateSnapshot) ProtoMessage

func (*ApplicationLiveStateSnapshot) ProtoMessage()

func (*ApplicationLiveStateSnapshot) ProtoReflect

func (*ApplicationLiveStateSnapshot) Reset

func (x *ApplicationLiveStateSnapshot) Reset()

func (*ApplicationLiveStateSnapshot) String

type ApplicationLiveStateSnapshot_Status

type ApplicationLiveStateSnapshot_Status int32
const (
	ApplicationLiveStateSnapshot_UNKNOWN ApplicationLiveStateSnapshot_Status = 0
	ApplicationLiveStateSnapshot_HEALTHY ApplicationLiveStateSnapshot_Status = 1
	ApplicationLiveStateSnapshot_OTHER   ApplicationLiveStateSnapshot_Status = 2
)

func (ApplicationLiveStateSnapshot_Status) Descriptor

func (ApplicationLiveStateSnapshot_Status) Enum

func (ApplicationLiveStateSnapshot_Status) EnumDescriptor deprecated

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

Deprecated: Use ApplicationLiveStateSnapshot_Status.Descriptor instead.

func (ApplicationLiveStateSnapshot_Status) Number

func (ApplicationLiveStateSnapshot_Status) String

func (ApplicationLiveStateSnapshot_Status) Type

type ApplicationLiveStateVersion

type ApplicationLiveStateVersion struct {

	// Timestamp when the snapshot is created.
	Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// Increment number part for the same timestamp.
	Index int64 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
	// contains filtered or unexported fields
}

func (*ApplicationLiveStateVersion) Descriptor deprecated

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

Deprecated: Use ApplicationLiveStateVersion.ProtoReflect.Descriptor instead.

func (*ApplicationLiveStateVersion) GetIndex

func (x *ApplicationLiveStateVersion) GetIndex() int64

func (*ApplicationLiveStateVersion) GetTimestamp

func (x *ApplicationLiveStateVersion) GetTimestamp() int64

func (ApplicationLiveStateVersion) IsBefore

func (*ApplicationLiveStateVersion) ProtoMessage

func (*ApplicationLiveStateVersion) ProtoMessage()

func (*ApplicationLiveStateVersion) ProtoReflect

func (*ApplicationLiveStateVersion) Reset

func (x *ApplicationLiveStateVersion) Reset()

func (*ApplicationLiveStateVersion) String

func (x *ApplicationLiveStateVersion) String() string

type ApplicationSyncState

type ApplicationSyncState struct {
	Status           ApplicationSyncStatus `protobuf:"varint,1,opt,name=status,proto3,enum=pipe.model.ApplicationSyncStatus" json:"status,omitempty"`
	ShortReason      string                `protobuf:"bytes,2,opt,name=short_reason,json=shortReason,proto3" json:"short_reason,omitempty"`
	Reason           string                `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
	HeadDeploymentId string                `protobuf:"bytes,4,opt,name=head_deployment_id,json=headDeploymentId,proto3" json:"head_deployment_id,omitempty"`
	Timestamp        int64                 `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

Current sync state of a specific application. This part is determined by drift detector component of piped.

func (*ApplicationSyncState) Descriptor deprecated

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

Deprecated: Use ApplicationSyncState.ProtoReflect.Descriptor instead.

func (*ApplicationSyncState) GetHeadDeploymentId

func (x *ApplicationSyncState) GetHeadDeploymentId() string

func (*ApplicationSyncState) GetReason

func (x *ApplicationSyncState) GetReason() string

func (*ApplicationSyncState) GetShortReason

func (x *ApplicationSyncState) GetShortReason() string

func (*ApplicationSyncState) GetStatus

func (*ApplicationSyncState) GetTimestamp

func (x *ApplicationSyncState) GetTimestamp() int64

func (ApplicationSyncState) HasChanged

func (s ApplicationSyncState) HasChanged(next ApplicationSyncState) bool

HasChanged checks whether the content of sync state has been changed. This ignores the timestamp value.

func (*ApplicationSyncState) ProtoMessage

func (*ApplicationSyncState) ProtoMessage()

func (*ApplicationSyncState) ProtoReflect

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

func (*ApplicationSyncState) Reset

func (x *ApplicationSyncState) Reset()

func (*ApplicationSyncState) String

func (x *ApplicationSyncState) String() string

type ApplicationSyncStatus

type ApplicationSyncStatus int32

ApplicationSyncStatus represents the current state of syncing the application.

const (
	ApplicationSyncStatus_UNKNOWN     ApplicationSyncStatus = 0
	ApplicationSyncStatus_SYNCED      ApplicationSyncStatus = 1
	ApplicationSyncStatus_DEPLOYING   ApplicationSyncStatus = 2
	ApplicationSyncStatus_OUT_OF_SYNC ApplicationSyncStatus = 3
)

func (ApplicationSyncStatus) Descriptor

func (ApplicationSyncStatus) Enum

func (ApplicationSyncStatus) EnumDescriptor deprecated

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

Deprecated: Use ApplicationSyncStatus.Descriptor instead.

func (ApplicationSyncStatus) Number

func (ApplicationSyncStatus) String

func (x ApplicationSyncStatus) String() string

func (ApplicationSyncStatus) Type

type CloudProviderType

type CloudProviderType string
const (
	CloudProviderKubernetes CloudProviderType = "KUBERNETES"
	CloudProviderTerraform  CloudProviderType = "TERRAFORM"
	CloudProviderCloudRun   CloudProviderType = "CLOUDRUN"
	CloudProviderLambda     CloudProviderType = "LAMBDA"
)

func (CloudProviderType) String

func (t CloudProviderType) String() string

type CloudRunApplicationLiveState

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

func (*CloudRunApplicationLiveState) Descriptor deprecated

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

Deprecated: Use CloudRunApplicationLiveState.ProtoReflect.Descriptor instead.

func (*CloudRunApplicationLiveState) ProtoMessage

func (*CloudRunApplicationLiveState) ProtoMessage()

func (*CloudRunApplicationLiveState) ProtoReflect

func (*CloudRunApplicationLiveState) Reset

func (x *CloudRunApplicationLiveState) Reset()

func (*CloudRunApplicationLiveState) String

type Command

type Command struct {

	// The generated unique identifier.
	Id                      string                           `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	PipedId                 string                           `protobuf:"bytes,2,opt,name=piped_id,json=pipedId,proto3" json:"piped_id,omitempty"`
	ApplicationId           string                           `protobuf:"bytes,3,opt,name=application_id,json=applicationId,proto3" json:"application_id,omitempty"`
	DeploymentId            string                           `protobuf:"bytes,4,opt,name=deployment_id,json=deploymentId,proto3" json:"deployment_id,omitempty"`
	StageId                 string                           `protobuf:"bytes,5,opt,name=stage_id,json=stageId,proto3" json:"stage_id,omitempty"`
	Commander               string                           `protobuf:"bytes,6,opt,name=commander,proto3" json:"commander,omitempty"`
	Status                  CommandStatus                    `protobuf:"varint,20,opt,name=status,proto3,enum=pipe.model.CommandStatus" json:"status,omitempty"`
	Metadata                map[string]string                `` /* 158-byte string literal not displayed */
	HandledAt               int64                            `protobuf:"varint,22,opt,name=handled_at,json=handledAt,proto3" json:"handled_at,omitempty"`
	Type                    Command_Type                     `protobuf:"varint,30,opt,name=type,proto3,enum=pipe.model.Command_Type" json:"type,omitempty"`
	SyncApplication         *Command_SyncApplication         `protobuf:"bytes,31,opt,name=sync_application,json=syncApplication,proto3" json:"sync_application,omitempty"`
	UpdateApplicationConfig *Command_UpdateApplicationConfig `` /* 133-byte string literal not displayed */
	CancelDeployment        *Command_CancelDeployment        `protobuf:"bytes,33,opt,name=cancel_deployment,json=cancelDeployment,proto3" json:"cancel_deployment,omitempty"`
	ApproveStage            *Command_ApproveStage            `protobuf:"bytes,34,opt,name=approve_stage,json=approveStage,proto3" json:"approve_stage,omitempty"`
	CreatedAt               int64                            `protobuf:"varint,100,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt               int64                            `protobuf:"varint,101,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Command) Descriptor deprecated

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

Deprecated: Use Command.ProtoReflect.Descriptor instead.

func (*Command) GetApplicationId

func (x *Command) GetApplicationId() string

func (*Command) GetApproveStage

func (x *Command) GetApproveStage() *Command_ApproveStage

func (*Command) GetCancelDeployment

func (x *Command) GetCancelDeployment() *Command_CancelDeployment

func (*Command) GetCommander

func (x *Command) GetCommander() string

func (*Command) GetCreatedAt

func (x *Command) GetCreatedAt() int64

func (*Command) GetDeploymentId

func (x *Command) GetDeploymentId() string

func (*Command) GetHandledAt

func (x *Command) GetHandledAt() int64

func (*Command) GetId

func (x *Command) GetId() string

func (*Command) GetMetadata

func (x *Command) GetMetadata() map[string]string

func (*Command) GetPipedId

func (x *Command) GetPipedId() string

func (*Command) GetStageId

func (x *Command) GetStageId() string

func (*Command) GetStatus

func (x *Command) GetStatus() CommandStatus

func (*Command) GetSyncApplication

func (x *Command) GetSyncApplication() *Command_SyncApplication

func (*Command) GetType

func (x *Command) GetType() Command_Type

func (*Command) GetUpdateApplicationConfig

func (x *Command) GetUpdateApplicationConfig() *Command_UpdateApplicationConfig

func (*Command) GetUpdatedAt

func (x *Command) GetUpdatedAt() int64

func (*Command) ProtoMessage

func (*Command) ProtoMessage()

func (*Command) ProtoReflect

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

func (*Command) Reset

func (x *Command) Reset()

func (*Command) String

func (x *Command) String() string

type CommandStatus

type CommandStatus int32
const (
	CommandStatus_COMMAND_NOT_HANDLED_YET CommandStatus = 0
	CommandStatus_COMMAND_SUCCEEDED       CommandStatus = 1
	CommandStatus_COMMAND_FAILED          CommandStatus = 2
	CommandStatus_COMMAND_TIMEOUT         CommandStatus = 3
)

func (CommandStatus) Descriptor

func (CommandStatus) Enum

func (x CommandStatus) Enum() *CommandStatus

func (CommandStatus) EnumDescriptor deprecated

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

Deprecated: Use CommandStatus.Descriptor instead.

func (CommandStatus) Number

func (CommandStatus) String

func (x CommandStatus) String() string

func (CommandStatus) Type

type Command_ApproveStage

type Command_ApproveStage struct {
	DeploymentId string `protobuf:"bytes,1,opt,name=deployment_id,json=deploymentId,proto3" json:"deployment_id,omitempty"`
	StageId      string `protobuf:"bytes,2,opt,name=stage_id,json=stageId,proto3" json:"stage_id,omitempty"`
	// contains filtered or unexported fields
}

func (*Command_ApproveStage) Descriptor deprecated

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

Deprecated: Use Command_ApproveStage.ProtoReflect.Descriptor instead.

func (*Command_ApproveStage) GetDeploymentId

func (x *Command_ApproveStage) GetDeploymentId() string

func (*Command_ApproveStage) GetStageId

func (x *Command_ApproveStage) GetStageId() string

func (*Command_ApproveStage) ProtoMessage

func (*Command_ApproveStage) ProtoMessage()

func (*Command_ApproveStage) ProtoReflect

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

func (*Command_ApproveStage) Reset

func (x *Command_ApproveStage) Reset()

func (*Command_ApproveStage) String

func (x *Command_ApproveStage) String() string

type Command_CancelDeployment

type Command_CancelDeployment struct {
	DeploymentId    string `protobuf:"bytes,1,opt,name=deployment_id,json=deploymentId,proto3" json:"deployment_id,omitempty"`
	ForceRollback   bool   `protobuf:"varint,2,opt,name=force_rollback,json=forceRollback,proto3" json:"force_rollback,omitempty"`
	ForceNoRollback bool   `protobuf:"varint,3,opt,name=force_no_rollback,json=forceNoRollback,proto3" json:"force_no_rollback,omitempty"`
	// contains filtered or unexported fields
}

func (*Command_CancelDeployment) Descriptor deprecated

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

Deprecated: Use Command_CancelDeployment.ProtoReflect.Descriptor instead.

func (*Command_CancelDeployment) GetDeploymentId

func (x *Command_CancelDeployment) GetDeploymentId() string

func (*Command_CancelDeployment) GetForceNoRollback

func (x *Command_CancelDeployment) GetForceNoRollback() bool

func (*Command_CancelDeployment) GetForceRollback

func (x *Command_CancelDeployment) GetForceRollback() bool

func (*Command_CancelDeployment) ProtoMessage

func (*Command_CancelDeployment) ProtoMessage()

func (*Command_CancelDeployment) ProtoReflect

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

func (*Command_CancelDeployment) Reset

func (x *Command_CancelDeployment) Reset()

func (*Command_CancelDeployment) String

func (x *Command_CancelDeployment) String() string

type Command_SyncApplication

type Command_SyncApplication struct {
	ApplicationId string `protobuf:"bytes,1,opt,name=application_id,json=applicationId,proto3" json:"application_id,omitempty"`
	// contains filtered or unexported fields
}

func (*Command_SyncApplication) Descriptor deprecated

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

Deprecated: Use Command_SyncApplication.ProtoReflect.Descriptor instead.

func (*Command_SyncApplication) GetApplicationId

func (x *Command_SyncApplication) GetApplicationId() string

func (*Command_SyncApplication) ProtoMessage

func (*Command_SyncApplication) ProtoMessage()

func (*Command_SyncApplication) ProtoReflect

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

func (*Command_SyncApplication) Reset

func (x *Command_SyncApplication) Reset()

func (*Command_SyncApplication) String

func (x *Command_SyncApplication) String() string

type Command_Type

type Command_Type int32
const (
	Command_SYNC_APPLICATION          Command_Type = 0
	Command_UPDATE_APPLICATION_CONFIG Command_Type = 1
	Command_CANCEL_DEPLOYMENT         Command_Type = 2
	Command_APPROVE_STAGE             Command_Type = 3
)

func (Command_Type) Descriptor

func (Command_Type) Enum

func (x Command_Type) Enum() *Command_Type

func (Command_Type) EnumDescriptor deprecated

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

Deprecated: Use Command_Type.Descriptor instead.

func (Command_Type) Number

func (Command_Type) String

func (x Command_Type) String() string

func (Command_Type) Type

type Command_UpdateApplicationConfig

type Command_UpdateApplicationConfig struct {
	ApplicationId string `protobuf:"bytes,1,opt,name=application_id,json=applicationId,proto3" json:"application_id,omitempty"`
	ConfigPath    string `protobuf:"bytes,2,opt,name=config_path,json=configPath,proto3" json:"config_path,omitempty"`
	Config        string `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"`
	// contains filtered or unexported fields
}

func (*Command_UpdateApplicationConfig) Descriptor deprecated

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

Deprecated: Use Command_UpdateApplicationConfig.ProtoReflect.Descriptor instead.

func (*Command_UpdateApplicationConfig) GetApplicationId

func (x *Command_UpdateApplicationConfig) GetApplicationId() string

func (*Command_UpdateApplicationConfig) GetConfig

func (x *Command_UpdateApplicationConfig) GetConfig() string

func (*Command_UpdateApplicationConfig) GetConfigPath

func (x *Command_UpdateApplicationConfig) GetConfigPath() string

func (*Command_UpdateApplicationConfig) ProtoMessage

func (*Command_UpdateApplicationConfig) ProtoMessage()

func (*Command_UpdateApplicationConfig) ProtoReflect

func (*Command_UpdateApplicationConfig) Reset

func (*Command_UpdateApplicationConfig) String

type Commit

type Commit struct {
	Hash        string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	Message     string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Author      string `protobuf:"bytes,3,opt,name=author,proto3" json:"author,omitempty"`
	Branch      string `protobuf:"bytes,4,opt,name=branch,proto3" json:"branch,omitempty"`
	PullRequest int64  `protobuf:"varint,5,opt,name=pull_request,json=pullRequest,proto3" json:"pull_request,omitempty"`
	Url         string `protobuf:"bytes,6,opt,name=url,proto3" json:"url,omitempty"`
	CreatedAt   int64  `protobuf:"varint,14,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Commit) Descriptor deprecated

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

Deprecated: Use Commit.ProtoReflect.Descriptor instead.

func (*Commit) GetAuthor

func (x *Commit) GetAuthor() string

func (*Commit) GetBranch

func (x *Commit) GetBranch() string

func (*Commit) GetCreatedAt

func (x *Commit) GetCreatedAt() int64

func (*Commit) GetHash

func (x *Commit) GetHash() string

func (*Commit) GetMessage

func (x *Commit) GetMessage() string

func (*Commit) GetPullRequest

func (x *Commit) GetPullRequest() int64

func (*Commit) GetUrl

func (x *Commit) GetUrl() string

func (*Commit) ProtoMessage

func (*Commit) ProtoMessage()

func (*Commit) ProtoReflect

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

func (*Commit) Reset

func (x *Commit) Reset()

func (*Commit) String

func (x *Commit) String() string

type DataStoreType

type DataStoreType string
const (
	DataStoreFirestore DataStoreType = "FIRESTORE"
	DataStoreDynamoDB  DataStoreType = "DYNAMODB"
	DataStoreMongoDB   DataStoreType = "MONGODB"
)

func (DataStoreType) String

func (t DataStoreType) String() string

type Deployment

type Deployment struct {

	// The generated unique identifier.
	Id              string              `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	ApplicationId   string              `protobuf:"bytes,2,opt,name=application_id,json=applicationId,proto3" json:"application_id,omitempty"`
	ApplicationName string              `protobuf:"bytes,3,opt,name=application_name,json=applicationName,proto3" json:"application_name,omitempty"`
	EnvId           string              `protobuf:"bytes,4,opt,name=env_id,json=envId,proto3" json:"env_id,omitempty"`
	PipedId         string              `protobuf:"bytes,5,opt,name=piped_id,json=pipedId,proto3" json:"piped_id,omitempty"`
	ProjectId       string              `protobuf:"bytes,6,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	Kind            ApplicationKind     `protobuf:"varint,7,opt,name=kind,proto3,enum=pipe.model.ApplicationKind" json:"kind,omitempty"`
	GitPath         *ApplicationGitPath `protobuf:"bytes,8,opt,name=git_path,json=gitPath,proto3" json:"git_path,omitempty"`
	// The name of cloud provider where to deploy this application.
	// This must be one of the provider names registered in the piped.
	CloudProvider string             `protobuf:"bytes,9,opt,name=cloud_provider,json=cloudProvider,proto3" json:"cloud_provider,omitempty"`
	Trigger       *DeploymentTrigger `protobuf:"bytes,20,opt,name=trigger,proto3" json:"trigger,omitempty"`
	// Hash value of the most recently successfully deployed commit.
	RunningCommitHash string `protobuf:"bytes,21,opt,name=running_commit_hash,json=runningCommitHash,proto3" json:"running_commit_hash,omitempty"`
	// Simple description about what this deployment does.
	// e.g. Scale from 10 to 100 replicas.
	// e.g. Update image from v1.5.0 to v1.6.0.
	Summary string           `protobuf:"bytes,22,opt,name=summary,proto3" json:"summary,omitempty"`
	Version string           `protobuf:"bytes,23,opt,name=version,proto3" json:"version,omitempty"`
	Status  DeploymentStatus `protobuf:"varint,30,opt,name=status,proto3,enum=pipe.model.DeploymentStatus" json:"status,omitempty"`
	// The human-readable description why the deployment is at current status.
	StatusReason string            `protobuf:"bytes,31,opt,name=status_reason,json=statusReason,proto3" json:"status_reason,omitempty"`
	Stages       []*PipelineStage  `protobuf:"bytes,32,rep,name=stages,proto3" json:"stages,omitempty"`
	Metadata     map[string]string `` /* 158-byte string literal not displayed */
	CompletedAt  int64             `protobuf:"varint,100,opt,name=completed_at,json=completedAt,proto3" json:"completed_at,omitempty"`
	CreatedAt    int64             `protobuf:"varint,101,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt    int64             `protobuf:"varint,102,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

Deployment represents a particular deployment for an application. When a new deployment can be created: - New commit was added and it mades a change on application configuration. - User clicked on Sync button at application web page. - Promoted from another enviroment.

func (*Deployment) Clone

func (d *Deployment) Clone() *Deployment

Clone returns a deep copy of the deployment.

func (*Deployment) CloudProviderType

func (d *Deployment) CloudProviderType() CloudProviderType

CloudProviderType determines the cloud provider type from application kind.

func (*Deployment) CommitHash

func (d *Deployment) CommitHash() string

CommitHash returns the hash value of trigger commit.

func (*Deployment) Descriptor deprecated

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

Deprecated: Use Deployment.ProtoReflect.Descriptor instead.

func (*Deployment) FindRollbackStage

func (d *Deployment) FindRollbackStage() (*PipelineStage, bool)

FindRollbackStage finds the rollback stage in stage list.

func (*Deployment) GetApplicationId

func (x *Deployment) GetApplicationId() string

func (*Deployment) GetApplicationName

func (x *Deployment) GetApplicationName() string

func (*Deployment) GetCloudProvider

func (x *Deployment) GetCloudProvider() string

func (*Deployment) GetCompletedAt

func (x *Deployment) GetCompletedAt() int64

func (*Deployment) GetCreatedAt

func (x *Deployment) GetCreatedAt() int64

func (*Deployment) GetEnvId

func (x *Deployment) GetEnvId() string

func (*Deployment) GetGitPath

func (x *Deployment) GetGitPath() *ApplicationGitPath

func (*Deployment) GetId

func (x *Deployment) GetId() string

func (*Deployment) GetKind

func (x *Deployment) GetKind() ApplicationKind

func (*Deployment) GetMetadata

func (x *Deployment) GetMetadata() map[string]string

func (*Deployment) GetPipedId

func (x *Deployment) GetPipedId() string

func (*Deployment) GetProjectId

func (x *Deployment) GetProjectId() string

func (*Deployment) GetRunningCommitHash

func (x *Deployment) GetRunningCommitHash() string

func (*Deployment) GetStages

func (x *Deployment) GetStages() []*PipelineStage

func (*Deployment) GetStatus

func (x *Deployment) GetStatus() DeploymentStatus

func (*Deployment) GetStatusReason

func (x *Deployment) GetStatusReason() string

func (*Deployment) GetSummary

func (x *Deployment) GetSummary() string

func (*Deployment) GetTrigger

func (x *Deployment) GetTrigger() *DeploymentTrigger

func (*Deployment) GetUpdatedAt

func (x *Deployment) GetUpdatedAt() int64

func (*Deployment) GetVersion

func (x *Deployment) GetVersion() 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) StageStatusMap

func (d *Deployment) StageStatusMap() map[string]StageStatus

StageStatusMap returns the map from id to status of all stages.

func (*Deployment) String

func (x *Deployment) String() string

func (*Deployment) TriggerBefore

func (d *Deployment) TriggerBefore(other *Deployment) bool

TriggerBefore reports whether the deployment is triggered before the given one.

func (*Deployment) TriggeredBy

func (d *Deployment) TriggeredBy() string

type DeploymentStatus

type DeploymentStatus int32

DeploymentStatus represents the current status of a deployment.

const (
	// DEPLOYMENT_PENDING means the deployment has just been triggered but still in the queue.
	// The stages for generated at this time are just temporary and not fixed.
	DeploymentStatus_DEPLOYMENT_PENDING DeploymentStatus = 0
	// DEPLOYMENT_PLANNED means the deployment has just been decided the running pipeline.
	// At this time, the stages are fixed and not changed later.
	DeploymentStatus_DEPLOYMENT_PLANNED DeploymentStatus = 1
	// DEPLOYMENT_RUNNING means the controller is controlling this deployment.
	DeploymentStatus_DEPLOYMENT_RUNNING DeploymentStatus = 2
	// DEPLOYMENT_ROLLING_BACK means the controller is rolling back this deployment.
	DeploymentStatus_DEPLOYMENT_ROLLING_BACK DeploymentStatus = 3
	// DEPLOYMENT_SUCCESS means the deployment was completed successfully.
	DeploymentStatus_DEPLOYMENT_SUCCESS DeploymentStatus = 4
	// DEPLOYMENT_FAILURE means the deployment was completed with a failure.
	DeploymentStatus_DEPLOYMENT_FAILURE DeploymentStatus = 5
	// DEPLOYMENT_CANCELLED means the deployment was cancelled by someone.
	DeploymentStatus_DEPLOYMENT_CANCELLED DeploymentStatus = 6
)

func GetNotCompletedDeploymentStatuses

func GetNotCompletedDeploymentStatuses() []DeploymentStatus

GetNotCompletedDeploymentStatuses returns DeploymentStatus slice that is not completed.

func (DeploymentStatus) Descriptor

func (DeploymentStatus) Enum

func (DeploymentStatus) EnumDescriptor deprecated

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

Deprecated: Use DeploymentStatus.Descriptor instead.

func (DeploymentStatus) Number

func (DeploymentStatus) String

func (x DeploymentStatus) String() string

func (DeploymentStatus) Type

type DeploymentTrigger

type DeploymentTrigger struct {
	Commit *Commit `protobuf:"bytes,1,opt,name=commit,proto3" json:"commit,omitempty"`
	// Who triggered this deployment via web page.
	Commander string `protobuf:"bytes,2,opt,name=commander,proto3" json:"commander,omitempty"`
	Timestamp int64  `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*DeploymentTrigger) Descriptor deprecated

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

Deprecated: Use DeploymentTrigger.ProtoReflect.Descriptor instead.

func (*DeploymentTrigger) GetCommander

func (x *DeploymentTrigger) GetCommander() string

func (*DeploymentTrigger) GetCommit

func (x *DeploymentTrigger) GetCommit() *Commit

func (*DeploymentTrigger) GetTimestamp

func (x *DeploymentTrigger) GetTimestamp() int64

func (*DeploymentTrigger) ProtoMessage

func (*DeploymentTrigger) ProtoMessage()

func (*DeploymentTrigger) ProtoReflect

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

func (*DeploymentTrigger) Reset

func (x *DeploymentTrigger) Reset()

func (*DeploymentTrigger) String

func (x *DeploymentTrigger) String() string

type Environment

type Environment struct {

	// The generated unique identifier.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The name of the environment. e.g. dev, stg, prod.
	// This field is not changeable.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// The additional description about the environment.
	Desc string `protobuf:"bytes,3,opt,name=desc,proto3" json:"desc,omitempty"`
	// The ID of the project this enviroment belongs to.
	ProjectId string `protobuf:"bytes,4,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// Unix time when the enviroment is created.
	CreatedAt int64 `protobuf:"varint,14,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Unix time of the last time when the environment is updated.
	UpdatedAt int64 `protobuf:"varint,15,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Environment) Descriptor deprecated

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

Deprecated: Use Environment.ProtoReflect.Descriptor instead.

func (*Environment) GetCreatedAt

func (x *Environment) GetCreatedAt() int64

func (*Environment) GetDesc

func (x *Environment) GetDesc() string

func (*Environment) GetId

func (x *Environment) GetId() string

func (*Environment) GetName

func (x *Environment) GetName() string

func (*Environment) GetProjectId

func (x *Environment) GetProjectId() string

func (*Environment) GetUpdatedAt

func (x *Environment) GetUpdatedAt() int64

func (*Environment) ProtoMessage

func (*Environment) ProtoMessage()

func (*Environment) ProtoReflect

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

func (*Environment) Reset

func (x *Environment) Reset()

func (*Environment) String

func (x *Environment) String() string

type Event

type Event struct {
	Type     EventType
	Metadata interface{}
}

func (Event) Group

func (e Event) Group() EventGroup

type EventApplicationOutOfSync

type EventApplicationOutOfSync struct {
	Application *Application          `protobuf:"bytes,1,opt,name=application,proto3" json:"application,omitempty"`
	EnvName     string                `protobuf:"bytes,2,opt,name=env_name,json=envName,proto3" json:"env_name,omitempty"`
	State       *ApplicationSyncState `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (*EventApplicationOutOfSync) Descriptor deprecated

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

Deprecated: Use EventApplicationOutOfSync.ProtoReflect.Descriptor instead.

func (*EventApplicationOutOfSync) GetAppName

func (e *EventApplicationOutOfSync) GetAppName() string

func (*EventApplicationOutOfSync) GetApplication

func (x *EventApplicationOutOfSync) GetApplication() *Application

func (*EventApplicationOutOfSync) GetEnvName

func (x *EventApplicationOutOfSync) GetEnvName() string

func (*EventApplicationOutOfSync) GetState

func (*EventApplicationOutOfSync) ProtoMessage

func (*EventApplicationOutOfSync) ProtoMessage()

func (*EventApplicationOutOfSync) ProtoReflect

func (*EventApplicationOutOfSync) Reset

func (x *EventApplicationOutOfSync) Reset()

func (*EventApplicationOutOfSync) String

func (x *EventApplicationOutOfSync) String() string

type EventApplicationSynced

type EventApplicationSynced struct {
	Application *Application          `protobuf:"bytes,1,opt,name=application,proto3" json:"application,omitempty"`
	EnvName     string                `protobuf:"bytes,2,opt,name=env_name,json=envName,proto3" json:"env_name,omitempty"`
	State       *ApplicationSyncState `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (*EventApplicationSynced) Descriptor deprecated

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

Deprecated: Use EventApplicationSynced.ProtoReflect.Descriptor instead.

func (*EventApplicationSynced) GetAppName

func (e *EventApplicationSynced) GetAppName() string

func (*EventApplicationSynced) GetApplication

func (x *EventApplicationSynced) GetApplication() *Application

func (*EventApplicationSynced) GetEnvName

func (x *EventApplicationSynced) GetEnvName() string

func (*EventApplicationSynced) GetState

func (*EventApplicationSynced) ProtoMessage

func (*EventApplicationSynced) ProtoMessage()

func (*EventApplicationSynced) ProtoReflect

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

func (*EventApplicationSynced) Reset

func (x *EventApplicationSynced) Reset()

func (*EventApplicationSynced) String

func (x *EventApplicationSynced) String() string

type EventDeploymentApproved

type EventDeploymentApproved struct {
	Deployment *Deployment `protobuf:"bytes,1,opt,name=deployment,proto3" json:"deployment,omitempty"`
	EnvName    string      `protobuf:"bytes,2,opt,name=env_name,json=envName,proto3" json:"env_name,omitempty"`
	Approver   string      `protobuf:"bytes,3,opt,name=approver,proto3" json:"approver,omitempty"`
	// contains filtered or unexported fields
}

func (*EventDeploymentApproved) Descriptor deprecated

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

Deprecated: Use EventDeploymentApproved.ProtoReflect.Descriptor instead.

func (*EventDeploymentApproved) GetAppName

func (e *EventDeploymentApproved) GetAppName() string

func (*EventDeploymentApproved) GetApprover

func (x *EventDeploymentApproved) GetApprover() string

func (*EventDeploymentApproved) GetDeployment

func (x *EventDeploymentApproved) GetDeployment() *Deployment

func (*EventDeploymentApproved) GetEnvName

func (x *EventDeploymentApproved) GetEnvName() string

func (*EventDeploymentApproved) ProtoMessage

func (*EventDeploymentApproved) ProtoMessage()

func (*EventDeploymentApproved) ProtoReflect

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

func (*EventDeploymentApproved) Reset

func (x *EventDeploymentApproved) Reset()

func (*EventDeploymentApproved) String

func (x *EventDeploymentApproved) String() string

type EventDeploymentCancelled

type EventDeploymentCancelled struct {
	Deployment *Deployment `protobuf:"bytes,1,opt,name=deployment,proto3" json:"deployment,omitempty"`
	EnvName    string      `protobuf:"bytes,2,opt,name=env_name,json=envName,proto3" json:"env_name,omitempty"`
	Commander  string      `protobuf:"bytes,3,opt,name=commander,proto3" json:"commander,omitempty"`
	// contains filtered or unexported fields
}

func (*EventDeploymentCancelled) Descriptor deprecated

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

Deprecated: Use EventDeploymentCancelled.ProtoReflect.Descriptor instead.

func (*EventDeploymentCancelled) GetCommander

func (x *EventDeploymentCancelled) GetCommander() string

func (*EventDeploymentCancelled) GetDeployment

func (x *EventDeploymentCancelled) GetDeployment() *Deployment

func (*EventDeploymentCancelled) GetEnvName

func (x *EventDeploymentCancelled) GetEnvName() string

func (*EventDeploymentCancelled) ProtoMessage

func (*EventDeploymentCancelled) ProtoMessage()

func (*EventDeploymentCancelled) ProtoReflect

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

func (*EventDeploymentCancelled) Reset

func (x *EventDeploymentCancelled) Reset()

func (*EventDeploymentCancelled) String

func (x *EventDeploymentCancelled) String() string

type EventDeploymentFailed

type EventDeploymentFailed struct {
	Deployment *Deployment `protobuf:"bytes,1,opt,name=deployment,proto3" json:"deployment,omitempty"`
	EnvName    string      `protobuf:"bytes,2,opt,name=env_name,json=envName,proto3" json:"env_name,omitempty"`
	Reason     string      `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
	// contains filtered or unexported fields
}

func (*EventDeploymentFailed) Descriptor deprecated

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

Deprecated: Use EventDeploymentFailed.ProtoReflect.Descriptor instead.

func (*EventDeploymentFailed) GetAppName

func (e *EventDeploymentFailed) GetAppName() string

func (*EventDeploymentFailed) GetDeployment

func (x *EventDeploymentFailed) GetDeployment() *Deployment

func (*EventDeploymentFailed) GetEnvName

func (x *EventDeploymentFailed) GetEnvName() string

func (*EventDeploymentFailed) GetReason

func (x *EventDeploymentFailed) GetReason() string

func (*EventDeploymentFailed) ProtoMessage

func (*EventDeploymentFailed) ProtoMessage()

func (*EventDeploymentFailed) ProtoReflect

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

func (*EventDeploymentFailed) Reset

func (x *EventDeploymentFailed) Reset()

func (*EventDeploymentFailed) String

func (x *EventDeploymentFailed) String() string

type EventDeploymentPlanned

type EventDeploymentPlanned struct {
	Deployment *Deployment `protobuf:"bytes,1,opt,name=deployment,proto3" json:"deployment,omitempty"`
	EnvName    string      `protobuf:"bytes,2,opt,name=env_name,json=envName,proto3" json:"env_name,omitempty"`
	Summary    string      `protobuf:"bytes,3,opt,name=summary,proto3" json:"summary,omitempty"`
	// contains filtered or unexported fields
}

func (*EventDeploymentPlanned) Descriptor deprecated

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

Deprecated: Use EventDeploymentPlanned.ProtoReflect.Descriptor instead.

func (*EventDeploymentPlanned) GetAppName

func (e *EventDeploymentPlanned) GetAppName() string

func (*EventDeploymentPlanned) GetDeployment

func (x *EventDeploymentPlanned) GetDeployment() *Deployment

func (*EventDeploymentPlanned) GetEnvName

func (x *EventDeploymentPlanned) GetEnvName() string

func (*EventDeploymentPlanned) GetSummary

func (x *EventDeploymentPlanned) GetSummary() string

func (*EventDeploymentPlanned) ProtoMessage

func (*EventDeploymentPlanned) ProtoMessage()

func (*EventDeploymentPlanned) ProtoReflect

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

func (*EventDeploymentPlanned) Reset

func (x *EventDeploymentPlanned) Reset()

func (*EventDeploymentPlanned) String

func (x *EventDeploymentPlanned) String() string

type EventDeploymentRollingBack

type EventDeploymentRollingBack struct {
	Deployment *Deployment `protobuf:"bytes,1,opt,name=deployment,proto3" json:"deployment,omitempty"`
	EnvName    string      `protobuf:"bytes,2,opt,name=env_name,json=envName,proto3" json:"env_name,omitempty"`
	// contains filtered or unexported fields
}

func (*EventDeploymentRollingBack) Descriptor deprecated

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

Deprecated: Use EventDeploymentRollingBack.ProtoReflect.Descriptor instead.

func (*EventDeploymentRollingBack) GetAppName

func (e *EventDeploymentRollingBack) GetAppName() string

func (*EventDeploymentRollingBack) GetDeployment

func (x *EventDeploymentRollingBack) GetDeployment() *Deployment

func (*EventDeploymentRollingBack) GetEnvName

func (x *EventDeploymentRollingBack) GetEnvName() string

func (*EventDeploymentRollingBack) ProtoMessage

func (*EventDeploymentRollingBack) ProtoMessage()

func (*EventDeploymentRollingBack) ProtoReflect

func (*EventDeploymentRollingBack) Reset

func (x *EventDeploymentRollingBack) Reset()

func (*EventDeploymentRollingBack) String

func (x *EventDeploymentRollingBack) String() string

type EventDeploymentSucceeded

type EventDeploymentSucceeded struct {
	Deployment *Deployment `protobuf:"bytes,1,opt,name=deployment,proto3" json:"deployment,omitempty"`
	EnvName    string      `protobuf:"bytes,2,opt,name=env_name,json=envName,proto3" json:"env_name,omitempty"`
	// contains filtered or unexported fields
}

func (*EventDeploymentSucceeded) Descriptor deprecated

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

Deprecated: Use EventDeploymentSucceeded.ProtoReflect.Descriptor instead.

func (*EventDeploymentSucceeded) GetAppName

func (e *EventDeploymentSucceeded) GetAppName() string

func (*EventDeploymentSucceeded) GetDeployment

func (x *EventDeploymentSucceeded) GetDeployment() *Deployment

func (*EventDeploymentSucceeded) GetEnvName

func (x *EventDeploymentSucceeded) GetEnvName() string

func (*EventDeploymentSucceeded) ProtoMessage

func (*EventDeploymentSucceeded) ProtoMessage()

func (*EventDeploymentSucceeded) ProtoReflect

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

func (*EventDeploymentSucceeded) Reset

func (x *EventDeploymentSucceeded) Reset()

func (*EventDeploymentSucceeded) String

func (x *EventDeploymentSucceeded) String() string

type EventDeploymentTriggered

type EventDeploymentTriggered struct {
	Deployment *Deployment `protobuf:"bytes,1,opt,name=deployment,proto3" json:"deployment,omitempty"`
	EnvName    string      `protobuf:"bytes,2,opt,name=env_name,json=envName,proto3" json:"env_name,omitempty"`
	// contains filtered or unexported fields
}

func (*EventDeploymentTriggered) Descriptor deprecated

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

Deprecated: Use EventDeploymentTriggered.ProtoReflect.Descriptor instead.

func (*EventDeploymentTriggered) GetAppName

func (e *EventDeploymentTriggered) GetAppName() string

func (*EventDeploymentTriggered) GetDeployment

func (x *EventDeploymentTriggered) GetDeployment() *Deployment

func (*EventDeploymentTriggered) GetEnvName

func (x *EventDeploymentTriggered) GetEnvName() string

func (*EventDeploymentTriggered) ProtoMessage

func (*EventDeploymentTriggered) ProtoMessage()

func (*EventDeploymentTriggered) ProtoReflect

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

func (*EventDeploymentTriggered) Reset

func (x *EventDeploymentTriggered) Reset()

func (*EventDeploymentTriggered) String

func (x *EventDeploymentTriggered) String() string

type EventGroup

type EventGroup int32
const (
	EventGroup_EVENT_NONE               EventGroup = 0
	EventGroup_EVENT_DEPLOYMENT         EventGroup = 1
	EventGroup_EVENT_APPLICATION_SYNC   EventGroup = 2
	EventGroup_EVENT_APPLICATION_HEALTH EventGroup = 3
	EventGroup_EVENT_PIPED              EventGroup = 4
)

func (EventGroup) Descriptor

func (EventGroup) Descriptor() protoreflect.EnumDescriptor

func (EventGroup) Enum

func (x EventGroup) Enum() *EventGroup

func (EventGroup) EnumDescriptor deprecated

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

Deprecated: Use EventGroup.Descriptor instead.

func (EventGroup) Number

func (x EventGroup) Number() protoreflect.EnumNumber

func (EventGroup) String

func (x EventGroup) String() string

func (EventGroup) Type

type EventPipedStarted

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

func (*EventPipedStarted) Descriptor deprecated

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

Deprecated: Use EventPipedStarted.ProtoReflect.Descriptor instead.

func (*EventPipedStarted) GetId

func (x *EventPipedStarted) GetId() string

func (*EventPipedStarted) GetVersion

func (x *EventPipedStarted) GetVersion() string

func (*EventPipedStarted) ProtoMessage

func (*EventPipedStarted) ProtoMessage()

func (*EventPipedStarted) ProtoReflect

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

func (*EventPipedStarted) Reset

func (x *EventPipedStarted) Reset()

func (*EventPipedStarted) String

func (x *EventPipedStarted) String() string

type EventPipedStopped

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

func (*EventPipedStopped) Descriptor deprecated

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

Deprecated: Use EventPipedStopped.ProtoReflect.Descriptor instead.

func (*EventPipedStopped) GetId

func (x *EventPipedStopped) GetId() string

func (*EventPipedStopped) GetVersion

func (x *EventPipedStopped) GetVersion() string

func (*EventPipedStopped) ProtoMessage

func (*EventPipedStopped) ProtoMessage()

func (*EventPipedStopped) ProtoReflect

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

func (*EventPipedStopped) Reset

func (x *EventPipedStopped) Reset()

func (*EventPipedStopped) String

func (x *EventPipedStopped) String() string

type EventType

type EventType int32
const (
	EventType_EVENT_DEPLOYMENT_TRIGGERED    EventType = 0
	EventType_EVENT_DEPLOYMENT_PLANNED      EventType = 1
	EventType_EVENT_DEPLOYMENT_APPROVED     EventType = 2
	EventType_EVENT_DEPLOYMENT_ROLLING_BACK EventType = 3
	EventType_EVENT_DEPLOYMENT_SUCCEEDED    EventType = 4
	EventType_EVENT_DEPLOYMENT_FAILED       EventType = 5
	EventType_EVENT_DEPLOYMENT_CANCELLED    EventType = 6
	EventType_EVENT_APPLICATION_SYNCED      EventType = 100
	EventType_EVENT_APPLICATION_OUT_OF_SYNC EventType = 101
	// Application Health Event
	EventType_EVENT_APPLICATION_HEALTHY EventType = 200
	EventType_EVENT_PIPED_STARTED       EventType = 300
	EventType_EVENT_PIPED_STOPPED       EventType = 301
)

func (EventType) Descriptor

func (EventType) Descriptor() protoreflect.EnumDescriptor

func (EventType) Enum

func (x EventType) Enum() *EventType

func (EventType) EnumDescriptor deprecated

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

Deprecated: Use EventType.Descriptor instead.

func (EventType) Number

func (x EventType) Number() protoreflect.EnumNumber

func (EventType) String

func (x EventType) String() string

func (EventType) Type

type FileStoreType

type FileStoreType string
const (
	FileStoreGCS   FileStoreType = "GCS"
	FileStoreS3    FileStoreType = "S3"
	FileStoreMINIO FileStoreType = "MINIO"
)

func (FileStoreType) String

func (t FileStoreType) String() string

type ImageProviderType

type ImageProviderType string
const (
	ImageProviderTypeDockerhub ImageProviderType = "DOCKERHUB"
	ImageProviderTypeGCR       ImageProviderType = "GCR"
	ImageProviderTypeECR       ImageProviderType = "ECR"
)

func (ImageProviderType) String

func (t ImageProviderType) String() string

type KubernetesApplicationLiveState

type KubernetesApplicationLiveState struct {
	Resources []*KubernetesResourceState `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty"`
	// contains filtered or unexported fields
}

func (*KubernetesApplicationLiveState) Descriptor deprecated

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

Deprecated: Use KubernetesApplicationLiveState.ProtoReflect.Descriptor instead.

func (*KubernetesApplicationLiveState) GetResources

func (*KubernetesApplicationLiveState) ProtoMessage

func (*KubernetesApplicationLiveState) ProtoMessage()

func (*KubernetesApplicationLiveState) ProtoReflect

func (*KubernetesApplicationLiveState) Reset

func (x *KubernetesApplicationLiveState) Reset()

func (*KubernetesApplicationLiveState) String

type KubernetesResourceState

type KubernetesResourceState struct {

	// The unique ID across the whole cluster generated by Kubernetes.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The sorted list of unique IDs of the owners that depended by this resource.
	// The owner is another resource that created and managing this resource.
	OwnerIds []string `protobuf:"bytes,2,rep,name=owner_ids,json=ownerIds,proto3" json:"owner_ids,omitempty"`
	// The sorted list of unique IDs of the parents.
	ParentIds []string `protobuf:"bytes,3,rep,name=parent_ids,json=parentIds,proto3" json:"parent_ids,omitempty"`
	// The unique name for the type of resource.
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// The api version of this resource represented by "group/version".
	ApiVersion string `protobuf:"bytes,5,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
	// The kind of this resource.
	Kind string `protobuf:"bytes,6,opt,name=kind,proto3" json:"kind,omitempty"`
	// The namespace this resource belongs to.
	// This can be empty for non-namespaced resources.
	Namespace         string                               `protobuf:"bytes,7,opt,name=namespace,proto3" json:"namespace,omitempty"`
	HealthStatus      KubernetesResourceState_HealthStatus `` /* 151-byte string literal not displayed */
	HealthDescription string                               `protobuf:"bytes,9,opt,name=health_description,json=healthDescription,proto3" json:"health_description,omitempty"`
	// The timestamp when this resource was created.
	CreatedAt int64 `protobuf:"varint,14,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// The timestamp of the last time when this resource was updated.
	UpdatedAt int64 `protobuf:"varint,15,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

KubernetesResourceState represents the state of a single kubernetes resource object.

func (*KubernetesResourceState) Descriptor deprecated

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

Deprecated: Use KubernetesResourceState.ProtoReflect.Descriptor instead.

func (*KubernetesResourceState) GetApiVersion

func (x *KubernetesResourceState) GetApiVersion() string

func (*KubernetesResourceState) GetCreatedAt

func (x *KubernetesResourceState) GetCreatedAt() int64

func (*KubernetesResourceState) GetHealthDescription

func (x *KubernetesResourceState) GetHealthDescription() string

func (*KubernetesResourceState) GetHealthStatus

func (*KubernetesResourceState) GetId

func (x *KubernetesResourceState) GetId() string

func (*KubernetesResourceState) GetKind

func (x *KubernetesResourceState) GetKind() string

func (*KubernetesResourceState) GetName

func (x *KubernetesResourceState) GetName() string

func (*KubernetesResourceState) GetNamespace

func (x *KubernetesResourceState) GetNamespace() string

func (*KubernetesResourceState) GetOwnerIds

func (x *KubernetesResourceState) GetOwnerIds() []string

func (*KubernetesResourceState) GetParentIds

func (x *KubernetesResourceState) GetParentIds() []string

func (*KubernetesResourceState) GetUpdatedAt

func (x *KubernetesResourceState) GetUpdatedAt() int64

func (KubernetesResourceState) HasDiff

func (*KubernetesResourceState) ProtoMessage

func (*KubernetesResourceState) ProtoMessage()

func (*KubernetesResourceState) ProtoReflect

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

func (*KubernetesResourceState) Reset

func (x *KubernetesResourceState) Reset()

func (*KubernetesResourceState) String

func (x *KubernetesResourceState) String() string

type KubernetesResourceStateEvent

type KubernetesResourceStateEvent struct {

	// The uniquely generated identifier for this event.
	Id              string                            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	ApplicationId   string                            `protobuf:"bytes,2,opt,name=application_id,json=applicationId,proto3" json:"application_id,omitempty"`
	Type            KubernetesResourceStateEvent_Type `protobuf:"varint,3,opt,name=type,proto3,enum=pipe.model.KubernetesResourceStateEvent_Type" json:"type,omitempty"`
	State           *KubernetesResourceState          `protobuf:"bytes,4,opt,name=state,proto3" json:"state,omitempty"`
	SnapshotVersion *ApplicationLiveStateVersion      `protobuf:"bytes,5,opt,name=snapshot_version,json=snapshotVersion,proto3" json:"snapshot_version,omitempty"`
	CreatedAt       int64                             `protobuf:"varint,15,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*KubernetesResourceStateEvent) Descriptor deprecated

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

Deprecated: Use KubernetesResourceStateEvent.ProtoReflect.Descriptor instead.

func (*KubernetesResourceStateEvent) GetApplicationId

func (x *KubernetesResourceStateEvent) GetApplicationId() string

func (*KubernetesResourceStateEvent) GetCreatedAt

func (x *KubernetesResourceStateEvent) GetCreatedAt() int64

func (*KubernetesResourceStateEvent) GetId

func (*KubernetesResourceStateEvent) GetSnapshotVersion

func (*KubernetesResourceStateEvent) GetState

func (*KubernetesResourceStateEvent) GetType

func (*KubernetesResourceStateEvent) ProtoMessage

func (*KubernetesResourceStateEvent) ProtoMessage()

func (*KubernetesResourceStateEvent) ProtoReflect

func (*KubernetesResourceStateEvent) Reset

func (x *KubernetesResourceStateEvent) Reset()

func (*KubernetesResourceStateEvent) String

type KubernetesResourceStateEvent_Type

type KubernetesResourceStateEvent_Type int32
const (
	KubernetesResourceStateEvent_ADD_OR_UPDATED KubernetesResourceStateEvent_Type = 0
	KubernetesResourceStateEvent_DELETED        KubernetesResourceStateEvent_Type = 2
)

func (KubernetesResourceStateEvent_Type) Descriptor

func (KubernetesResourceStateEvent_Type) Enum

func (KubernetesResourceStateEvent_Type) EnumDescriptor deprecated

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

Deprecated: Use KubernetesResourceStateEvent_Type.Descriptor instead.

func (KubernetesResourceStateEvent_Type) Number

func (KubernetesResourceStateEvent_Type) String

func (KubernetesResourceStateEvent_Type) Type

type KubernetesResourceState_HealthStatus

type KubernetesResourceState_HealthStatus int32
const (
	KubernetesResourceState_UNKNOWN KubernetesResourceState_HealthStatus = 0
	KubernetesResourceState_HEALTHY KubernetesResourceState_HealthStatus = 1
	KubernetesResourceState_OTHER   KubernetesResourceState_HealthStatus = 2
)

func (KubernetesResourceState_HealthStatus) Descriptor

func (KubernetesResourceState_HealthStatus) Enum

func (KubernetesResourceState_HealthStatus) EnumDescriptor deprecated

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

Deprecated: Use KubernetesResourceState_HealthStatus.Descriptor instead.

func (KubernetesResourceState_HealthStatus) Number

func (KubernetesResourceState_HealthStatus) String

func (KubernetesResourceState_HealthStatus) Type

type LambdaApplicationLiveState

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

func (*LambdaApplicationLiveState) Descriptor deprecated

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

Deprecated: Use LambdaApplicationLiveState.ProtoReflect.Descriptor instead.

func (*LambdaApplicationLiveState) ProtoMessage

func (*LambdaApplicationLiveState) ProtoMessage()

func (*LambdaApplicationLiveState) ProtoReflect

func (*LambdaApplicationLiveState) Reset

func (x *LambdaApplicationLiveState) Reset()

func (*LambdaApplicationLiveState) String

func (x *LambdaApplicationLiveState) String() string

type LogBlock

type LogBlock struct {

	// The index of log block.
	Index int64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	// The log content.
	Log string `protobuf:"bytes,2,opt,name=log,proto3" json:"log,omitempty"`
	// Severity level for this block.
	Severity LogSeverity `protobuf:"varint,3,opt,name=severity,proto3,enum=pipe.model.LogSeverity" json:"severity,omitempty"`
	// Unix time when the log block was created.
	CreatedAt int64 `protobuf:"varint,14,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*LogBlock) Descriptor deprecated

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

Deprecated: Use LogBlock.ProtoReflect.Descriptor instead.

func (*LogBlock) GetCreatedAt

func (x *LogBlock) GetCreatedAt() int64

func (*LogBlock) GetIndex

func (x *LogBlock) GetIndex() int64

func (*LogBlock) GetLog

func (x *LogBlock) GetLog() string

func (*LogBlock) GetSeverity

func (x *LogBlock) GetSeverity() LogSeverity

func (*LogBlock) ProtoMessage

func (*LogBlock) ProtoMessage()

func (*LogBlock) ProtoReflect

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

func (*LogBlock) Reset

func (x *LogBlock) Reset()

func (*LogBlock) String

func (x *LogBlock) String() string

type LogSeverity

type LogSeverity int32
const (
	LogSeverity_INFO    LogSeverity = 0
	LogSeverity_SUCCESS LogSeverity = 1
	LogSeverity_ERROR   LogSeverity = 2
)

func (LogSeverity) Descriptor

func (LogSeverity) Enum

func (x LogSeverity) Enum() *LogSeverity

func (LogSeverity) EnumDescriptor deprecated

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

Deprecated: Use LogSeverity.Descriptor instead.

func (LogSeverity) Number

func (x LogSeverity) Number() protoreflect.EnumNumber

func (LogSeverity) String

func (x LogSeverity) String() string

func (LogSeverity) Type

type Piped

type Piped struct {

	// The generated unique identifier.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The name of the piped.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// The additional description about the piped.
	Desc string `protobuf:"bytes,3,opt,name=desc,proto3" json:"desc,omitempty"`
	// The hash value of the secret key generated for the piped.
	// This is used to authenticate while communicating with the control plane.
	//
	// Deprecated: Do not use.
	KeyHash string `protobuf:"bytes,4,opt,name=key_hash,json=keyHash,proto3" json:"key_hash,omitempty"`
	// The ID of the project this enviroment belongs to.
	ProjectId string `protobuf:"bytes,5,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// The IDs of environments where this piped can be connected to.
	EnvIds []string `protobuf:"bytes,6,rep,name=env_ids,json=envIds,proto3" json:"env_ids,omitempty"`
	// Currently running version.
	Version string `protobuf:"bytes,7,opt,name=version,proto3" json:"version,omitempty"`
	// Unix time when the piped is started up.
	StartedAt int64 `protobuf:"varint,8,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
	// List of configured cloud providers.
	CloudProviders []*Piped_CloudProvider `protobuf:"bytes,9,rep,name=cloud_providers,json=cloudProviders,proto3" json:"cloud_providers,omitempty"`
	// List of configured repositories.
	Repositories []*ApplicationGitRepository `protobuf:"bytes,10,rep,name=repositories,proto3" json:"repositories,omitempty"`
	// The latest connection status of piped.
	Status Piped_ConnectionStatus `protobuf:"varint,11,opt,name=status,proto3,enum=pipe.model.Piped_ConnectionStatus" json:"status,omitempty"`
	// The public key/service account for encrypting the secret data.
	SealedSecretEncryption *Piped_SealedSecretEncryption `` /* 130-byte string literal not displayed */
	// The list keys can be used to authenticate.
	Keys []*PipedKey `protobuf:"bytes,20,rep,name=keys,proto3" json:"keys,omitempty"`
	// Whether the piped is disabled or not.
	Disabled bool `protobuf:"varint,13,opt,name=disabled,proto3" json:"disabled,omitempty"`
	// Unix time when the piped is created.
	CreatedAt int64 `protobuf:"varint,14,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Unix time of the last time when the piped is updated.
	UpdatedAt int64 `protobuf:"varint,15,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Piped) AddKey

func (p *Piped) AddKey(hash, creator string, createdAt time.Time)

AddKey adds a new key to the list. If the piped is already having "pipedMaxKeyNum" number of keys the oldest one will be removed before adding.

func (*Piped) CheckKey

func (p *Piped) CheckKey(key string) (err error)

CheckKey checks if the give key is one of the stored keys.

func (*Piped) Descriptor deprecated

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

Deprecated: Use Piped.ProtoReflect.Descriptor instead.

func (*Piped) GetCloudProviders

func (x *Piped) GetCloudProviders() []*Piped_CloudProvider

func (*Piped) GetCreatedAt

func (x *Piped) GetCreatedAt() int64

func (*Piped) GetDesc

func (x *Piped) GetDesc() string

func (*Piped) GetDisabled

func (x *Piped) GetDisabled() bool

func (*Piped) GetEnvIds

func (x *Piped) GetEnvIds() []string

func (*Piped) GetId

func (x *Piped) GetId() string

func (*Piped) GetKeyHash deprecated

func (x *Piped) GetKeyHash() string

Deprecated: Do not use.

func (*Piped) GetKeys

func (x *Piped) GetKeys() []*PipedKey

func (*Piped) GetName

func (x *Piped) GetName() string

func (*Piped) GetProjectId

func (x *Piped) GetProjectId() string

func (*Piped) GetRepositories

func (x *Piped) GetRepositories() []*ApplicationGitRepository

func (*Piped) GetSealedSecretEncryption

func (x *Piped) GetSealedSecretEncryption() *Piped_SealedSecretEncryption

func (*Piped) GetStartedAt

func (x *Piped) GetStartedAt() int64

func (*Piped) GetStatus

func (x *Piped) GetStatus() Piped_ConnectionStatus

func (*Piped) GetUpdatedAt

func (x *Piped) GetUpdatedAt() int64

func (*Piped) GetVersion

func (x *Piped) GetVersion() string

func (*Piped) ProtoMessage

func (*Piped) ProtoMessage()

func (*Piped) ProtoReflect

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

func (*Piped) RedactSensitiveData

func (p *Piped) RedactSensitiveData()

func (*Piped) Reset

func (x *Piped) Reset()

func (*Piped) String

func (x *Piped) String() string

type PipedKey

type PipedKey struct {

	// The hash value of the key.
	Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	// The creator of the key.
	Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"`
	// Unix time when the key is created.
	CreatedAt int64 `protobuf:"varint,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*PipedKey) Descriptor deprecated

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

Deprecated: Use PipedKey.ProtoReflect.Descriptor instead.

func (*PipedKey) GetCreatedAt

func (x *PipedKey) GetCreatedAt() int64

func (*PipedKey) GetCreator

func (x *PipedKey) GetCreator() string

func (*PipedKey) GetHash

func (x *PipedKey) GetHash() string

func (*PipedKey) ProtoMessage

func (*PipedKey) ProtoMessage()

func (*PipedKey) ProtoReflect

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

func (*PipedKey) Reset

func (x *PipedKey) Reset()

func (*PipedKey) String

func (x *PipedKey) String() string

type PipedStats

type PipedStats struct {
	Version           string               `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	Timestamp         int64                `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	PrometheusMetrics []*PrometheusMetrics `protobuf:"bytes,3,rep,name=prometheus_metrics,json=prometheusMetrics,proto3" json:"prometheus_metrics,omitempty"`
	// contains filtered or unexported fields
}

func (*PipedStats) Descriptor deprecated

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

Deprecated: Use PipedStats.ProtoReflect.Descriptor instead.

func (*PipedStats) GetPrometheusMetrics

func (x *PipedStats) GetPrometheusMetrics() []*PrometheusMetrics

func (*PipedStats) GetTimestamp

func (x *PipedStats) GetTimestamp() int64

func (*PipedStats) GetVersion

func (x *PipedStats) GetVersion() string

func (*PipedStats) ProtoMessage

func (*PipedStats) ProtoMessage()

func (*PipedStats) ProtoReflect

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

func (*PipedStats) Reset

func (x *PipedStats) Reset()

func (*PipedStats) String

func (x *PipedStats) String() string

type Piped_CloudProvider

type Piped_CloudProvider struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*Piped_CloudProvider) Descriptor deprecated

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

Deprecated: Use Piped_CloudProvider.ProtoReflect.Descriptor instead.

func (*Piped_CloudProvider) GetName

func (x *Piped_CloudProvider) GetName() string

func (*Piped_CloudProvider) GetType

func (x *Piped_CloudProvider) GetType() string

func (*Piped_CloudProvider) ProtoMessage

func (*Piped_CloudProvider) ProtoMessage()

func (*Piped_CloudProvider) ProtoReflect

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

func (*Piped_CloudProvider) Reset

func (x *Piped_CloudProvider) Reset()

func (*Piped_CloudProvider) String

func (x *Piped_CloudProvider) String() string

type Piped_ConnectionStatus

type Piped_ConnectionStatus int32
const (
	Piped_ONLINE  Piped_ConnectionStatus = 0
	Piped_OFFLINE Piped_ConnectionStatus = 1
)

func (Piped_ConnectionStatus) Descriptor

func (Piped_ConnectionStatus) Enum

func (Piped_ConnectionStatus) EnumDescriptor deprecated

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

Deprecated: Use Piped_ConnectionStatus.Descriptor instead.

func (Piped_ConnectionStatus) Number

func (Piped_ConnectionStatus) String

func (x Piped_ConnectionStatus) String() string

func (Piped_ConnectionStatus) Type

type Piped_SealedSecretEncryption

type Piped_SealedSecretEncryption struct {
	Type                  string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	PublicKey             string `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	EncryptServiceAccount string `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Piped_SealedSecretEncryption) Descriptor deprecated

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

Deprecated: Use Piped_SealedSecretEncryption.ProtoReflect.Descriptor instead.

func (*Piped_SealedSecretEncryption) GetEncryptServiceAccount

func (x *Piped_SealedSecretEncryption) GetEncryptServiceAccount() string

func (*Piped_SealedSecretEncryption) GetPublicKey

func (x *Piped_SealedSecretEncryption) GetPublicKey() string

func (*Piped_SealedSecretEncryption) GetType

func (x *Piped_SealedSecretEncryption) GetType() string

func (*Piped_SealedSecretEncryption) ProtoMessage

func (*Piped_SealedSecretEncryption) ProtoMessage()

func (*Piped_SealedSecretEncryption) ProtoReflect

func (*Piped_SealedSecretEncryption) Reset

func (x *Piped_SealedSecretEncryption) Reset()

func (*Piped_SealedSecretEncryption) String

type PipelineStage

type PipelineStage struct {
	Id   string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Desc string `protobuf:"bytes,3,opt,name=desc,proto3" json:"desc,omitempty"`
	// Stage index from the stage list in configuration.
	Index int32 `protobuf:"varint,4,opt,name=index,proto3" json:"index,omitempty"`
	// Whether this stage is the predefined one by planner.
	Predefined bool     `protobuf:"varint,5,opt,name=predefined,proto3" json:"predefined,omitempty"`
	Requires   []string `protobuf:"bytes,6,rep,name=requires,proto3" json:"requires,omitempty"`
	// Whether this stage should be rendered or not.
	Visible bool        `protobuf:"varint,7,opt,name=visible,proto3" json:"visible,omitempty"`
	Status  StageStatus `protobuf:"varint,8,opt,name=status,proto3,enum=pipe.model.StageStatus" json:"status,omitempty"`
	// The human-readable description why the stage is at current status.
	StatusReason string            `protobuf:"bytes,9,opt,name=status_reason,json=statusReason,proto3" json:"status_reason,omitempty"`
	Metadata     map[string]string `` /* 158-byte string literal not displayed */
	RetriedCount int32             `protobuf:"varint,11,opt,name=retried_count,json=retriedCount,proto3" json:"retried_count,omitempty"`
	CompletedAt  int64             `protobuf:"varint,13,opt,name=completed_at,json=completedAt,proto3" json:"completed_at,omitempty"`
	CreatedAt    int64             `protobuf:"varint,14,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt    int64             `protobuf:"varint,15,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*PipelineStage) Descriptor deprecated

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

Deprecated: Use PipelineStage.ProtoReflect.Descriptor instead.

func (*PipelineStage) GetCompletedAt

func (x *PipelineStage) GetCompletedAt() int64

func (*PipelineStage) GetCreatedAt

func (x *PipelineStage) GetCreatedAt() int64

func (*PipelineStage) GetDesc

func (x *PipelineStage) GetDesc() string

func (*PipelineStage) GetId

func (x *PipelineStage) GetId() string

func (*PipelineStage) GetIndex

func (x *PipelineStage) GetIndex() int32

func (*PipelineStage) GetMetadata

func (x *PipelineStage) GetMetadata() map[string]string

func (*PipelineStage) GetName

func (x *PipelineStage) GetName() string

func (*PipelineStage) GetPredefined

func (x *PipelineStage) GetPredefined() bool

func (*PipelineStage) GetRequires

func (x *PipelineStage) GetRequires() []string

func (*PipelineStage) GetRetriedCount

func (x *PipelineStage) GetRetriedCount() int32

func (*PipelineStage) GetStatus

func (x *PipelineStage) GetStatus() StageStatus

func (*PipelineStage) GetStatusReason

func (x *PipelineStage) GetStatusReason() string

func (*PipelineStage) GetUpdatedAt

func (x *PipelineStage) GetUpdatedAt() int64

func (*PipelineStage) GetVisible

func (x *PipelineStage) GetVisible() bool

func (*PipelineStage) ProtoMessage

func (*PipelineStage) ProtoMessage()

func (*PipelineStage) ProtoReflect

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

func (*PipelineStage) Reset

func (x *PipelineStage) Reset()

func (*PipelineStage) String

func (x *PipelineStage) String() string

type Project

type Project struct {

	// The configured unique identifier.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The additional description about the project.
	Desc string `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"`
	// Static admin user can be logged in by username and password.
	// When a project is initialized (by using CLI or internal admin web), its static admin user will be created too.
	// After that the project admin should enable the SSO and disable or change the password of the static admin.
	StaticAdmin *ProjectStaticUser `protobuf:"bytes,3,opt,name=static_admin,json=staticAdmin,proto3" json:"static_admin,omitempty"`
	// Whether the static admin is disabled or not.
	StaticAdminDisabled bool `protobuf:"varint,4,opt,name=static_admin_disabled,json=staticAdminDisabled,proto3" json:"static_admin_disabled,omitempty"`
	// Single sign-on configuration for this project.
	Sso *ProjectSSOConfig `protobuf:"bytes,5,opt,name=sso,proto3" json:"sso,omitempty"`
	// RBAC Configuration for this project.
	Rbac *ProjectRBACConfig `protobuf:"bytes,6,opt,name=rbac,proto3" json:"rbac,omitempty"`
	// Shared SSO configuration name for this project.
	// It will be enabled when this parameter has no empty value.
	SharedSsoName string `protobuf:"bytes,7,opt,name=shared_sso_name,json=sharedSsoName,proto3" json:"shared_sso_name,omitempty"`
	// Unix time when the project is created.
	CreatedAt int64 `protobuf:"varint,14,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Unix time of the last time when the project is updated.
	UpdatedAt int64 `protobuf:"varint,15,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

Project contains needed data for a PipeCD project. Each project can have multiple pipeds, enviroments, applications. And each project can be controlled by a group of admin users.

func (*Project) Descriptor deprecated

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

Deprecated: Use Project.ProtoReflect.Descriptor instead.

func (*Project) GetCreatedAt

func (x *Project) GetCreatedAt() int64

func (*Project) GetDesc

func (x *Project) GetDesc() string

func (*Project) GetId

func (x *Project) GetId() string

func (*Project) GetRbac

func (x *Project) GetRbac() *ProjectRBACConfig

func (*Project) GetSharedSsoName

func (x *Project) GetSharedSsoName() string

func (*Project) GetSso

func (x *Project) GetSso() *ProjectSSOConfig

func (*Project) GetStaticAdmin

func (x *Project) GetStaticAdmin() *ProjectStaticUser

func (*Project) GetStaticAdminDisabled

func (x *Project) GetStaticAdminDisabled() bool

func (*Project) GetUpdatedAt

func (x *Project) GetUpdatedAt() int64

func (*Project) ProtoMessage

func (*Project) ProtoMessage()

func (*Project) ProtoReflect

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

func (*Project) RedactSensitiveData

func (p *Project) RedactSensitiveData()

RedactSensitiveData redacts sensitive data.

func (*Project) Reset

func (x *Project) Reset()

func (*Project) SetStaticAdmin

func (p *Project) SetStaticAdmin(username, password string) error

SetStaticAdmin sets admin data.

func (*Project) String

func (x *Project) String() string

type ProjectRBACConfig

type ProjectRBACConfig struct {
	Admin  string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
	Editor string `protobuf:"bytes,2,opt,name=editor,proto3" json:"editor,omitempty"`
	Viewer string `protobuf:"bytes,3,opt,name=viewer,proto3" json:"viewer,omitempty"`
	// contains filtered or unexported fields
}

func (*ProjectRBACConfig) Descriptor deprecated

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

Deprecated: Use ProjectRBACConfig.ProtoReflect.Descriptor instead.

func (*ProjectRBACConfig) GetAdmin

func (x *ProjectRBACConfig) GetAdmin() string

func (*ProjectRBACConfig) GetEditor

func (x *ProjectRBACConfig) GetEditor() string

func (*ProjectRBACConfig) GetViewer

func (x *ProjectRBACConfig) GetViewer() string

func (*ProjectRBACConfig) ProtoMessage

func (*ProjectRBACConfig) ProtoMessage()

func (*ProjectRBACConfig) ProtoReflect

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

func (*ProjectRBACConfig) Reset

func (x *ProjectRBACConfig) Reset()

func (*ProjectRBACConfig) String

func (x *ProjectRBACConfig) String() string

func (*ProjectRBACConfig) Update

func (p *ProjectRBACConfig) Update(rbac *ProjectRBACConfig)

Update updates ProjectRBACConfig with given data.

type ProjectSSOConfig

type ProjectSSOConfig struct {
	Provider ProjectSSOConfig_Provider `protobuf:"varint,1,opt,name=provider,proto3,enum=pipe.model.ProjectSSOConfig_Provider" json:"provider,omitempty"`
	Github   *ProjectSSOConfig_GitHub  `protobuf:"bytes,10,opt,name=github,proto3" json:"github,omitempty"`
	Google   *ProjectSSOConfig_Google  `protobuf:"bytes,11,opt,name=google,proto3" json:"google,omitempty"`
	// contains filtered or unexported fields
}

func (*ProjectSSOConfig) Decrypt

func (p *ProjectSSOConfig) Decrypt(decrypter decrypter) error

Decrypt decrypts encrypted data in ProjectSSOConfig.

func (*ProjectSSOConfig) Descriptor deprecated

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

Deprecated: Use ProjectSSOConfig.ProtoReflect.Descriptor instead.

func (*ProjectSSOConfig) Encrypt

func (p *ProjectSSOConfig) Encrypt(encrypter encrypter) error

Encrypt encrypts sensitive data in ProjectSSOConfig.

func (*ProjectSSOConfig) GenerateAuthCodeURL

func (p *ProjectSSOConfig) GenerateAuthCodeURL(project, callbackURL, state string) (string, error)

GenerateAuthCodeURL generates an auth URL for the specified configuration.

func (*ProjectSSOConfig) GetGithub

func (x *ProjectSSOConfig) GetGithub() *ProjectSSOConfig_GitHub

func (*ProjectSSOConfig) GetGoogle

func (x *ProjectSSOConfig) GetGoogle() *ProjectSSOConfig_Google

func (*ProjectSSOConfig) GetProvider

func (*ProjectSSOConfig) ProtoMessage

func (*ProjectSSOConfig) ProtoMessage()

func (*ProjectSSOConfig) ProtoReflect

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

func (*ProjectSSOConfig) RedactSensitiveData

func (p *ProjectSSOConfig) RedactSensitiveData()

RedactSensitiveData redacts sensitive data.

func (*ProjectSSOConfig) Reset

func (x *ProjectSSOConfig) Reset()

func (*ProjectSSOConfig) String

func (x *ProjectSSOConfig) String() string

func (*ProjectSSOConfig) Update

func (p *ProjectSSOConfig) Update(sso *ProjectSSOConfig) error

Update updates ProjectSSOConfig with given data.

type ProjectSSOConfig_GitHub

type ProjectSSOConfig_GitHub struct {
	ClientId     string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	ClientSecret string `protobuf:"bytes,2,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`
	BaseUrl      string `protobuf:"bytes,3,opt,name=base_url,json=baseUrl,proto3" json:"base_url,omitempty"`
	UploadUrl    string `protobuf:"bytes,4,opt,name=upload_url,json=uploadUrl,proto3" json:"upload_url,omitempty"`
	// contains filtered or unexported fields
}

func (*ProjectSSOConfig_GitHub) Decrypt

func (p *ProjectSSOConfig_GitHub) Decrypt(decrypter decrypter) error

Decrypt decrypts ProjectSSOConfig.

func (*ProjectSSOConfig_GitHub) Descriptor deprecated

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

Deprecated: Use ProjectSSOConfig_GitHub.ProtoReflect.Descriptor instead.

func (*ProjectSSOConfig_GitHub) Encrypt

func (p *ProjectSSOConfig_GitHub) Encrypt(encrypter encrypter) error

Encrypt encrypts sensitive data in ProjectSSOConfig.

func (*ProjectSSOConfig_GitHub) GenerateAuthCodeURL

func (p *ProjectSSOConfig_GitHub) GenerateAuthCodeURL(project, callbackURL, state string, enterprise bool) (string, error)

GenerateAuthCodeURL generates an auth URL for the specified configuration.

func (*ProjectSSOConfig_GitHub) GetBaseUrl

func (x *ProjectSSOConfig_GitHub) GetBaseUrl() string

func (*ProjectSSOConfig_GitHub) GetClientId

func (x *ProjectSSOConfig_GitHub) GetClientId() string

func (*ProjectSSOConfig_GitHub) GetClientSecret

func (x *ProjectSSOConfig_GitHub) GetClientSecret() string

func (*ProjectSSOConfig_GitHub) GetUploadUrl

func (x *ProjectSSOConfig_GitHub) GetUploadUrl() string

func (*ProjectSSOConfig_GitHub) ProtoMessage

func (*ProjectSSOConfig_GitHub) ProtoMessage()

func (*ProjectSSOConfig_GitHub) ProtoReflect

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

func (*ProjectSSOConfig_GitHub) RedactSensitiveData

func (p *ProjectSSOConfig_GitHub) RedactSensitiveData()

RedactSensitiveData redacts sensitive data.

func (*ProjectSSOConfig_GitHub) Reset

func (x *ProjectSSOConfig_GitHub) Reset()

func (*ProjectSSOConfig_GitHub) String

func (x *ProjectSSOConfig_GitHub) String() string

func (*ProjectSSOConfig_GitHub) Update

Update updates ProjectSSOConfig with given data.

type ProjectSSOConfig_Google

type ProjectSSOConfig_Google struct {
	ClientId     string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	ClientSecret string `protobuf:"bytes,2,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`
	// contains filtered or unexported fields
}

func (*ProjectSSOConfig_Google) Descriptor deprecated

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

Deprecated: Use ProjectSSOConfig_Google.ProtoReflect.Descriptor instead.

func (*ProjectSSOConfig_Google) GetClientId

func (x *ProjectSSOConfig_Google) GetClientId() string

func (*ProjectSSOConfig_Google) GetClientSecret

func (x *ProjectSSOConfig_Google) GetClientSecret() string

func (*ProjectSSOConfig_Google) ProtoMessage

func (*ProjectSSOConfig_Google) ProtoMessage()

func (*ProjectSSOConfig_Google) ProtoReflect

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

func (*ProjectSSOConfig_Google) Reset

func (x *ProjectSSOConfig_Google) Reset()

func (*ProjectSSOConfig_Google) String

func (x *ProjectSSOConfig_Google) String() string

type ProjectSSOConfig_Provider

type ProjectSSOConfig_Provider int32
const (
	ProjectSSOConfig_GITHUB            ProjectSSOConfig_Provider = 0
	ProjectSSOConfig_GITHUB_ENTERPRISE ProjectSSOConfig_Provider = 1
	ProjectSSOConfig_GOOGLE            ProjectSSOConfig_Provider = 2
)

func (ProjectSSOConfig_Provider) Descriptor

func (ProjectSSOConfig_Provider) Enum

func (ProjectSSOConfig_Provider) EnumDescriptor deprecated

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

Deprecated: Use ProjectSSOConfig_Provider.Descriptor instead.

func (ProjectSSOConfig_Provider) Number

func (ProjectSSOConfig_Provider) String

func (x ProjectSSOConfig_Provider) String() string

func (ProjectSSOConfig_Provider) Type

type ProjectStaticUser

type ProjectStaticUser struct {

	// The name of user.
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	// The hash value of the password.
	PasswordHash string `protobuf:"bytes,2,opt,name=password_hash,json=passwordHash,proto3" json:"password_hash,omitempty"`
	// contains filtered or unexported fields
}

ProjectStaticUser represents a local user who can logged in to the project by username and password.

func (*ProjectStaticUser) Auth

func (p *ProjectStaticUser) Auth(username, password string) error

Auth confirms username and password.

func (*ProjectStaticUser) Descriptor deprecated

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

Deprecated: Use ProjectStaticUser.ProtoReflect.Descriptor instead.

func (*ProjectStaticUser) GetPasswordHash

func (x *ProjectStaticUser) GetPasswordHash() string

func (*ProjectStaticUser) GetUsername

func (x *ProjectStaticUser) GetUsername() string

func (*ProjectStaticUser) ProtoMessage

func (*ProjectStaticUser) ProtoMessage()

func (*ProjectStaticUser) ProtoReflect

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

func (*ProjectStaticUser) RedactSensitiveData

func (p *ProjectStaticUser) RedactSensitiveData()

RedactSensitiveData redacts sensitive data.

func (*ProjectStaticUser) Reset

func (x *ProjectStaticUser) Reset()

func (*ProjectStaticUser) String

func (x *ProjectStaticUser) String() string

func (*ProjectStaticUser) Update

func (p *ProjectStaticUser) Update(username, password string) error

Update updates ProjectStaticUser with given data.

type PrometheusMetrics

type PrometheusMetrics struct {
	Name    string                      `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Type    PrometheusMetrics_Type      `protobuf:"varint,2,opt,name=type,proto3,enum=pipe.model.PrometheusMetrics_Type" json:"type,omitempty"`
	Samples []*PrometheusMetrics_Sample `protobuf:"bytes,3,rep,name=samples,proto3" json:"samples,omitempty"`
	// contains filtered or unexported fields
}

func (*PrometheusMetrics) Descriptor deprecated

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

Deprecated: Use PrometheusMetrics.ProtoReflect.Descriptor instead.

func (*PrometheusMetrics) GetName

func (x *PrometheusMetrics) GetName() string

func (*PrometheusMetrics) GetSamples

func (x *PrometheusMetrics) GetSamples() []*PrometheusMetrics_Sample

func (*PrometheusMetrics) GetType

func (*PrometheusMetrics) ProtoMessage

func (*PrometheusMetrics) ProtoMessage()

func (*PrometheusMetrics) ProtoReflect

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

func (*PrometheusMetrics) Reset

func (x *PrometheusMetrics) Reset()

func (*PrometheusMetrics) String

func (x *PrometheusMetrics) String() string

type PrometheusMetrics_LabelPair

type PrometheusMetrics_LabelPair struct {
	Name  string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*PrometheusMetrics_LabelPair) Descriptor deprecated

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

Deprecated: Use PrometheusMetrics_LabelPair.ProtoReflect.Descriptor instead.

func (*PrometheusMetrics_LabelPair) GetName

func (x *PrometheusMetrics_LabelPair) GetName() string

func (*PrometheusMetrics_LabelPair) GetValue

func (x *PrometheusMetrics_LabelPair) GetValue() string

func (*PrometheusMetrics_LabelPair) ProtoMessage

func (*PrometheusMetrics_LabelPair) ProtoMessage()

func (*PrometheusMetrics_LabelPair) ProtoReflect

func (*PrometheusMetrics_LabelPair) Reset

func (x *PrometheusMetrics_LabelPair) Reset()

func (*PrometheusMetrics_LabelPair) String

func (x *PrometheusMetrics_LabelPair) String() string

type PrometheusMetrics_Sample

type PrometheusMetrics_Sample struct {
	Labels []*PrometheusMetrics_LabelPair `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"`
	Value  float64                        `protobuf:"fixed64,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*PrometheusMetrics_Sample) Descriptor deprecated

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

Deprecated: Use PrometheusMetrics_Sample.ProtoReflect.Descriptor instead.

func (*PrometheusMetrics_Sample) GetLabels

func (*PrometheusMetrics_Sample) GetValue

func (x *PrometheusMetrics_Sample) GetValue() float64

func (*PrometheusMetrics_Sample) ProtoMessage

func (*PrometheusMetrics_Sample) ProtoMessage()

func (*PrometheusMetrics_Sample) ProtoReflect

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

func (*PrometheusMetrics_Sample) Reset

func (x *PrometheusMetrics_Sample) Reset()

func (*PrometheusMetrics_Sample) String

func (x *PrometheusMetrics_Sample) String() string

type PrometheusMetrics_Type

type PrometheusMetrics_Type int32
const (
	PrometheusMetrics_GAUGE   PrometheusMetrics_Type = 0
	PrometheusMetrics_COUNTER PrometheusMetrics_Type = 1
)

func (PrometheusMetrics_Type) Descriptor

func (PrometheusMetrics_Type) Enum

func (PrometheusMetrics_Type) EnumDescriptor deprecated

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

Deprecated: Use PrometheusMetrics_Type.Descriptor instead.

func (PrometheusMetrics_Type) Number

func (PrometheusMetrics_Type) String

func (x PrometheusMetrics_Type) String() string

func (PrometheusMetrics_Type) Type

type ReportableCommand

type ReportableCommand struct {
	*Command
	Report func(ctx context.Context, status CommandStatus, metadata map[string]string) error
}

type Role

type Role struct {

	// project_id represents the ID of project account associated with this role.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// project_role represents the roles you have in the project.
	ProjectRole Role_ProjectRole `` /* 128-byte string literal not displayed */
	// contains filtered or unexported fields
}

Role contains a list of roles for a specified user.

func (*Role) Descriptor deprecated

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

Deprecated: Use Role.ProtoReflect.Descriptor instead.

func (*Role) GetProjectId

func (x *Role) GetProjectId() string

func (*Role) GetProjectRole

func (x *Role) GetProjectRole() Role_ProjectRole

func (*Role) ProtoMessage

func (*Role) ProtoMessage()

func (*Role) ProtoReflect

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

func (*Role) Reset

func (x *Role) Reset()

func (*Role) String

func (x *Role) String() string

type Role_ProjectRole

type Role_ProjectRole int32
const (
	// VIEWER has only permissions to view build log or build list.
	Role_VIEWER Role_ProjectRole = 0
	// EDITOR has all viewer permissions, plus permissions for actions that modify state,
	// such as sync the deployment state.
	Role_EDITOR Role_ProjectRole = 1
	// ADMIN has all user permissions.
	Role_ADMIN Role_ProjectRole = 2
)

func (Role_ProjectRole) Descriptor

func (Role_ProjectRole) Enum

func (Role_ProjectRole) EnumDescriptor deprecated

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

Deprecated: Use Role_ProjectRole.Descriptor instead.

func (Role_ProjectRole) Number

func (Role_ProjectRole) String

func (x Role_ProjectRole) String() string

func (Role_ProjectRole) Type

type SealedSecretManagementType

type SealedSecretManagementType string
const (
	SealedSecretManagementNone       SealedSecretManagementType = "NONE"
	SealedSecretManagementSealingKey SealedSecretManagementType = "SEALING_KEY"
	SealedSecretManagementGCPKMS     SealedSecretManagementType = "GCP_KMS"
	SealedSecretManagementAWSKMS     SealedSecretManagementType = "AWS_KMS"
)

func (SealedSecretManagementType) String

type Stage

type Stage string

Stage represents the middle and temporary state of application before reaching its final desired state.

const (
	// StageWait represents the waiting state for a specified period of time.
	StageWait Stage = "WAIT"
	// StageWaitApproval represents the waiting state until getting an approval
	// from one of the specified approvers.
	StageWaitApproval Stage = "WAIT_APPROVAL"
	// StageAnalysis represents the waiting state for analysing
	// the application status based on metrics, log, http request...
	StageAnalysis Stage = "ANALYSIS"

	// StageK8sSync represents the state where
	// all resources should be synced with the Git state.
	StageK8sSync Stage = "K8S_SYNC"
	// StageK8sPrimaryRollout represents the state where
	// the PRIMARY variant resources has been updated to the new version/configuration.
	StageK8sPrimaryRollout Stage = "K8S_PRIMARY_ROLLOUT"
	// StageK8sCanaryRollout represents the state where
	// the CANARY variant resources has been rolled out with the new version/configuration.
	StageK8sCanaryRollout Stage = "K8S_CANARY_ROLLOUT"
	// StageK8sCanaryClean represents the state where
	// the CANARY variant resources has been cleaned.
	StageK8sCanaryClean Stage = "K8S_CANARY_CLEAN"
	// StageK8sBaselineRollout represents the state where
	// the BASELINE variant resources has been rolled out.
	StageK8sBaselineRollout Stage = "K8S_BASELINE_ROLLOUT"
	// StageK8sBaselineClean represents the state where
	// the BASELINE variant resources has been cleaned.
	StageK8sBaselineClean Stage = "K8S_BASELINE_CLEAN"
	// StageK8sTrafficRouting represents the state where the traffic to application
	// should be splitted as the specified percentage to PRIMARY, CANARY, BASELINE variants.
	StageK8sTrafficRouting Stage = "K8S_TRAFFIC_ROUTING"

	// StageTerraformSync synced infrastructure with all the tf defined in Git.
	// Firstly, it does plan and if there are any changes detected it applies those changes automatically.
	StageTerraformSync Stage = "TERRAFORM_SYNC"
	// StageTerraformPlan shows terraform plan result.
	StageTerraformPlan Stage = "TERRAFORM_PLAN"
	// StageTerraformApply represents the state where
	// the new configuration has been applied.
	StageTerraformApply Stage = "TERRAFORM_APPLY"

	// StageCloudRunSync does quick sync by rolling out the new version
	// and switching all traffic to it.
	StageCloudRunSync Stage = "CLOUDRUN_SYNC"
	// StageCloudRunPromote promotes the new version to receive amount of traffic.
	StageCloudRunPromote Stage = "CLOUDRUN_PROMOTE"

	// StageLambdaSync does quick sync by rolling out the new version
	// and switching all traffic to it.
	StageLambdaSync Stage = "LAMBDA_SYNC"
	// StageLambdaCanaryRollout represents the state where
	// the workloads of the new version has been rolled out.
	StageLambdaCanaryRollout Stage = "LAMBDA_CANARY_ROLLOUT"
	// StageLambdaPromote prmotes the new version to receive amount of traffic.
	StageLambdaPromote Stage = "LAMBDA_PROMOTE"

	// StageRollback represents a state where
	// the all temporarily created stages will be reverted to
	// bring back the pre-deploy stage.
	// This stage is AUTOMATICALLY GENERATED and can not be used
	// to specify in configuration file.
	StageRollback Stage = "ROLLBACK"
)

func (Stage) String

func (s Stage) String() string

type StageStatus

type StageStatus int32

StageStatus represents the current status of a stage of a deployment.

const (
	StageStatus_STAGE_NOT_STARTED_YET StageStatus = 0
	StageStatus_STAGE_RUNNING         StageStatus = 1
	StageStatus_STAGE_SUCCESS         StageStatus = 2
	StageStatus_STAGE_FAILURE         StageStatus = 3
	StageStatus_STAGE_CANCELLED       StageStatus = 4
)

func (StageStatus) Descriptor

func (StageStatus) Enum

func (x StageStatus) Enum() *StageStatus

func (StageStatus) EnumDescriptor deprecated

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

Deprecated: Use StageStatus.Descriptor instead.

func (StageStatus) Number

func (x StageStatus) Number() protoreflect.EnumNumber

func (StageStatus) String

func (x StageStatus) String() string

func (StageStatus) Type

type TerraformApplicationLiveState

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

func (*TerraformApplicationLiveState) Descriptor deprecated

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

Deprecated: Use TerraformApplicationLiveState.ProtoReflect.Descriptor instead.

func (*TerraformApplicationLiveState) ProtoMessage

func (*TerraformApplicationLiveState) ProtoMessage()

func (*TerraformApplicationLiveState) ProtoReflect

func (*TerraformApplicationLiveState) Reset

func (x *TerraformApplicationLiveState) Reset()

func (*TerraformApplicationLiveState) String

type User

type User struct {
	Username  string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	AvatarUrl string `protobuf:"bytes,2,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"`
	Role      *Role  `protobuf:"bytes,3,opt,name=role,proto3" json:"role,omitempty"`
	// contains filtered or unexported fields
}

User represents a logged in user.

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetAvatarUrl

func (x *User) GetAvatarUrl() string

func (*User) GetRole

func (x *User) GetRole() *Role

func (*User) GetUsername

func (x *User) GetUsername() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

Jump to

Keyboard shortcuts

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