Documentation ¶
Index ¶
- Variables
- func DRPCRegisterProvisionerDaemon(mux drpc.Mux, impl DRPCProvisionerDaemonServer) error
- type AcquiredJob
- func (*AcquiredJob) Descriptor() ([]byte, []int)deprecated
- func (x *AcquiredJob) GetCreatedAt() int64
- func (x *AcquiredJob) GetJobId() string
- func (x *AcquiredJob) GetProvisioner() string
- func (x *AcquiredJob) GetTemplateDryRun() *AcquiredJob_TemplateDryRun
- func (x *AcquiredJob) GetTemplateImport() *AcquiredJob_TemplateImport
- func (x *AcquiredJob) GetTemplateSourceArchive() []byte
- func (m *AcquiredJob) GetType() isAcquiredJob_Type
- func (x *AcquiredJob) GetUserName() string
- func (x *AcquiredJob) GetWorkspaceBuild() *AcquiredJob_WorkspaceBuild
- func (*AcquiredJob) ProtoMessage()
- func (x *AcquiredJob) ProtoReflect() protoreflect.Message
- func (x *AcquiredJob) Reset()
- func (x *AcquiredJob) String() string
- type AcquiredJob_TemplateDryRun
- func (*AcquiredJob_TemplateDryRun) Descriptor() ([]byte, []int)deprecated
- func (x *AcquiredJob_TemplateDryRun) GetMetadata() *proto.Provision_Metadata
- func (x *AcquiredJob_TemplateDryRun) GetParameterValues() []*proto.ParameterValue
- func (x *AcquiredJob_TemplateDryRun) GetRichParameterValues() []*proto.RichParameterValue
- func (*AcquiredJob_TemplateDryRun) ProtoMessage()
- func (x *AcquiredJob_TemplateDryRun) ProtoReflect() protoreflect.Message
- func (x *AcquiredJob_TemplateDryRun) Reset()
- func (x *AcquiredJob_TemplateDryRun) String() string
- type AcquiredJob_TemplateDryRun_
- type AcquiredJob_TemplateImport
- func (*AcquiredJob_TemplateImport) Descriptor() ([]byte, []int)deprecated
- func (x *AcquiredJob_TemplateImport) GetMetadata() *proto.Provision_Metadata
- func (*AcquiredJob_TemplateImport) ProtoMessage()
- func (x *AcquiredJob_TemplateImport) ProtoReflect() protoreflect.Message
- func (x *AcquiredJob_TemplateImport) Reset()
- func (x *AcquiredJob_TemplateImport) String() string
- type AcquiredJob_TemplateImport_
- type AcquiredJob_WorkspaceBuild
- func (*AcquiredJob_WorkspaceBuild) Descriptor() ([]byte, []int)deprecated
- func (x *AcquiredJob_WorkspaceBuild) GetMetadata() *proto.Provision_Metadata
- func (x *AcquiredJob_WorkspaceBuild) GetParameterValues() []*proto.ParameterValue
- func (x *AcquiredJob_WorkspaceBuild) GetRichParameterValues() []*proto.RichParameterValue
- func (x *AcquiredJob_WorkspaceBuild) GetState() []byte
- func (x *AcquiredJob_WorkspaceBuild) GetWorkspaceBuildId() string
- func (x *AcquiredJob_WorkspaceBuild) GetWorkspaceName() string
- func (*AcquiredJob_WorkspaceBuild) ProtoMessage()
- func (x *AcquiredJob_WorkspaceBuild) ProtoReflect() protoreflect.Message
- func (x *AcquiredJob_WorkspaceBuild) Reset()
- func (x *AcquiredJob_WorkspaceBuild) String() string
- type AcquiredJob_WorkspaceBuild_
- type CommitQuotaRequest
- func (*CommitQuotaRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CommitQuotaRequest) GetDailyCost() int32
- func (x *CommitQuotaRequest) GetJobId() string
- func (*CommitQuotaRequest) ProtoMessage()
- func (x *CommitQuotaRequest) ProtoReflect() protoreflect.Message
- func (x *CommitQuotaRequest) Reset()
- func (x *CommitQuotaRequest) String() string
- type CommitQuotaResponse
- func (*CommitQuotaResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CommitQuotaResponse) GetBudget() int32
- func (x *CommitQuotaResponse) GetCreditsConsumed() int32
- func (x *CommitQuotaResponse) GetOk() bool
- func (*CommitQuotaResponse) ProtoMessage()
- func (x *CommitQuotaResponse) ProtoReflect() protoreflect.Message
- func (x *CommitQuotaResponse) Reset()
- func (x *CommitQuotaResponse) String() string
- type CompletedJob
- func (*CompletedJob) Descriptor() ([]byte, []int)deprecated
- func (x *CompletedJob) GetJobId() string
- func (x *CompletedJob) GetTemplateDryRun() *CompletedJob_TemplateDryRun
- func (x *CompletedJob) GetTemplateImport() *CompletedJob_TemplateImport
- func (m *CompletedJob) GetType() isCompletedJob_Type
- func (x *CompletedJob) GetWorkspaceBuild() *CompletedJob_WorkspaceBuild
- func (*CompletedJob) ProtoMessage()
- func (x *CompletedJob) ProtoReflect() protoreflect.Message
- func (x *CompletedJob) Reset()
- func (x *CompletedJob) String() string
- type CompletedJob_TemplateDryRun
- func (*CompletedJob_TemplateDryRun) Descriptor() ([]byte, []int)deprecated
- func (x *CompletedJob_TemplateDryRun) GetResources() []*proto.Resource
- func (*CompletedJob_TemplateDryRun) ProtoMessage()
- func (x *CompletedJob_TemplateDryRun) ProtoReflect() protoreflect.Message
- func (x *CompletedJob_TemplateDryRun) Reset()
- func (x *CompletedJob_TemplateDryRun) String() string
- type CompletedJob_TemplateDryRun_
- type CompletedJob_TemplateImport
- func (*CompletedJob_TemplateImport) Descriptor() ([]byte, []int)deprecated
- func (x *CompletedJob_TemplateImport) GetRichParameters() []*proto.RichParameter
- func (x *CompletedJob_TemplateImport) GetStartResources() []*proto.Resource
- func (x *CompletedJob_TemplateImport) GetStopResources() []*proto.Resource
- func (*CompletedJob_TemplateImport) ProtoMessage()
- func (x *CompletedJob_TemplateImport) ProtoReflect() protoreflect.Message
- func (x *CompletedJob_TemplateImport) Reset()
- func (x *CompletedJob_TemplateImport) String() string
- type CompletedJob_TemplateImport_
- type CompletedJob_WorkspaceBuild
- func (*CompletedJob_WorkspaceBuild) Descriptor() ([]byte, []int)deprecated
- func (x *CompletedJob_WorkspaceBuild) GetResources() []*proto.Resource
- func (x *CompletedJob_WorkspaceBuild) GetState() []byte
- func (*CompletedJob_WorkspaceBuild) ProtoMessage()
- func (x *CompletedJob_WorkspaceBuild) ProtoReflect() protoreflect.Message
- func (x *CompletedJob_WorkspaceBuild) Reset()
- func (x *CompletedJob_WorkspaceBuild) String() string
- type CompletedJob_WorkspaceBuild_
- type DRPCProvisionerDaemonClient
- type DRPCProvisionerDaemonDescription
- type DRPCProvisionerDaemonServer
- type DRPCProvisionerDaemonUnimplementedServer
- func (s *DRPCProvisionerDaemonUnimplementedServer) AcquireJob(context.Context, *Empty) (*AcquiredJob, error)
- func (s *DRPCProvisionerDaemonUnimplementedServer) CommitQuota(context.Context, *CommitQuotaRequest) (*CommitQuotaResponse, error)
- func (s *DRPCProvisionerDaemonUnimplementedServer) CompleteJob(context.Context, *CompletedJob) (*Empty, error)
- func (s *DRPCProvisionerDaemonUnimplementedServer) FailJob(context.Context, *FailedJob) (*Empty, error)
- func (s *DRPCProvisionerDaemonUnimplementedServer) UpdateJob(context.Context, *UpdateJobRequest) (*UpdateJobResponse, error)
- type DRPCProvisionerDaemon_AcquireJobStream
- type DRPCProvisionerDaemon_CommitQuotaStream
- type DRPCProvisionerDaemon_CompleteJobStream
- type DRPCProvisionerDaemon_FailJobStream
- type DRPCProvisionerDaemon_UpdateJobStream
- type Empty
- type FailedJob
- func (*FailedJob) Descriptor() ([]byte, []int)deprecated
- func (x *FailedJob) GetError() string
- func (x *FailedJob) GetJobId() string
- func (x *FailedJob) GetTemplateDryRun() *FailedJob_TemplateDryRun
- func (x *FailedJob) GetTemplateImport() *FailedJob_TemplateImport
- func (m *FailedJob) GetType() isFailedJob_Type
- func (x *FailedJob) GetWorkspaceBuild() *FailedJob_WorkspaceBuild
- func (*FailedJob) ProtoMessage()
- func (x *FailedJob) ProtoReflect() protoreflect.Message
- func (x *FailedJob) Reset()
- func (x *FailedJob) String() string
- type FailedJob_TemplateDryRun
- type FailedJob_TemplateDryRun_
- type FailedJob_TemplateImport
- type FailedJob_TemplateImport_
- type FailedJob_WorkspaceBuild
- func (*FailedJob_WorkspaceBuild) Descriptor() ([]byte, []int)deprecated
- func (x *FailedJob_WorkspaceBuild) GetState() []byte
- func (*FailedJob_WorkspaceBuild) ProtoMessage()
- func (x *FailedJob_WorkspaceBuild) ProtoReflect() protoreflect.Message
- func (x *FailedJob_WorkspaceBuild) Reset()
- func (x *FailedJob_WorkspaceBuild) String() string
- type FailedJob_WorkspaceBuild_
- type Log
- func (*Log) Descriptor() ([]byte, []int)deprecated
- func (x *Log) GetCreatedAt() int64
- func (x *Log) GetLevel() proto.LogLevel
- func (x *Log) GetOutput() string
- func (x *Log) GetSource() LogSource
- func (x *Log) GetStage() string
- func (*Log) ProtoMessage()
- func (x *Log) ProtoReflect() protoreflect.Message
- func (x *Log) Reset()
- func (x *Log) String() string
- type LogSource
- type QuotaCommitter
- type UpdateJobRequest
- func (*UpdateJobRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateJobRequest) GetJobId() string
- func (x *UpdateJobRequest) GetLogs() []*Log
- func (x *UpdateJobRequest) GetParameterSchemas() []*proto.ParameterSchema
- func (x *UpdateJobRequest) GetReadme() []byte
- func (*UpdateJobRequest) ProtoMessage()
- func (x *UpdateJobRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateJobRequest) Reset()
- func (x *UpdateJobRequest) String() string
- type UpdateJobResponse
- func (*UpdateJobResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateJobResponse) GetCanceled() bool
- func (x *UpdateJobResponse) GetParameterValues() []*proto.ParameterValue
- func (*UpdateJobResponse) ProtoMessage()
- func (x *UpdateJobResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateJobResponse) Reset()
- func (x *UpdateJobResponse) String() string
Constants ¶
This section is empty.
Variables ¶
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.
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"` // 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) 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 { ParameterValues []*proto.ParameterValue `protobuf:"bytes,1,rep,name=parameter_values,json=parameterValues,proto3" json:"parameter_values,omitempty"` RichParameterValues []*proto.RichParameterValue `protobuf:"bytes,2,rep,name=rich_parameter_values,json=richParameterValues,proto3" json:"rich_parameter_values,omitempty"` Metadata *proto.Provision_Metadata `protobuf:"bytes,3,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 (x *AcquiredJob_TemplateDryRun) GetMetadata() *proto.Provision_Metadata
func (*AcquiredJob_TemplateDryRun) GetParameterValues ¶ added in v0.6.1
func (x *AcquiredJob_TemplateDryRun) GetParameterValues() []*proto.ParameterValue
func (*AcquiredJob_TemplateDryRun) GetRichParameterValues ¶ added in v0.15.2
func (x *AcquiredJob_TemplateDryRun) GetRichParameterValues() []*proto.RichParameterValue
func (*AcquiredJob_TemplateDryRun) ProtoMessage ¶ added in v0.6.1
func (*AcquiredJob_TemplateDryRun) ProtoMessage()
func (*AcquiredJob_TemplateDryRun) ProtoReflect ¶ added in v0.6.1
func (x *AcquiredJob_TemplateDryRun) ProtoReflect() protoreflect.Message
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"` // 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 (x *AcquiredJob_TemplateImport) GetMetadata() *proto.Provision_Metadata
func (*AcquiredJob_TemplateImport) ProtoMessage ¶ added in v0.4.0
func (*AcquiredJob_TemplateImport) ProtoMessage()
func (*AcquiredJob_TemplateImport) ProtoReflect ¶ added in v0.4.0
func (x *AcquiredJob_TemplateImport) ProtoReflect() protoreflect.Message
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"` ParameterValues []*proto.ParameterValue `protobuf:"bytes,3,rep,name=parameter_values,json=parameterValues,proto3" json:"parameter_values,omitempty"` RichParameterValues []*proto.RichParameterValue `protobuf:"bytes,4,rep,name=rich_parameter_values,json=richParameterValues,proto3" json:"rich_parameter_values,omitempty"` Metadata *proto.Provision_Metadata `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` State []byte `protobuf:"bytes,6,opt,name=state,proto3" json:"state,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) GetMetadata ¶
func (x *AcquiredJob_WorkspaceBuild) GetMetadata() *proto.Provision_Metadata
func (*AcquiredJob_WorkspaceBuild) GetParameterValues ¶
func (x *AcquiredJob_WorkspaceBuild) GetParameterValues() []*proto.ParameterValue
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) 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 (x *AcquiredJob_WorkspaceBuild) ProtoReflect() protoreflect.Message
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 (x *CompletedJob_TemplateDryRun) ProtoReflect() protoreflect.Message
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"` // 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) 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 (x *CompletedJob_TemplateImport) ProtoReflect() protoreflect.Message
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 (x *CompletedJob_WorkspaceBuild) ProtoReflect() protoreflect.Message
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) NumMethods ¶
func (DRPCProvisionerDaemonDescription) NumMethods() int
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 (s *DRPCProvisionerDaemonUnimplementedServer) AcquireJob(context.Context, *Empty) (*AcquiredJob, error)
func (*DRPCProvisionerDaemonUnimplementedServer) CommitQuota ¶ added in v0.12.7
func (s *DRPCProvisionerDaemonUnimplementedServer) CommitQuota(context.Context, *CommitQuotaRequest) (*CommitQuotaResponse, error)
func (*DRPCProvisionerDaemonUnimplementedServer) CompleteJob ¶
func (s *DRPCProvisionerDaemonUnimplementedServer) CompleteJob(context.Context, *CompletedJob) (*Empty, error)
func (*DRPCProvisionerDaemonUnimplementedServer) UpdateJob ¶
func (s *DRPCProvisionerDaemonUnimplementedServer) UpdateJob(context.Context, *UpdateJobRequest) (*UpdateJobResponse, error)
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_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) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
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"` // contains filtered or unexported fields }
func (*FailedJob) Descriptor
deprecated
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) GetWorkspaceBuild ¶
func (x *FailedJob) GetWorkspaceBuild() *FailedJob_WorkspaceBuild
func (*FailedJob) ProtoMessage ¶
func (*FailedJob) ProtoMessage()
func (*FailedJob) ProtoReflect ¶
func (x *FailedJob) ProtoReflect() protoreflect.Message
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) GetCreatedAt ¶
func (*Log) ProtoMessage ¶
func (*Log) ProtoMessage()
func (*Log) ProtoReflect ¶
func (x *Log) ProtoReflect() protoreflect.Message
type LogSource ¶
type LogSource int32
LogSource represents the sender of the log.
func (LogSource) Descriptor ¶
func (LogSource) Descriptor() protoreflect.EnumDescriptor
func (LogSource) EnumDescriptor
deprecated
func (LogSource) Number ¶
func (x LogSource) Number() protoreflect.EnumNumber
func (LogSource) Type ¶
func (LogSource) Type() protoreflect.EnumType
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"` ParameterSchemas []*proto.ParameterSchema `protobuf:"bytes,3,rep,name=parameter_schemas,json=parameterSchemas,proto3" json:"parameter_schemas,omitempty"` Readme []byte `protobuf:"bytes,4,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) GetParameterSchemas ¶
func (x *UpdateJobRequest) GetParameterSchemas() []*proto.ParameterSchema
func (*UpdateJobRequest) GetReadme ¶ added in v0.5.10
func (x *UpdateJobRequest) GetReadme() []byte
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"` // If parameter schemas are sent, the job will respond // with resolved parameter values. ParameterValues []*proto.ParameterValue `protobuf:"bytes,2,rep,name=parameter_values,json=parameterValues,proto3" json:"parameter_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) GetParameterValues ¶
func (x *UpdateJobResponse) GetParameterValues() []*proto.ParameterValue
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