proto

package
v0.26.2 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LogSource_name = map[int32]string{
		0: "PROVISIONER_DAEMON",
		1: "PROVISIONER",
	}
	LogSource_value = map[string]int32{
		"PROVISIONER_DAEMON": 0,
		"PROVISIONER":        1,
	}
)

Enum value maps for LogSource.

View Source
var File_provisionerd_proto_provisionerd_proto protoreflect.FileDescriptor

Functions

func DRPCRegisterProvisionerDaemon

func DRPCRegisterProvisionerDaemon(mux drpc.Mux, impl DRPCProvisionerDaemonServer) error

Types

type AcquiredJob

type AcquiredJob struct {
	JobId                 string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"`
	CreatedAt             int64  `protobuf:"varint,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	Provisioner           string `protobuf:"bytes,3,opt,name=provisioner,proto3" json:"provisioner,omitempty"`
	UserName              string `protobuf:"bytes,4,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
	TemplateSourceArchive []byte `` /* 126-byte string literal not displayed */
	// Types that are assignable to Type:
	//
	//	*AcquiredJob_WorkspaceBuild_
	//	*AcquiredJob_TemplateImport_
	//	*AcquiredJob_TemplateDryRun_
	Type isAcquiredJob_Type `protobuf_oneof:"type"`
	// trace_metadata is currently used for tracing information only. It allows
	// jobs to be tied to the request that created them.
	TraceMetadata map[string]string `` /* 188-byte string literal not displayed */
	// contains filtered or unexported fields
}

AcquiredJob is returned when a provisioner daemon has a job locked.

func (*AcquiredJob) Descriptor deprecated

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

Deprecated: Use AcquiredJob.ProtoReflect.Descriptor instead.

func (*AcquiredJob) GetCreatedAt

func (x *AcquiredJob) GetCreatedAt() int64

func (*AcquiredJob) GetJobId

func (x *AcquiredJob) GetJobId() string

func (*AcquiredJob) GetProvisioner

func (x *AcquiredJob) GetProvisioner() string

func (*AcquiredJob) GetTemplateDryRun added in v0.6.1

func (x *AcquiredJob) GetTemplateDryRun() *AcquiredJob_TemplateDryRun

func (*AcquiredJob) GetTemplateImport added in v0.4.0

func (x *AcquiredJob) GetTemplateImport() *AcquiredJob_TemplateImport

func (*AcquiredJob) GetTemplateSourceArchive added in v0.4.0

func (x *AcquiredJob) GetTemplateSourceArchive() []byte

func (*AcquiredJob) GetTraceMetadata added in v0.23.2

func (x *AcquiredJob) GetTraceMetadata() map[string]string

func (*AcquiredJob) GetType

func (m *AcquiredJob) GetType() isAcquiredJob_Type

func (*AcquiredJob) GetUserName

func (x *AcquiredJob) GetUserName() string

func (*AcquiredJob) GetWorkspaceBuild

func (x *AcquiredJob) GetWorkspaceBuild() *AcquiredJob_WorkspaceBuild

func (*AcquiredJob) ProtoMessage

func (*AcquiredJob) ProtoMessage()

func (*AcquiredJob) ProtoReflect

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

func (*AcquiredJob) Reset

func (x *AcquiredJob) Reset()

func (*AcquiredJob) String

func (x *AcquiredJob) String() string

type AcquiredJob_TemplateDryRun added in v0.6.1

type AcquiredJob_TemplateDryRun struct {
	RichParameterValues []*proto.RichParameterValue `protobuf:"bytes,2,rep,name=rich_parameter_values,json=richParameterValues,proto3" json:"rich_parameter_values,omitempty"`
	VariableValues      []*proto.VariableValue      `protobuf:"bytes,3,rep,name=variable_values,json=variableValues,proto3" json:"variable_values,omitempty"`
	Metadata            *proto.Provision_Metadata   `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*AcquiredJob_TemplateDryRun) Descriptor deprecated added in v0.6.1

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

Deprecated: Use AcquiredJob_TemplateDryRun.ProtoReflect.Descriptor instead.

func (*AcquiredJob_TemplateDryRun) GetMetadata added in v0.6.1

func (*AcquiredJob_TemplateDryRun) GetRichParameterValues added in v0.15.2

func (x *AcquiredJob_TemplateDryRun) GetRichParameterValues() []*proto.RichParameterValue

func (*AcquiredJob_TemplateDryRun) GetVariableValues added in v0.17.4

func (x *AcquiredJob_TemplateDryRun) GetVariableValues() []*proto.VariableValue

func (*AcquiredJob_TemplateDryRun) ProtoMessage added in v0.6.1

func (*AcquiredJob_TemplateDryRun) ProtoMessage()

func (*AcquiredJob_TemplateDryRun) ProtoReflect added in v0.6.1

func (*AcquiredJob_TemplateDryRun) Reset added in v0.6.1

func (x *AcquiredJob_TemplateDryRun) Reset()

func (*AcquiredJob_TemplateDryRun) String added in v0.6.1

func (x *AcquiredJob_TemplateDryRun) String() string

type AcquiredJob_TemplateDryRun_ added in v0.6.1

type AcquiredJob_TemplateDryRun_ struct {
	TemplateDryRun *AcquiredJob_TemplateDryRun `protobuf:"bytes,8,opt,name=template_dry_run,json=templateDryRun,proto3,oneof"`
}

type AcquiredJob_TemplateImport added in v0.4.0

type AcquiredJob_TemplateImport struct {
	Metadata           *proto.Provision_Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	UserVariableValues []*proto.VariableValue    `protobuf:"bytes,2,rep,name=user_variable_values,json=userVariableValues,proto3" json:"user_variable_values,omitempty"`
	// contains filtered or unexported fields
}

func (*AcquiredJob_TemplateImport) Descriptor deprecated added in v0.4.0

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

Deprecated: Use AcquiredJob_TemplateImport.ProtoReflect.Descriptor instead.

func (*AcquiredJob_TemplateImport) GetMetadata added in v0.4.0

func (*AcquiredJob_TemplateImport) GetUserVariableValues added in v0.17.4

func (x *AcquiredJob_TemplateImport) GetUserVariableValues() []*proto.VariableValue

func (*AcquiredJob_TemplateImport) ProtoMessage added in v0.4.0

func (*AcquiredJob_TemplateImport) ProtoMessage()

func (*AcquiredJob_TemplateImport) ProtoReflect added in v0.4.0

func (*AcquiredJob_TemplateImport) Reset added in v0.4.0

func (x *AcquiredJob_TemplateImport) Reset()

func (*AcquiredJob_TemplateImport) String added in v0.4.0

func (x *AcquiredJob_TemplateImport) String() string

type AcquiredJob_TemplateImport_ added in v0.4.0

type AcquiredJob_TemplateImport_ struct {
	TemplateImport *AcquiredJob_TemplateImport `protobuf:"bytes,7,opt,name=template_import,json=templateImport,proto3,oneof"`
}

type AcquiredJob_WorkspaceBuild

type AcquiredJob_WorkspaceBuild struct {
	WorkspaceBuildId    string                      `protobuf:"bytes,1,opt,name=workspace_build_id,json=workspaceBuildId,proto3" json:"workspace_build_id,omitempty"`
	WorkspaceName       string                      `protobuf:"bytes,2,opt,name=workspace_name,json=workspaceName,proto3" json:"workspace_name,omitempty"`
	RichParameterValues []*proto.RichParameterValue `protobuf:"bytes,4,rep,name=rich_parameter_values,json=richParameterValues,proto3" json:"rich_parameter_values,omitempty"`
	VariableValues      []*proto.VariableValue      `protobuf:"bytes,5,rep,name=variable_values,json=variableValues,proto3" json:"variable_values,omitempty"`
	GitAuthProviders    []*proto.GitAuthProvider    `protobuf:"bytes,6,rep,name=git_auth_providers,json=gitAuthProviders,proto3" json:"git_auth_providers,omitempty"`
	Metadata            *proto.Provision_Metadata   `protobuf:"bytes,7,opt,name=metadata,proto3" json:"metadata,omitempty"`
	State               []byte                      `protobuf:"bytes,8,opt,name=state,proto3" json:"state,omitempty"`
	LogLevel            string                      `protobuf:"bytes,9,opt,name=log_level,json=logLevel,proto3" json:"log_level,omitempty"`
	// contains filtered or unexported fields
}

func (*AcquiredJob_WorkspaceBuild) Descriptor deprecated

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

Deprecated: Use AcquiredJob_WorkspaceBuild.ProtoReflect.Descriptor instead.

func (*AcquiredJob_WorkspaceBuild) GetGitAuthProviders added in v0.20.1

func (x *AcquiredJob_WorkspaceBuild) GetGitAuthProviders() []*proto.GitAuthProvider

func (*AcquiredJob_WorkspaceBuild) GetLogLevel added in v0.21.3

func (x *AcquiredJob_WorkspaceBuild) GetLogLevel() string

func (*AcquiredJob_WorkspaceBuild) GetMetadata

func (*AcquiredJob_WorkspaceBuild) GetRichParameterValues added in v0.15.0

func (x *AcquiredJob_WorkspaceBuild) GetRichParameterValues() []*proto.RichParameterValue

func (*AcquiredJob_WorkspaceBuild) GetState

func (x *AcquiredJob_WorkspaceBuild) GetState() []byte

func (*AcquiredJob_WorkspaceBuild) GetVariableValues added in v0.17.4

func (x *AcquiredJob_WorkspaceBuild) GetVariableValues() []*proto.VariableValue

func (*AcquiredJob_WorkspaceBuild) GetWorkspaceBuildId

func (x *AcquiredJob_WorkspaceBuild) GetWorkspaceBuildId() string

func (*AcquiredJob_WorkspaceBuild) GetWorkspaceName

func (x *AcquiredJob_WorkspaceBuild) GetWorkspaceName() string

func (*AcquiredJob_WorkspaceBuild) ProtoMessage

func (*AcquiredJob_WorkspaceBuild) ProtoMessage()

func (*AcquiredJob_WorkspaceBuild) ProtoReflect

func (*AcquiredJob_WorkspaceBuild) Reset

func (x *AcquiredJob_WorkspaceBuild) Reset()

func (*AcquiredJob_WorkspaceBuild) String

func (x *AcquiredJob_WorkspaceBuild) String() string

type AcquiredJob_WorkspaceBuild_

type AcquiredJob_WorkspaceBuild_ struct {
	WorkspaceBuild *AcquiredJob_WorkspaceBuild `protobuf:"bytes,6,opt,name=workspace_build,json=workspaceBuild,proto3,oneof"`
}

type CommitQuotaRequest added in v0.12.7

type CommitQuotaRequest struct {
	JobId     string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"`
	DailyCost int32  `protobuf:"varint,2,opt,name=daily_cost,json=dailyCost,proto3" json:"daily_cost,omitempty"`
	// contains filtered or unexported fields
}

func (*CommitQuotaRequest) Descriptor deprecated added in v0.12.7

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

Deprecated: Use CommitQuotaRequest.ProtoReflect.Descriptor instead.

func (*CommitQuotaRequest) GetDailyCost added in v0.12.7

func (x *CommitQuotaRequest) GetDailyCost() int32

func (*CommitQuotaRequest) GetJobId added in v0.12.7

func (x *CommitQuotaRequest) GetJobId() string

func (*CommitQuotaRequest) ProtoMessage added in v0.12.7

func (*CommitQuotaRequest) ProtoMessage()

func (*CommitQuotaRequest) ProtoReflect added in v0.12.7

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

func (*CommitQuotaRequest) Reset added in v0.12.7

func (x *CommitQuotaRequest) Reset()

func (*CommitQuotaRequest) String added in v0.12.7

func (x *CommitQuotaRequest) String() string

type CommitQuotaResponse added in v0.12.7

type CommitQuotaResponse struct {
	Ok              bool  `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	CreditsConsumed int32 `protobuf:"varint,2,opt,name=credits_consumed,json=creditsConsumed,proto3" json:"credits_consumed,omitempty"`
	Budget          int32 `protobuf:"varint,3,opt,name=budget,proto3" json:"budget,omitempty"`
	// contains filtered or unexported fields
}

func (*CommitQuotaResponse) Descriptor deprecated added in v0.12.7

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

Deprecated: Use CommitQuotaResponse.ProtoReflect.Descriptor instead.

func (*CommitQuotaResponse) GetBudget added in v0.12.7

func (x *CommitQuotaResponse) GetBudget() int32

func (*CommitQuotaResponse) GetCreditsConsumed added in v0.12.7

func (x *CommitQuotaResponse) GetCreditsConsumed() int32

func (*CommitQuotaResponse) GetOk added in v0.12.7

func (x *CommitQuotaResponse) GetOk() bool

func (*CommitQuotaResponse) ProtoMessage added in v0.12.7

func (*CommitQuotaResponse) ProtoMessage()

func (*CommitQuotaResponse) ProtoReflect added in v0.12.7

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

func (*CommitQuotaResponse) Reset added in v0.12.7

func (x *CommitQuotaResponse) Reset()

func (*CommitQuotaResponse) String added in v0.12.7

func (x *CommitQuotaResponse) String() string

type CompletedJob

type CompletedJob struct {
	JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"`
	// Types that are assignable to Type:
	//
	//	*CompletedJob_WorkspaceBuild_
	//	*CompletedJob_TemplateImport_
	//	*CompletedJob_TemplateDryRun_
	Type isCompletedJob_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

CompletedJob is sent when the provisioner daemon completes a job.

func (*CompletedJob) Descriptor deprecated

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

Deprecated: Use CompletedJob.ProtoReflect.Descriptor instead.

func (*CompletedJob) GetJobId

func (x *CompletedJob) GetJobId() string

func (*CompletedJob) GetTemplateDryRun added in v0.6.1

func (x *CompletedJob) GetTemplateDryRun() *CompletedJob_TemplateDryRun

func (*CompletedJob) GetTemplateImport added in v0.4.0

func (x *CompletedJob) GetTemplateImport() *CompletedJob_TemplateImport

func (*CompletedJob) GetType

func (m *CompletedJob) GetType() isCompletedJob_Type

func (*CompletedJob) GetWorkspaceBuild

func (x *CompletedJob) GetWorkspaceBuild() *CompletedJob_WorkspaceBuild

func (*CompletedJob) ProtoMessage

func (*CompletedJob) ProtoMessage()

func (*CompletedJob) ProtoReflect

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

func (*CompletedJob) Reset

func (x *CompletedJob) Reset()

func (*CompletedJob) String

func (x *CompletedJob) String() string

type CompletedJob_TemplateDryRun added in v0.6.1

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

func (*CompletedJob_TemplateDryRun) Descriptor deprecated added in v0.6.1

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

Deprecated: Use CompletedJob_TemplateDryRun.ProtoReflect.Descriptor instead.

func (*CompletedJob_TemplateDryRun) GetResources added in v0.6.1

func (x *CompletedJob_TemplateDryRun) GetResources() []*proto.Resource

func (*CompletedJob_TemplateDryRun) ProtoMessage added in v0.6.1

func (*CompletedJob_TemplateDryRun) ProtoMessage()

func (*CompletedJob_TemplateDryRun) ProtoReflect added in v0.6.1

func (*CompletedJob_TemplateDryRun) Reset added in v0.6.1

func (x *CompletedJob_TemplateDryRun) Reset()

func (*CompletedJob_TemplateDryRun) String added in v0.6.1

func (x *CompletedJob_TemplateDryRun) String() string

type CompletedJob_TemplateDryRun_ added in v0.6.1

type CompletedJob_TemplateDryRun_ struct {
	TemplateDryRun *CompletedJob_TemplateDryRun `protobuf:"bytes,4,opt,name=template_dry_run,json=templateDryRun,proto3,oneof"`
}

type CompletedJob_TemplateImport added in v0.4.0

type CompletedJob_TemplateImport struct {
	StartResources   []*proto.Resource      `protobuf:"bytes,1,rep,name=start_resources,json=startResources,proto3" json:"start_resources,omitempty"`
	StopResources    []*proto.Resource      `protobuf:"bytes,2,rep,name=stop_resources,json=stopResources,proto3" json:"stop_resources,omitempty"`
	RichParameters   []*proto.RichParameter `protobuf:"bytes,3,rep,name=rich_parameters,json=richParameters,proto3" json:"rich_parameters,omitempty"`
	GitAuthProviders []string               `protobuf:"bytes,4,rep,name=git_auth_providers,json=gitAuthProviders,proto3" json:"git_auth_providers,omitempty"`
	// contains filtered or unexported fields
}

func (*CompletedJob_TemplateImport) Descriptor deprecated added in v0.4.0

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

Deprecated: Use CompletedJob_TemplateImport.ProtoReflect.Descriptor instead.

func (*CompletedJob_TemplateImport) GetGitAuthProviders added in v0.18.0

func (x *CompletedJob_TemplateImport) GetGitAuthProviders() []string

func (*CompletedJob_TemplateImport) GetRichParameters added in v0.15.0

func (x *CompletedJob_TemplateImport) GetRichParameters() []*proto.RichParameter

func (*CompletedJob_TemplateImport) GetStartResources added in v0.4.0

func (x *CompletedJob_TemplateImport) GetStartResources() []*proto.Resource

func (*CompletedJob_TemplateImport) GetStopResources added in v0.4.0

func (x *CompletedJob_TemplateImport) GetStopResources() []*proto.Resource

func (*CompletedJob_TemplateImport) ProtoMessage added in v0.4.0

func (*CompletedJob_TemplateImport) ProtoMessage()

func (*CompletedJob_TemplateImport) ProtoReflect added in v0.4.0

func (*CompletedJob_TemplateImport) Reset added in v0.4.0

func (x *CompletedJob_TemplateImport) Reset()

func (*CompletedJob_TemplateImport) String added in v0.4.0

func (x *CompletedJob_TemplateImport) String() string

type CompletedJob_TemplateImport_ added in v0.4.0

type CompletedJob_TemplateImport_ struct {
	TemplateImport *CompletedJob_TemplateImport `protobuf:"bytes,3,opt,name=template_import,json=templateImport,proto3,oneof"`
}

type CompletedJob_WorkspaceBuild

type CompletedJob_WorkspaceBuild struct {
	State     []byte            `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
	Resources []*proto.Resource `protobuf:"bytes,2,rep,name=resources,proto3" json:"resources,omitempty"`
	// contains filtered or unexported fields
}

func (*CompletedJob_WorkspaceBuild) Descriptor deprecated

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

Deprecated: Use CompletedJob_WorkspaceBuild.ProtoReflect.Descriptor instead.

func (*CompletedJob_WorkspaceBuild) GetResources

func (x *CompletedJob_WorkspaceBuild) GetResources() []*proto.Resource

func (*CompletedJob_WorkspaceBuild) GetState

func (x *CompletedJob_WorkspaceBuild) GetState() []byte

func (*CompletedJob_WorkspaceBuild) ProtoMessage

func (*CompletedJob_WorkspaceBuild) ProtoMessage()

func (*CompletedJob_WorkspaceBuild) ProtoReflect

func (*CompletedJob_WorkspaceBuild) Reset

func (x *CompletedJob_WorkspaceBuild) Reset()

func (*CompletedJob_WorkspaceBuild) String

func (x *CompletedJob_WorkspaceBuild) String() string

type CompletedJob_WorkspaceBuild_

type CompletedJob_WorkspaceBuild_ struct {
	WorkspaceBuild *CompletedJob_WorkspaceBuild `protobuf:"bytes,2,opt,name=workspace_build,json=workspaceBuild,proto3,oneof"`
}

type DRPCProvisionerDaemonClient

type DRPCProvisionerDaemonClient interface {
	DRPCConn() drpc.Conn

	AcquireJob(ctx context.Context, in *Empty) (*AcquiredJob, error)
	CommitQuota(ctx context.Context, in *CommitQuotaRequest) (*CommitQuotaResponse, error)
	UpdateJob(ctx context.Context, in *UpdateJobRequest) (*UpdateJobResponse, error)
	FailJob(ctx context.Context, in *FailedJob) (*Empty, error)
	CompleteJob(ctx context.Context, in *CompletedJob) (*Empty, error)
}

func NewDRPCProvisionerDaemonClient

func NewDRPCProvisionerDaemonClient(cc drpc.Conn) DRPCProvisionerDaemonClient

type DRPCProvisionerDaemonDescription

type DRPCProvisionerDaemonDescription struct{}

func (DRPCProvisionerDaemonDescription) Method

func (DRPCProvisionerDaemonDescription) NumMethods

type DRPCProvisionerDaemonServer

type DRPCProvisionerDaemonServer interface {
	AcquireJob(context.Context, *Empty) (*AcquiredJob, error)
	CommitQuota(context.Context, *CommitQuotaRequest) (*CommitQuotaResponse, error)
	UpdateJob(context.Context, *UpdateJobRequest) (*UpdateJobResponse, error)
	FailJob(context.Context, *FailedJob) (*Empty, error)
	CompleteJob(context.Context, *CompletedJob) (*Empty, error)
}

type DRPCProvisionerDaemonUnimplementedServer

type DRPCProvisionerDaemonUnimplementedServer struct{}

func (*DRPCProvisionerDaemonUnimplementedServer) AcquireJob

func (*DRPCProvisionerDaemonUnimplementedServer) CommitQuota added in v0.12.7

func (*DRPCProvisionerDaemonUnimplementedServer) CompleteJob

func (*DRPCProvisionerDaemonUnimplementedServer) FailJob

func (*DRPCProvisionerDaemonUnimplementedServer) UpdateJob

type DRPCProvisionerDaemon_AcquireJobStream

type DRPCProvisionerDaemon_AcquireJobStream interface {
	drpc.Stream
	SendAndClose(*AcquiredJob) error
}

type DRPCProvisionerDaemon_CommitQuotaStream added in v0.12.7

type DRPCProvisionerDaemon_CommitQuotaStream interface {
	drpc.Stream
	SendAndClose(*CommitQuotaResponse) error
}

type DRPCProvisionerDaemon_CompleteJobStream

type DRPCProvisionerDaemon_CompleteJobStream interface {
	drpc.Stream
	SendAndClose(*Empty) error
}

type DRPCProvisionerDaemon_FailJobStream

type DRPCProvisionerDaemon_FailJobStream interface {
	drpc.Stream
	SendAndClose(*Empty) error
}

type DRPCProvisionerDaemon_UpdateJobStream

type DRPCProvisionerDaemon_UpdateJobStream interface {
	drpc.Stream
	SendAndClose(*UpdateJobResponse) error
}

type Empty

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

Empty indicates a successful request/response.

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type FailedJob

type FailedJob struct {
	JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"`
	Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// Types that are assignable to Type:
	//
	//	*FailedJob_WorkspaceBuild_
	//	*FailedJob_TemplateImport_
	//	*FailedJob_TemplateDryRun_
	Type      isFailedJob_Type `protobuf_oneof:"type"`
	ErrorCode string           `protobuf:"bytes,6,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"`
	// contains filtered or unexported fields
}

func (*FailedJob) Descriptor deprecated

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

Deprecated: Use FailedJob.ProtoReflect.Descriptor instead.

func (*FailedJob) GetError

func (x *FailedJob) GetError() string

func (*FailedJob) GetErrorCode added in v0.19.0

func (x *FailedJob) GetErrorCode() string

func (*FailedJob) GetJobId

func (x *FailedJob) GetJobId() string

func (*FailedJob) GetTemplateDryRun added in v0.6.1

func (x *FailedJob) GetTemplateDryRun() *FailedJob_TemplateDryRun

func (*FailedJob) GetTemplateImport added in v0.4.0

func (x *FailedJob) GetTemplateImport() *FailedJob_TemplateImport

func (*FailedJob) GetType

func (m *FailedJob) GetType() isFailedJob_Type

func (*FailedJob) GetWorkspaceBuild

func (x *FailedJob) GetWorkspaceBuild() *FailedJob_WorkspaceBuild

func (*FailedJob) ProtoMessage

func (*FailedJob) ProtoMessage()

func (*FailedJob) ProtoReflect

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

func (*FailedJob) Reset

func (x *FailedJob) Reset()

func (*FailedJob) String

func (x *FailedJob) String() string

type FailedJob_TemplateDryRun added in v0.6.1

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

func (*FailedJob_TemplateDryRun) Descriptor deprecated added in v0.6.1

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

Deprecated: Use FailedJob_TemplateDryRun.ProtoReflect.Descriptor instead.

func (*FailedJob_TemplateDryRun) ProtoMessage added in v0.6.1

func (*FailedJob_TemplateDryRun) ProtoMessage()

func (*FailedJob_TemplateDryRun) ProtoReflect added in v0.6.1

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

func (*FailedJob_TemplateDryRun) Reset added in v0.6.1

func (x *FailedJob_TemplateDryRun) Reset()

func (*FailedJob_TemplateDryRun) String added in v0.6.1

func (x *FailedJob_TemplateDryRun) String() string

type FailedJob_TemplateDryRun_ added in v0.6.1

type FailedJob_TemplateDryRun_ struct {
	TemplateDryRun *FailedJob_TemplateDryRun `protobuf:"bytes,5,opt,name=template_dry_run,json=templateDryRun,proto3,oneof"`
}

type FailedJob_TemplateImport added in v0.4.0

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

func (*FailedJob_TemplateImport) Descriptor deprecated added in v0.4.0

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

Deprecated: Use FailedJob_TemplateImport.ProtoReflect.Descriptor instead.

func (*FailedJob_TemplateImport) ProtoMessage added in v0.4.0

func (*FailedJob_TemplateImport) ProtoMessage()

func (*FailedJob_TemplateImport) ProtoReflect added in v0.4.0

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

func (*FailedJob_TemplateImport) Reset added in v0.4.0

func (x *FailedJob_TemplateImport) Reset()

func (*FailedJob_TemplateImport) String added in v0.4.0

func (x *FailedJob_TemplateImport) String() string

type FailedJob_TemplateImport_ added in v0.4.0

type FailedJob_TemplateImport_ struct {
	TemplateImport *FailedJob_TemplateImport `protobuf:"bytes,4,opt,name=template_import,json=templateImport,proto3,oneof"`
}

type FailedJob_WorkspaceBuild

type FailedJob_WorkspaceBuild struct {
	State []byte `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (*FailedJob_WorkspaceBuild) Descriptor deprecated

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

Deprecated: Use FailedJob_WorkspaceBuild.ProtoReflect.Descriptor instead.

func (*FailedJob_WorkspaceBuild) GetState

func (x *FailedJob_WorkspaceBuild) GetState() []byte

func (*FailedJob_WorkspaceBuild) ProtoMessage

func (*FailedJob_WorkspaceBuild) ProtoMessage()

func (*FailedJob_WorkspaceBuild) ProtoReflect

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

func (*FailedJob_WorkspaceBuild) Reset

func (x *FailedJob_WorkspaceBuild) Reset()

func (*FailedJob_WorkspaceBuild) String

func (x *FailedJob_WorkspaceBuild) String() string

type FailedJob_WorkspaceBuild_

type FailedJob_WorkspaceBuild_ struct {
	WorkspaceBuild *FailedJob_WorkspaceBuild `protobuf:"bytes,3,opt,name=workspace_build,json=workspaceBuild,proto3,oneof"`
}

type Log

type Log struct {
	Source    LogSource      `protobuf:"varint,1,opt,name=source,proto3,enum=provisionerd.LogSource" json:"source,omitempty"`
	Level     proto.LogLevel `protobuf:"varint,2,opt,name=level,proto3,enum=provisioner.LogLevel" json:"level,omitempty"`
	CreatedAt int64          `protobuf:"varint,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	Stage     string         `protobuf:"bytes,4,opt,name=stage,proto3" json:"stage,omitempty"`
	Output    string         `protobuf:"bytes,5,opt,name=output,proto3" json:"output,omitempty"`
	// contains filtered or unexported fields
}

Log represents output from a job.

func (*Log) Descriptor deprecated

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

Deprecated: Use Log.ProtoReflect.Descriptor instead.

func (*Log) GetCreatedAt

func (x *Log) GetCreatedAt() int64

func (*Log) GetLevel

func (x *Log) GetLevel() proto.LogLevel

func (*Log) GetOutput

func (x *Log) GetOutput() string

func (*Log) GetSource

func (x *Log) GetSource() LogSource

func (*Log) GetStage

func (x *Log) GetStage() string

func (*Log) ProtoMessage

func (*Log) ProtoMessage()

func (*Log) ProtoReflect

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

func (*Log) Reset

func (x *Log) Reset()

func (*Log) String

func (x *Log) String() string

type LogSource

type LogSource int32

LogSource represents the sender of the log.

const (
	LogSource_PROVISIONER_DAEMON LogSource = 0
	LogSource_PROVISIONER        LogSource = 1
)

func (LogSource) Descriptor

func (LogSource) Descriptor() protoreflect.EnumDescriptor

func (LogSource) Enum

func (x LogSource) Enum() *LogSource

func (LogSource) EnumDescriptor deprecated

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

Deprecated: Use LogSource.Descriptor instead.

func (LogSource) Number

func (x LogSource) Number() protoreflect.EnumNumber

func (LogSource) String

func (x LogSource) String() string

func (LogSource) Type

type QuotaCommitter added in v0.12.7

type QuotaCommitter interface {
	CommitQuota(ctx context.Context, request *CommitQuotaRequest) (*CommitQuotaResponse, error)
}

type UpdateJobRequest

type UpdateJobRequest struct {
	JobId              string                    `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"`
	Logs               []*Log                    `protobuf:"bytes,2,rep,name=logs,proto3" json:"logs,omitempty"`
	TemplateVariables  []*proto.TemplateVariable `protobuf:"bytes,4,rep,name=template_variables,json=templateVariables,proto3" json:"template_variables,omitempty"`
	UserVariableValues []*proto.VariableValue    `protobuf:"bytes,5,rep,name=user_variable_values,json=userVariableValues,proto3" json:"user_variable_values,omitempty"`
	Readme             []byte                    `protobuf:"bytes,6,opt,name=readme,proto3" json:"readme,omitempty"`
	// contains filtered or unexported fields
}

This message should be sent periodically as a heartbeat.

func (*UpdateJobRequest) Descriptor deprecated

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

Deprecated: Use UpdateJobRequest.ProtoReflect.Descriptor instead.

func (*UpdateJobRequest) GetJobId

func (x *UpdateJobRequest) GetJobId() string

func (*UpdateJobRequest) GetLogs

func (x *UpdateJobRequest) GetLogs() []*Log

func (*UpdateJobRequest) GetReadme added in v0.5.10

func (x *UpdateJobRequest) GetReadme() []byte

func (*UpdateJobRequest) GetTemplateVariables added in v0.17.4

func (x *UpdateJobRequest) GetTemplateVariables() []*proto.TemplateVariable

func (*UpdateJobRequest) GetUserVariableValues added in v0.17.4

func (x *UpdateJobRequest) GetUserVariableValues() []*proto.VariableValue

func (*UpdateJobRequest) ProtoMessage

func (*UpdateJobRequest) ProtoMessage()

func (*UpdateJobRequest) ProtoReflect

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

func (*UpdateJobRequest) Reset

func (x *UpdateJobRequest) Reset()

func (*UpdateJobRequest) String

func (x *UpdateJobRequest) String() string

type UpdateJobResponse

type UpdateJobResponse struct {
	Canceled       bool                   `protobuf:"varint,1,opt,name=canceled,proto3" json:"canceled,omitempty"`
	VariableValues []*proto.VariableValue `protobuf:"bytes,3,rep,name=variable_values,json=variableValues,proto3" json:"variable_values,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateJobResponse) Descriptor deprecated

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

Deprecated: Use UpdateJobResponse.ProtoReflect.Descriptor instead.

func (*UpdateJobResponse) GetCanceled

func (x *UpdateJobResponse) GetCanceled() bool

func (*UpdateJobResponse) GetVariableValues added in v0.17.4

func (x *UpdateJobResponse) GetVariableValues() []*proto.VariableValue

func (*UpdateJobResponse) ProtoMessage

func (*UpdateJobResponse) ProtoMessage()

func (*UpdateJobResponse) ProtoReflect

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

func (*UpdateJobResponse) Reset

func (x *UpdateJobResponse) Reset()

func (*UpdateJobResponse) String

func (x *UpdateJobResponse) String() string

Jump to

Keyboard shortcuts

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