Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterBuildDriverServer(s grpc.ServiceRegistrar, srv BuildDriverServer)
- type BuildDriverClient
- type BuildDriverServer
- type BuildDriver_BuildClient
- type BuildDriver_BuildServer
- type BuildEvent
- func (*BuildEvent) Descriptor() ([]byte, []int)deprecated
- func (x *BuildEvent) GetBuildId() string
- func (x *BuildEvent) GetCacheEvent() *CacheEvent
- func (x *BuildEvent) GetDone() *Done
- func (x *BuildEvent) GetEvent() isBuildEvent_Event
- func (x *BuildEvent) GetFailure() *Failure
- func (x *BuildEvent) GetImageChunk() *ImageChunk
- func (x *BuildEvent) GetLog() *LogEvent
- func (x *BuildEvent) GetStageEvent() *StageEvent
- func (*BuildEvent) ProtoMessage()
- func (x *BuildEvent) ProtoReflect() protoreflect.Message
- func (x *BuildEvent) Reset()
- func (x *BuildEvent) String() string
- type BuildEvent_CacheEvent
- type BuildEvent_Done
- type BuildEvent_Failure
- type BuildEvent_ImageChunk
- type BuildEvent_Log
- type BuildEvent_StageEvent
- type BuildKind
- type BuildRequest
- func (*BuildRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BuildRequest) GetBuildArgs() map[string]string
- func (x *BuildRequest) GetBuildId() string
- func (x *BuildRequest) GetCache() *CacheHints
- func (x *BuildRequest) GetContext() *ContextRef
- func (x *BuildRequest) GetDockerfilePath() string
- func (x *BuildRequest) GetKind() BuildKind
- func (x *BuildRequest) GetLabels() map[string]string
- func (x *BuildRequest) GetNetwork() NetworkPolicy
- func (x *BuildRequest) GetOptions() map[string]string
- func (x *BuildRequest) GetPlatform() string
- func (x *BuildRequest) GetSecrets() []*SecretRef
- func (x *BuildRequest) GetTag() string
- func (x *BuildRequest) GetTarget() string
- func (x *BuildRequest) GetTimeoutSeconds() uint32
- func (*BuildRequest) ProtoMessage()
- func (x *BuildRequest) ProtoReflect() protoreflect.Message
- func (x *BuildRequest) Reset()
- func (x *BuildRequest) String() string
- type CacheEvent
- func (*CacheEvent) Descriptor() ([]byte, []int)deprecated
- func (x *CacheEvent) GetStage() string
- func (x *CacheEvent) GetState() CacheState
- func (x *CacheEvent) GetWarning() string
- func (*CacheEvent) ProtoMessage()
- func (x *CacheEvent) ProtoReflect() protoreflect.Message
- func (x *CacheEvent) Reset()
- func (x *CacheEvent) String() string
- type CacheHints
- func (*CacheHints) Descriptor() ([]byte, []int)deprecated
- func (x *CacheHints) GetCacheId() string
- func (x *CacheHints) GetExportRefs() []string
- func (x *CacheHints) GetImportRefs() []string
- func (x *CacheHints) GetNoCache() bool
- func (*CacheHints) ProtoMessage()
- func (x *CacheHints) ProtoReflect() protoreflect.Message
- func (x *CacheHints) Reset()
- func (x *CacheHints) String() string
- type CacheState
- type CancelRequest
- type CancelResponse
- type Capabilities
- func (*Capabilities) Descriptor() ([]byte, []int)deprecated
- func (x *Capabilities) GetCancel() bool
- func (x *Capabilities) GetKinds() []BuildKind
- func (x *Capabilities) GetNeedsDaemon() bool
- func (x *Capabilities) GetPerStageCache() bool
- func (x *Capabilities) GetPlatforms() []string
- func (x *Capabilities) GetRootless() bool
- func (x *Capabilities) GetStageEvents() bool
- func (*Capabilities) ProtoMessage()
- func (x *Capabilities) ProtoReflect() protoreflect.Message
- func (x *Capabilities) Reset()
- func (x *Capabilities) String() string
- type ContextChunk
- func (*ContextChunk) Descriptor() ([]byte, []int)deprecated
- func (x *ContextChunk) GetData() []byte
- func (x *ContextChunk) GetLast() bool
- func (*ContextChunk) ProtoMessage()
- func (x *ContextChunk) ProtoReflect() protoreflect.Message
- func (x *ContextChunk) Reset()
- func (x *ContextChunk) String() string
- type ContextRef
- func (*ContextRef) Descriptor() ([]byte, []int)deprecated
- func (x *ContextRef) GetLocalPath() string
- func (x *ContextRef) GetSource() isContextRef_Source
- func (x *ContextRef) GetTarPath() string
- func (*ContextRef) ProtoMessage()
- func (x *ContextRef) ProtoReflect() protoreflect.Message
- func (x *ContextRef) Reset()
- func (x *ContextRef) String() string
- type ContextRef_LocalPath
- type ContextRef_TarPath
- type DescribeRequest
- func (*DescribeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DescribeRequest) GetHostProtocolVersions() []uint32
- func (*DescribeRequest) ProtoMessage()
- func (x *DescribeRequest) ProtoReflect() protoreflect.Message
- func (x *DescribeRequest) Reset()
- func (x *DescribeRequest) String() string
- type DescribeResponse
- func (*DescribeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DescribeResponse) GetCapabilities() *Capabilities
- func (x *DescribeResponse) GetName() string
- func (x *DescribeResponse) GetProtocolVersion() uint32
- func (x *DescribeResponse) GetVersion() string
- func (*DescribeResponse) ProtoMessage()
- func (x *DescribeResponse) ProtoReflect() protoreflect.Message
- func (x *DescribeResponse) Reset()
- func (x *DescribeResponse) String() string
- type Done
- func (*Done) Descriptor() ([]byte, []int)deprecated
- func (x *Done) GetDigest() string
- func (x *Done) GetDurationMs() int64
- func (x *Done) GetImageRef() string
- func (x *Done) GetSizeBytes() int64
- func (*Done) ProtoMessage()
- func (x *Done) ProtoReflect() protoreflect.Message
- func (x *Done) Reset()
- func (x *Done) String() string
- type Failure
- func (*Failure) Descriptor() ([]byte, []int)deprecated
- func (x *Failure) GetCode() FailureCode
- func (x *Failure) GetMessage() string
- func (x *Failure) GetRetryable() bool
- func (*Failure) ProtoMessage()
- func (x *Failure) ProtoReflect() protoreflect.Message
- func (x *Failure) Reset()
- func (x *Failure) String() string
- type FailureCode
- func (FailureCode) Descriptor() protoreflect.EnumDescriptor
- func (x FailureCode) Enum() *FailureCode
- func (FailureCode) EnumDescriptor() ([]byte, []int)deprecated
- func (x FailureCode) Number() protoreflect.EnumNumber
- func (x FailureCode) String() string
- func (FailureCode) Type() protoreflect.EnumType
- type FinalState
- type ImageChunk
- type LogEvent
- func (*LogEvent) Descriptor() ([]byte, []int)deprecated
- func (x *LogEvent) GetData() []byte
- func (x *LogEvent) GetStage() string
- func (x *LogEvent) GetStream() LogStream
- func (*LogEvent) ProtoMessage()
- func (x *LogEvent) ProtoReflect() protoreflect.Message
- func (x *LogEvent) Reset()
- func (x *LogEvent) String() string
- type LogStream
- type NetworkPolicy
- func (NetworkPolicy) Descriptor() protoreflect.EnumDescriptor
- func (x NetworkPolicy) Enum() *NetworkPolicy
- func (NetworkPolicy) EnumDescriptor() ([]byte, []int)deprecated
- func (x NetworkPolicy) Number() protoreflect.EnumNumber
- func (x NetworkPolicy) String() string
- func (NetworkPolicy) Type() protoreflect.EnumType
- type Phase
- type SecretRef
- type StageEvent
- func (*StageEvent) Descriptor() ([]byte, []int)deprecated
- func (x *StageEvent) GetError() string
- func (x *StageEvent) GetLabel() string
- func (x *StageEvent) GetPhase() Phase
- func (x *StageEvent) GetStage() string
- func (x *StageEvent) GetStep() string
- func (*StageEvent) ProtoMessage()
- func (x *StageEvent) ProtoReflect() protoreflect.Message
- func (x *StageEvent) Reset()
- func (x *StageEvent) String() string
- type UnimplementedBuildDriverServer
- func (UnimplementedBuildDriverServer) Build(*BuildRequest, grpc.ServerStreamingServer[BuildEvent]) error
- func (UnimplementedBuildDriverServer) Cancel(context.Context, *CancelRequest) (*CancelResponse, error)
- func (UnimplementedBuildDriverServer) Describe(context.Context, *DescribeRequest) (*DescribeResponse, error)
- type UnsafeBuildDriverServer
Constants ¶
const ( BuildDriver_Describe_FullMethodName = "/levelrail.build.v1.BuildDriver/Describe" BuildDriver_Build_FullMethodName = "/levelrail.build.v1.BuildDriver/Build" BuildDriver_Cancel_FullMethodName = "/levelrail.build.v1.BuildDriver/Cancel" )
Variables ¶
var ( BuildKind_name = map[int32]string{ 0: "BUILD_KIND_UNSPECIFIED", 1: "BUILD_KIND_DOCKERFILE", 2: "BUILD_KIND_RAILPACK", 3: "BUILD_KIND_OTHER", } BuildKind_value = map[string]int32{ "BUILD_KIND_UNSPECIFIED": 0, "BUILD_KIND_DOCKERFILE": 1, "BUILD_KIND_RAILPACK": 2, "BUILD_KIND_OTHER": 3, } )
Enum value maps for BuildKind.
var ( NetworkPolicy_name = map[int32]string{ 0: "NETWORK_POLICY_UNSPECIFIED", 1: "NETWORK_POLICY_OPEN", 2: "NETWORK_POLICY_NONE", 3: "NETWORK_POLICY_BLOCK_PRIVATE", } NetworkPolicy_value = map[string]int32{ "NETWORK_POLICY_UNSPECIFIED": 0, "NETWORK_POLICY_OPEN": 1, "NETWORK_POLICY_NONE": 2, "NETWORK_POLICY_BLOCK_PRIVATE": 3, } )
Enum value maps for NetworkPolicy.
var ( Phase_name = map[int32]string{ 0: "PHASE_UNSPECIFIED", 1: "PHASE_START", 2: "PHASE_END", } Phase_value = map[string]int32{ "PHASE_UNSPECIFIED": 0, "PHASE_START": 1, "PHASE_END": 2, } )
Enum value maps for Phase.
var ( CacheState_name = map[int32]string{ 0: "CACHE_STATE_UNSPECIFIED", 1: "CACHE_STATE_UNKNOWN", 2: "CACHE_STATE_HIT", 3: "CACHE_STATE_MISS", 4: "CACHE_STATE_PARTIAL", } CacheState_value = map[string]int32{ "CACHE_STATE_UNSPECIFIED": 0, "CACHE_STATE_UNKNOWN": 1, "CACHE_STATE_HIT": 2, "CACHE_STATE_MISS": 3, "CACHE_STATE_PARTIAL": 4, } )
Enum value maps for CacheState.
var ( LogStream_name = map[int32]string{ 0: "LOG_STREAM_UNSPECIFIED", 1: "LOG_STREAM_STDOUT", 2: "LOG_STREAM_STDERR", } LogStream_value = map[string]int32{ "LOG_STREAM_UNSPECIFIED": 0, "LOG_STREAM_STDOUT": 1, "LOG_STREAM_STDERR": 2, } )
Enum value maps for LogStream.
var ( FailureCode_name = map[int32]string{ 0: "FAILURE_CODE_UNSPECIFIED", 1: "FAILURE_CODE_INVALID_REQUEST", 2: "FAILURE_CODE_UNSUPPORTED", 3: "FAILURE_CODE_BUILD_FAILED", 4: "FAILURE_CODE_CANCELLED", 5: "FAILURE_CODE_TIMEOUT", 6: "FAILURE_CODE_RESOURCE_EXHAUSTED", 7: "FAILURE_CODE_INTERNAL", } FailureCode_value = map[string]int32{ "FAILURE_CODE_UNSPECIFIED": 0, "FAILURE_CODE_INVALID_REQUEST": 1, "FAILURE_CODE_UNSUPPORTED": 2, "FAILURE_CODE_BUILD_FAILED": 3, "FAILURE_CODE_CANCELLED": 4, "FAILURE_CODE_TIMEOUT": 5, "FAILURE_CODE_RESOURCE_EXHAUSTED": 6, "FAILURE_CODE_INTERNAL": 7, } )
Enum value maps for FailureCode.
var ( FinalState_name = map[int32]string{ 0: "FINAL_STATE_UNSPECIFIED", 1: "FINAL_STATE_CANCELLED", 2: "FINAL_STATE_FINISHED", 3: "FINAL_STATE_FAILED", 4: "FINAL_STATE_NOT_FOUND", } FinalState_value = map[string]int32{ "FINAL_STATE_UNSPECIFIED": 0, "FINAL_STATE_CANCELLED": 1, "FINAL_STATE_FINISHED": 2, "FINAL_STATE_FAILED": 3, "FINAL_STATE_NOT_FOUND": 4, } )
Enum value maps for FinalState.
var BuildDriver_ServiceDesc = grpc.ServiceDesc{ ServiceName: "levelrail.build.v1.BuildDriver", HandlerType: (*BuildDriverServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Describe", Handler: _BuildDriver_Describe_Handler, }, { MethodName: "Cancel", Handler: _BuildDriver_Cancel_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Build", Handler: _BuildDriver_Build_Handler, ServerStreams: true, }, }, Metadata: "proto/build/v1/driver.proto", }
BuildDriver_ServiceDesc is the grpc.ServiceDesc for BuildDriver service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_proto_build_v1_driver_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBuildDriverServer ¶
func RegisterBuildDriverServer(s grpc.ServiceRegistrar, srv BuildDriverServer)
Types ¶
type BuildDriverClient ¶
type BuildDriverClient interface {
// Describe is called once on connect; the host rejects an unsupported protocol_version.
Describe(ctx context.Context, in *DescribeRequest, opts ...grpc.CallOption) (*DescribeResponse, error)
// Build streams events and ends with exactly one done or failure frame.
Build(ctx context.Context, in *BuildRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[BuildEvent], error)
// Cancel returns only after the build's work has stopped.
Cancel(ctx context.Context, in *CancelRequest, opts ...grpc.CallOption) (*CancelResponse, error)
}
BuildDriverClient is the client API for BuildDriver service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
BuildDriver is served by every build driver, in any language.
func NewBuildDriverClient ¶
func NewBuildDriverClient(cc grpc.ClientConnInterface) BuildDriverClient
type BuildDriverServer ¶
type BuildDriverServer interface {
// Describe is called once on connect; the host rejects an unsupported protocol_version.
Describe(context.Context, *DescribeRequest) (*DescribeResponse, error)
// Build streams events and ends with exactly one done or failure frame.
Build(*BuildRequest, grpc.ServerStreamingServer[BuildEvent]) error
// Cancel returns only after the build's work has stopped.
Cancel(context.Context, *CancelRequest) (*CancelResponse, error)
// contains filtered or unexported methods
}
BuildDriverServer is the server API for BuildDriver service. All implementations must embed UnimplementedBuildDriverServer for forward compatibility.
BuildDriver is served by every build driver, in any language.
type BuildDriver_BuildClient ¶
type BuildDriver_BuildClient = grpc.ServerStreamingClient[BuildEvent]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type BuildDriver_BuildServer ¶
type BuildDriver_BuildServer = grpc.ServerStreamingServer[BuildEvent]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type BuildEvent ¶
type BuildEvent struct {
BuildId string `protobuf:"bytes,1,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"`
// Types that are valid to be assigned to Event:
//
// *BuildEvent_StageEvent
// *BuildEvent_CacheEvent
// *BuildEvent_Log
// *BuildEvent_ImageChunk
// *BuildEvent_Done
// *BuildEvent_Failure
Event isBuildEvent_Event `protobuf_oneof:"event"`
// contains filtered or unexported fields
}
func (*BuildEvent) Descriptor
deprecated
func (*BuildEvent) Descriptor() ([]byte, []int)
Deprecated: Use BuildEvent.ProtoReflect.Descriptor instead.
func (*BuildEvent) GetBuildId ¶
func (x *BuildEvent) GetBuildId() string
func (*BuildEvent) GetCacheEvent ¶
func (x *BuildEvent) GetCacheEvent() *CacheEvent
func (*BuildEvent) GetDone ¶
func (x *BuildEvent) GetDone() *Done
func (*BuildEvent) GetEvent ¶
func (x *BuildEvent) GetEvent() isBuildEvent_Event
func (*BuildEvent) GetFailure ¶
func (x *BuildEvent) GetFailure() *Failure
func (*BuildEvent) GetImageChunk ¶
func (x *BuildEvent) GetImageChunk() *ImageChunk
func (*BuildEvent) GetLog ¶
func (x *BuildEvent) GetLog() *LogEvent
func (*BuildEvent) GetStageEvent ¶
func (x *BuildEvent) GetStageEvent() *StageEvent
func (*BuildEvent) ProtoMessage ¶
func (*BuildEvent) ProtoMessage()
func (*BuildEvent) ProtoReflect ¶
func (x *BuildEvent) ProtoReflect() protoreflect.Message
func (*BuildEvent) Reset ¶
func (x *BuildEvent) Reset()
func (*BuildEvent) String ¶
func (x *BuildEvent) String() string
type BuildEvent_CacheEvent ¶
type BuildEvent_CacheEvent struct {
CacheEvent *CacheEvent `protobuf:"bytes,3,opt,name=cache_event,json=cacheEvent,proto3,oneof"`
}
type BuildEvent_Done ¶
type BuildEvent_Done struct {
Done *Done `protobuf:"bytes,6,opt,name=done,proto3,oneof"`
}
type BuildEvent_Failure ¶
type BuildEvent_Failure struct {
Failure *Failure `protobuf:"bytes,7,opt,name=failure,proto3,oneof"`
}
type BuildEvent_ImageChunk ¶
type BuildEvent_ImageChunk struct {
ImageChunk *ImageChunk `protobuf:"bytes,5,opt,name=image_chunk,json=imageChunk,proto3,oneof"`
}
type BuildEvent_Log ¶
type BuildEvent_Log struct {
Log *LogEvent `protobuf:"bytes,4,opt,name=log,proto3,oneof"`
}
type BuildEvent_StageEvent ¶
type BuildEvent_StageEvent struct {
StageEvent *StageEvent `protobuf:"bytes,2,opt,name=stage_event,json=stageEvent,proto3,oneof"`
}
type BuildKind ¶
type BuildKind int32
func (BuildKind) Descriptor ¶
func (BuildKind) Descriptor() protoreflect.EnumDescriptor
func (BuildKind) EnumDescriptor
deprecated
func (BuildKind) Number ¶
func (x BuildKind) Number() protoreflect.EnumNumber
func (BuildKind) Type ¶
func (BuildKind) Type() protoreflect.EnumType
type BuildRequest ¶
type BuildRequest struct {
BuildId string `protobuf:"bytes,1,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"`
Kind BuildKind `protobuf:"varint,2,opt,name=kind,proto3,enum=levelrail.build.v1.BuildKind" json:"kind,omitempty"`
Tag string `protobuf:"bytes,3,opt,name=tag,proto3" json:"tag,omitempty"`
Context *ContextRef `protobuf:"bytes,4,opt,name=context,proto3" json:"context,omitempty"`
DockerfilePath string `protobuf:"bytes,5,opt,name=dockerfile_path,json=dockerfilePath,proto3" json:"dockerfile_path,omitempty"`
Target string `protobuf:"bytes,6,opt,name=target,proto3" json:"target,omitempty"`
Platform string `protobuf:"bytes,7,opt,name=platform,proto3" json:"platform,omitempty"`
BuildArgs map[string]string `` /* 162-byte string literal not displayed */
Secrets []*SecretRef `protobuf:"bytes,9,rep,name=secrets,proto3" json:"secrets,omitempty"`
Cache *CacheHints `protobuf:"bytes,10,opt,name=cache,proto3" json:"cache,omitempty"`
Network NetworkPolicy `protobuf:"varint,11,opt,name=network,proto3,enum=levelrail.build.v1.NetworkPolicy" json:"network,omitempty"`
Labels map[string]string `` /* 140-byte string literal not displayed */
// Zero means no deadline from the host.
TimeoutSeconds uint32 `protobuf:"varint,13,opt,name=timeout_seconds,json=timeoutSeconds,proto3" json:"timeout_seconds,omitempty"`
// Driver-specific settings, for example a railpack provider.
Options map[string]string `` /* 142-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*BuildRequest) Descriptor
deprecated
func (*BuildRequest) Descriptor() ([]byte, []int)
Deprecated: Use BuildRequest.ProtoReflect.Descriptor instead.
func (*BuildRequest) GetBuildArgs ¶
func (x *BuildRequest) GetBuildArgs() map[string]string
func (*BuildRequest) GetBuildId ¶
func (x *BuildRequest) GetBuildId() string
func (*BuildRequest) GetCache ¶
func (x *BuildRequest) GetCache() *CacheHints
func (*BuildRequest) GetContext ¶
func (x *BuildRequest) GetContext() *ContextRef
func (*BuildRequest) GetDockerfilePath ¶
func (x *BuildRequest) GetDockerfilePath() string
func (*BuildRequest) GetKind ¶
func (x *BuildRequest) GetKind() BuildKind
func (*BuildRequest) GetLabels ¶
func (x *BuildRequest) GetLabels() map[string]string
func (*BuildRequest) GetNetwork ¶
func (x *BuildRequest) GetNetwork() NetworkPolicy
func (*BuildRequest) GetOptions ¶
func (x *BuildRequest) GetOptions() map[string]string
func (*BuildRequest) GetPlatform ¶
func (x *BuildRequest) GetPlatform() string
func (*BuildRequest) GetSecrets ¶
func (x *BuildRequest) GetSecrets() []*SecretRef
func (*BuildRequest) GetTag ¶
func (x *BuildRequest) GetTag() string
func (*BuildRequest) GetTarget ¶
func (x *BuildRequest) GetTarget() string
func (*BuildRequest) GetTimeoutSeconds ¶
func (x *BuildRequest) GetTimeoutSeconds() uint32
func (*BuildRequest) ProtoMessage ¶
func (*BuildRequest) ProtoMessage()
func (*BuildRequest) ProtoReflect ¶
func (x *BuildRequest) ProtoReflect() protoreflect.Message
func (*BuildRequest) Reset ¶
func (x *BuildRequest) Reset()
func (*BuildRequest) String ¶
func (x *BuildRequest) String() string
type CacheEvent ¶
type CacheEvent struct {
Stage string `protobuf:"bytes,1,opt,name=stage,proto3" json:"stage,omitempty"`
State CacheState `protobuf:"varint,2,opt,name=state,proto3,enum=levelrail.build.v1.CacheState" json:"state,omitempty"`
Warning string `protobuf:"bytes,3,opt,name=warning,proto3" json:"warning,omitempty"`
// contains filtered or unexported fields
}
func (*CacheEvent) Descriptor
deprecated
func (*CacheEvent) Descriptor() ([]byte, []int)
Deprecated: Use CacheEvent.ProtoReflect.Descriptor instead.
func (*CacheEvent) GetStage ¶
func (x *CacheEvent) GetStage() string
func (*CacheEvent) GetState ¶
func (x *CacheEvent) GetState() CacheState
func (*CacheEvent) GetWarning ¶
func (x *CacheEvent) GetWarning() string
func (*CacheEvent) ProtoMessage ¶
func (*CacheEvent) ProtoMessage()
func (*CacheEvent) ProtoReflect ¶
func (x *CacheEvent) ProtoReflect() protoreflect.Message
func (*CacheEvent) Reset ¶
func (x *CacheEvent) Reset()
func (*CacheEvent) String ¶
func (x *CacheEvent) String() string
type CacheHints ¶
type CacheHints struct {
NoCache bool `protobuf:"varint,1,opt,name=no_cache,json=noCache,proto3" json:"no_cache,omitempty"`
CacheId string `protobuf:"bytes,2,opt,name=cache_id,json=cacheId,proto3" json:"cache_id,omitempty"`
ImportRefs []string `protobuf:"bytes,3,rep,name=import_refs,json=importRefs,proto3" json:"import_refs,omitempty"`
ExportRefs []string `protobuf:"bytes,4,rep,name=export_refs,json=exportRefs,proto3" json:"export_refs,omitempty"`
// contains filtered or unexported fields
}
func (*CacheHints) Descriptor
deprecated
func (*CacheHints) Descriptor() ([]byte, []int)
Deprecated: Use CacheHints.ProtoReflect.Descriptor instead.
func (*CacheHints) GetCacheId ¶
func (x *CacheHints) GetCacheId() string
func (*CacheHints) GetExportRefs ¶
func (x *CacheHints) GetExportRefs() []string
func (*CacheHints) GetImportRefs ¶
func (x *CacheHints) GetImportRefs() []string
func (*CacheHints) GetNoCache ¶
func (x *CacheHints) GetNoCache() bool
func (*CacheHints) ProtoMessage ¶
func (*CacheHints) ProtoMessage()
func (*CacheHints) ProtoReflect ¶
func (x *CacheHints) ProtoReflect() protoreflect.Message
func (*CacheHints) Reset ¶
func (x *CacheHints) Reset()
func (*CacheHints) String ¶
func (x *CacheHints) String() string
type CacheState ¶
type CacheState int32
const ( CacheState_CACHE_STATE_UNSPECIFIED CacheState = 0 CacheState_CACHE_STATE_UNKNOWN CacheState = 1 CacheState_CACHE_STATE_HIT CacheState = 2 CacheState_CACHE_STATE_MISS CacheState = 3 CacheState_CACHE_STATE_PARTIAL CacheState = 4 )
func (CacheState) Descriptor ¶
func (CacheState) Descriptor() protoreflect.EnumDescriptor
func (CacheState) Enum ¶
func (x CacheState) Enum() *CacheState
func (CacheState) EnumDescriptor
deprecated
func (CacheState) EnumDescriptor() ([]byte, []int)
Deprecated: Use CacheState.Descriptor instead.
func (CacheState) Number ¶
func (x CacheState) Number() protoreflect.EnumNumber
func (CacheState) String ¶
func (x CacheState) String() string
func (CacheState) Type ¶
func (CacheState) Type() protoreflect.EnumType
type CancelRequest ¶
type CancelRequest struct {
BuildId string `protobuf:"bytes,1,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"`
// contains filtered or unexported fields
}
func (*CancelRequest) Descriptor
deprecated
func (*CancelRequest) Descriptor() ([]byte, []int)
Deprecated: Use CancelRequest.ProtoReflect.Descriptor instead.
func (*CancelRequest) GetBuildId ¶
func (x *CancelRequest) GetBuildId() string
func (*CancelRequest) ProtoMessage ¶
func (*CancelRequest) ProtoMessage()
func (*CancelRequest) ProtoReflect ¶
func (x *CancelRequest) ProtoReflect() protoreflect.Message
func (*CancelRequest) Reset ¶
func (x *CancelRequest) Reset()
func (*CancelRequest) String ¶
func (x *CancelRequest) String() string
type CancelResponse ¶
type CancelResponse struct {
State FinalState `protobuf:"varint,1,opt,name=state,proto3,enum=levelrail.build.v1.FinalState" json:"state,omitempty"`
// contains filtered or unexported fields
}
func (*CancelResponse) Descriptor
deprecated
func (*CancelResponse) Descriptor() ([]byte, []int)
Deprecated: Use CancelResponse.ProtoReflect.Descriptor instead.
func (*CancelResponse) GetState ¶
func (x *CancelResponse) GetState() FinalState
func (*CancelResponse) ProtoMessage ¶
func (*CancelResponse) ProtoMessage()
func (*CancelResponse) ProtoReflect ¶
func (x *CancelResponse) ProtoReflect() protoreflect.Message
func (*CancelResponse) Reset ¶
func (x *CancelResponse) Reset()
func (*CancelResponse) String ¶
func (x *CancelResponse) String() string
type Capabilities ¶
type Capabilities struct {
StageEvents bool `protobuf:"varint,1,opt,name=stage_events,json=stageEvents,proto3" json:"stage_events,omitempty"`
PerStageCache bool `protobuf:"varint,2,opt,name=per_stage_cache,json=perStageCache,proto3" json:"per_stage_cache,omitempty"`
Cancel bool `protobuf:"varint,3,opt,name=cancel,proto3" json:"cancel,omitempty"`
Rootless bool `protobuf:"varint,4,opt,name=rootless,proto3" json:"rootless,omitempty"`
NeedsDaemon bool `protobuf:"varint,5,opt,name=needs_daemon,json=needsDaemon,proto3" json:"needs_daemon,omitempty"`
Platforms []string `protobuf:"bytes,6,rep,name=platforms,proto3" json:"platforms,omitempty"`
Kinds []BuildKind `protobuf:"varint,7,rep,packed,name=kinds,proto3,enum=levelrail.build.v1.BuildKind" json:"kinds,omitempty"`
// contains filtered or unexported fields
}
func (*Capabilities) Descriptor
deprecated
func (*Capabilities) Descriptor() ([]byte, []int)
Deprecated: Use Capabilities.ProtoReflect.Descriptor instead.
func (*Capabilities) GetCancel ¶
func (x *Capabilities) GetCancel() bool
func (*Capabilities) GetKinds ¶
func (x *Capabilities) GetKinds() []BuildKind
func (*Capabilities) GetNeedsDaemon ¶
func (x *Capabilities) GetNeedsDaemon() bool
func (*Capabilities) GetPerStageCache ¶
func (x *Capabilities) GetPerStageCache() bool
func (*Capabilities) GetPlatforms ¶
func (x *Capabilities) GetPlatforms() []string
func (*Capabilities) GetRootless ¶
func (x *Capabilities) GetRootless() bool
func (*Capabilities) GetStageEvents ¶
func (x *Capabilities) GetStageEvents() bool
func (*Capabilities) ProtoMessage ¶
func (*Capabilities) ProtoMessage()
func (*Capabilities) ProtoReflect ¶
func (x *Capabilities) ProtoReflect() protoreflect.Message
func (*Capabilities) Reset ¶
func (x *Capabilities) Reset()
func (*Capabilities) String ¶
func (x *Capabilities) String() string
type ContextChunk ¶
type ContextChunk struct {
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
Last bool `protobuf:"varint,2,opt,name=last,proto3" json:"last,omitempty"`
// contains filtered or unexported fields
}
ContextChunk is one piece of a context tar for a transport that streams it.
func (*ContextChunk) Descriptor
deprecated
func (*ContextChunk) Descriptor() ([]byte, []int)
Deprecated: Use ContextChunk.ProtoReflect.Descriptor instead.
func (*ContextChunk) GetData ¶
func (x *ContextChunk) GetData() []byte
func (*ContextChunk) GetLast ¶
func (x *ContextChunk) GetLast() bool
func (*ContextChunk) ProtoMessage ¶
func (*ContextChunk) ProtoMessage()
func (*ContextChunk) ProtoReflect ¶
func (x *ContextChunk) ProtoReflect() protoreflect.Message
func (*ContextChunk) Reset ¶
func (x *ContextChunk) Reset()
func (*ContextChunk) String ¶
func (x *ContextChunk) String() string
type ContextRef ¶
type ContextRef struct {
// Types that are valid to be assigned to Source:
//
// *ContextRef_LocalPath
// *ContextRef_TarPath
Source isContextRef_Source `protobuf_oneof:"source"`
// contains filtered or unexported fields
}
ContextRef names the build context: a directory or tar on the node.
func (*ContextRef) Descriptor
deprecated
func (*ContextRef) Descriptor() ([]byte, []int)
Deprecated: Use ContextRef.ProtoReflect.Descriptor instead.
func (*ContextRef) GetLocalPath ¶
func (x *ContextRef) GetLocalPath() string
func (*ContextRef) GetSource ¶
func (x *ContextRef) GetSource() isContextRef_Source
func (*ContextRef) GetTarPath ¶
func (x *ContextRef) GetTarPath() string
func (*ContextRef) ProtoMessage ¶
func (*ContextRef) ProtoMessage()
func (*ContextRef) ProtoReflect ¶
func (x *ContextRef) ProtoReflect() protoreflect.Message
func (*ContextRef) Reset ¶
func (x *ContextRef) Reset()
func (*ContextRef) String ¶
func (x *ContextRef) String() string
type ContextRef_LocalPath ¶
type ContextRef_LocalPath struct {
LocalPath string `protobuf:"bytes,1,opt,name=local_path,json=localPath,proto3,oneof"`
}
type ContextRef_TarPath ¶
type ContextRef_TarPath struct {
TarPath string `protobuf:"bytes,2,opt,name=tar_path,json=tarPath,proto3,oneof"`
}
type DescribeRequest ¶
type DescribeRequest struct {
// Protocol versions the host can speak.
HostProtocolVersions []uint32 `` /* 131-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*DescribeRequest) Descriptor
deprecated
func (*DescribeRequest) Descriptor() ([]byte, []int)
Deprecated: Use DescribeRequest.ProtoReflect.Descriptor instead.
func (*DescribeRequest) GetHostProtocolVersions ¶
func (x *DescribeRequest) GetHostProtocolVersions() []uint32
func (*DescribeRequest) ProtoMessage ¶
func (*DescribeRequest) ProtoMessage()
func (*DescribeRequest) ProtoReflect ¶
func (x *DescribeRequest) ProtoReflect() protoreflect.Message
func (*DescribeRequest) Reset ¶
func (x *DescribeRequest) Reset()
func (*DescribeRequest) String ¶
func (x *DescribeRequest) String() string
type DescribeResponse ¶
type DescribeResponse struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
ProtocolVersion uint32 `protobuf:"varint,3,opt,name=protocol_version,json=protocolVersion,proto3" json:"protocol_version,omitempty"`
Capabilities *Capabilities `protobuf:"bytes,4,opt,name=capabilities,proto3" json:"capabilities,omitempty"`
// contains filtered or unexported fields
}
func (*DescribeResponse) Descriptor
deprecated
func (*DescribeResponse) Descriptor() ([]byte, []int)
Deprecated: Use DescribeResponse.ProtoReflect.Descriptor instead.
func (*DescribeResponse) GetCapabilities ¶
func (x *DescribeResponse) GetCapabilities() *Capabilities
func (*DescribeResponse) GetName ¶
func (x *DescribeResponse) GetName() string
func (*DescribeResponse) GetProtocolVersion ¶
func (x *DescribeResponse) GetProtocolVersion() uint32
func (*DescribeResponse) GetVersion ¶
func (x *DescribeResponse) GetVersion() string
func (*DescribeResponse) ProtoMessage ¶
func (*DescribeResponse) ProtoMessage()
func (*DescribeResponse) ProtoReflect ¶
func (x *DescribeResponse) ProtoReflect() protoreflect.Message
func (*DescribeResponse) Reset ¶
func (x *DescribeResponse) Reset()
func (*DescribeResponse) String ¶
func (x *DescribeResponse) String() string
type Done ¶
type Done struct {
ImageRef string `protobuf:"bytes,1,opt,name=image_ref,json=imageRef,proto3" json:"image_ref,omitempty"`
Digest string `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"`
SizeBytes int64 `protobuf:"varint,3,opt,name=size_bytes,json=sizeBytes,proto3" json:"size_bytes,omitempty"`
DurationMs int64 `protobuf:"varint,4,opt,name=duration_ms,json=durationMs,proto3" json:"duration_ms,omitempty"`
// contains filtered or unexported fields
}
func (*Done) Descriptor
deprecated
func (*Done) GetDurationMs ¶
func (*Done) GetImageRef ¶
func (*Done) GetSizeBytes ¶
func (*Done) ProtoMessage ¶
func (*Done) ProtoMessage()
func (*Done) ProtoReflect ¶
func (x *Done) ProtoReflect() protoreflect.Message
type Failure ¶
type Failure struct {
Code FailureCode `protobuf:"varint,1,opt,name=code,proto3,enum=levelrail.build.v1.FailureCode" json:"code,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
Retryable bool `protobuf:"varint,3,opt,name=retryable,proto3" json:"retryable,omitempty"`
// contains filtered or unexported fields
}
func (*Failure) Descriptor
deprecated
func (*Failure) GetCode ¶
func (x *Failure) GetCode() FailureCode
func (*Failure) GetMessage ¶
func (*Failure) GetRetryable ¶
func (*Failure) ProtoMessage ¶
func (*Failure) ProtoMessage()
func (*Failure) ProtoReflect ¶
func (x *Failure) ProtoReflect() protoreflect.Message
type FailureCode ¶
type FailureCode int32
const ( FailureCode_FAILURE_CODE_UNSPECIFIED FailureCode = 0 FailureCode_FAILURE_CODE_INVALID_REQUEST FailureCode = 1 FailureCode_FAILURE_CODE_UNSUPPORTED FailureCode = 2 FailureCode_FAILURE_CODE_BUILD_FAILED FailureCode = 3 FailureCode_FAILURE_CODE_CANCELLED FailureCode = 4 FailureCode_FAILURE_CODE_TIMEOUT FailureCode = 5 FailureCode_FAILURE_CODE_RESOURCE_EXHAUSTED FailureCode = 6 FailureCode_FAILURE_CODE_INTERNAL FailureCode = 7 )
func (FailureCode) Descriptor ¶
func (FailureCode) Descriptor() protoreflect.EnumDescriptor
func (FailureCode) Enum ¶
func (x FailureCode) Enum() *FailureCode
func (FailureCode) EnumDescriptor
deprecated
func (FailureCode) EnumDescriptor() ([]byte, []int)
Deprecated: Use FailureCode.Descriptor instead.
func (FailureCode) Number ¶
func (x FailureCode) Number() protoreflect.EnumNumber
func (FailureCode) String ¶
func (x FailureCode) String() string
func (FailureCode) Type ¶
func (FailureCode) Type() protoreflect.EnumType
type FinalState ¶
type FinalState int32
const ( FinalState_FINAL_STATE_UNSPECIFIED FinalState = 0 FinalState_FINAL_STATE_CANCELLED FinalState = 1 FinalState_FINAL_STATE_FINISHED FinalState = 2 FinalState_FINAL_STATE_FAILED FinalState = 3 FinalState_FINAL_STATE_NOT_FOUND FinalState = 4 )
func (FinalState) Descriptor ¶
func (FinalState) Descriptor() protoreflect.EnumDescriptor
func (FinalState) Enum ¶
func (x FinalState) Enum() *FinalState
func (FinalState) EnumDescriptor
deprecated
func (FinalState) EnumDescriptor() ([]byte, []int)
Deprecated: Use FinalState.Descriptor instead.
func (FinalState) Number ¶
func (x FinalState) Number() protoreflect.EnumNumber
func (FinalState) String ¶
func (x FinalState) String() string
func (FinalState) Type ¶
func (FinalState) Type() protoreflect.EnumType
type ImageChunk ¶
type ImageChunk struct {
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
func (*ImageChunk) Descriptor
deprecated
func (*ImageChunk) Descriptor() ([]byte, []int)
Deprecated: Use ImageChunk.ProtoReflect.Descriptor instead.
func (*ImageChunk) GetData ¶
func (x *ImageChunk) GetData() []byte
func (*ImageChunk) ProtoMessage ¶
func (*ImageChunk) ProtoMessage()
func (*ImageChunk) ProtoReflect ¶
func (x *ImageChunk) ProtoReflect() protoreflect.Message
func (*ImageChunk) Reset ¶
func (x *ImageChunk) Reset()
func (*ImageChunk) String ¶
func (x *ImageChunk) String() string
type LogEvent ¶
type LogEvent struct {
Stage string `protobuf:"bytes,1,opt,name=stage,proto3" json:"stage,omitempty"`
Stream LogStream `protobuf:"varint,2,opt,name=stream,proto3,enum=levelrail.build.v1.LogStream" json:"stream,omitempty"`
Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
func (*LogEvent) Descriptor
deprecated
func (*LogEvent) ProtoMessage ¶
func (*LogEvent) ProtoMessage()
func (*LogEvent) ProtoReflect ¶
func (x *LogEvent) ProtoReflect() protoreflect.Message
type LogStream ¶
type LogStream int32
func (LogStream) Descriptor ¶
func (LogStream) Descriptor() protoreflect.EnumDescriptor
func (LogStream) EnumDescriptor
deprecated
func (LogStream) Number ¶
func (x LogStream) Number() protoreflect.EnumNumber
func (LogStream) Type ¶
func (LogStream) Type() protoreflect.EnumType
type NetworkPolicy ¶
type NetworkPolicy int32
const ( NetworkPolicy_NETWORK_POLICY_UNSPECIFIED NetworkPolicy = 0 NetworkPolicy_NETWORK_POLICY_OPEN NetworkPolicy = 1 NetworkPolicy_NETWORK_POLICY_NONE NetworkPolicy = 2 NetworkPolicy_NETWORK_POLICY_BLOCK_PRIVATE NetworkPolicy = 3 )
func (NetworkPolicy) Descriptor ¶
func (NetworkPolicy) Descriptor() protoreflect.EnumDescriptor
func (NetworkPolicy) Enum ¶
func (x NetworkPolicy) Enum() *NetworkPolicy
func (NetworkPolicy) EnumDescriptor
deprecated
func (NetworkPolicy) EnumDescriptor() ([]byte, []int)
Deprecated: Use NetworkPolicy.Descriptor instead.
func (NetworkPolicy) Number ¶
func (x NetworkPolicy) Number() protoreflect.EnumNumber
func (NetworkPolicy) String ¶
func (x NetworkPolicy) String() string
func (NetworkPolicy) Type ¶
func (NetworkPolicy) Type() protoreflect.EnumType
type Phase ¶
type Phase int32
func (Phase) Descriptor ¶
func (Phase) Descriptor() protoreflect.EnumDescriptor
func (Phase) EnumDescriptor
deprecated
func (Phase) Number ¶
func (x Phase) Number() protoreflect.EnumNumber
func (Phase) Type ¶
func (Phase) Type() protoreflect.EnumType
type SecretRef ¶
type SecretRef struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Ref string `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"`
// contains filtered or unexported fields
}
SecretRef names a secret the driver resolves on the node. Values never cross this wire.
func (*SecretRef) Descriptor
deprecated
func (*SecretRef) ProtoMessage ¶
func (*SecretRef) ProtoMessage()
func (*SecretRef) ProtoReflect ¶
func (x *SecretRef) ProtoReflect() protoreflect.Message
type StageEvent ¶
type StageEvent struct {
Stage string `protobuf:"bytes,1,opt,name=stage,proto3" json:"stage,omitempty"`
Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
Phase Phase `protobuf:"varint,3,opt,name=phase,proto3,enum=levelrail.build.v1.Phase" json:"phase,omitempty"`
// Set on an end event when the stage failed.
Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"`
// The raw step name behind the stage, when the driver has one.
Step string `protobuf:"bytes,5,opt,name=step,proto3" json:"step,omitempty"`
// contains filtered or unexported fields
}
StageEvent marks a stage (source, detect, install, build, export, push) starting or ending.
func (*StageEvent) Descriptor
deprecated
func (*StageEvent) Descriptor() ([]byte, []int)
Deprecated: Use StageEvent.ProtoReflect.Descriptor instead.
func (*StageEvent) GetError ¶
func (x *StageEvent) GetError() string
func (*StageEvent) GetLabel ¶
func (x *StageEvent) GetLabel() string
func (*StageEvent) GetPhase ¶
func (x *StageEvent) GetPhase() Phase
func (*StageEvent) GetStage ¶
func (x *StageEvent) GetStage() string
func (*StageEvent) GetStep ¶
func (x *StageEvent) GetStep() string
func (*StageEvent) ProtoMessage ¶
func (*StageEvent) ProtoMessage()
func (*StageEvent) ProtoReflect ¶
func (x *StageEvent) ProtoReflect() protoreflect.Message
func (*StageEvent) Reset ¶
func (x *StageEvent) Reset()
func (*StageEvent) String ¶
func (x *StageEvent) String() string
type UnimplementedBuildDriverServer ¶
type UnimplementedBuildDriverServer struct{}
UnimplementedBuildDriverServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedBuildDriverServer) Build ¶
func (UnimplementedBuildDriverServer) Build(*BuildRequest, grpc.ServerStreamingServer[BuildEvent]) error
func (UnimplementedBuildDriverServer) Cancel ¶
func (UnimplementedBuildDriverServer) Cancel(context.Context, *CancelRequest) (*CancelResponse, error)
func (UnimplementedBuildDriverServer) Describe ¶
func (UnimplementedBuildDriverServer) Describe(context.Context, *DescribeRequest) (*DescribeResponse, error)
type UnsafeBuildDriverServer ¶
type UnsafeBuildDriverServer interface {
// contains filtered or unexported methods
}
UnsafeBuildDriverServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BuildDriverServer will result in compilation errors.