driverpb

package
v1.5.19 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2026 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
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

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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)

View Source
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.

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
const (
	BuildKind_BUILD_KIND_UNSPECIFIED BuildKind = 0
	BuildKind_BUILD_KIND_DOCKERFILE  BuildKind = 1
	BuildKind_BUILD_KIND_RAILPACK    BuildKind = 2
	BuildKind_BUILD_KIND_OTHER       BuildKind = 3
)

func (BuildKind) Descriptor

func (BuildKind) Descriptor() protoreflect.EnumDescriptor

func (BuildKind) Enum

func (x BuildKind) Enum() *BuildKind

func (BuildKind) EnumDescriptor deprecated

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

Deprecated: Use BuildKind.Descriptor instead.

func (BuildKind) Number

func (x BuildKind) Number() protoreflect.EnumNumber

func (BuildKind) String

func (x BuildKind) String() string

func (BuildKind) Type

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

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) Descriptor() ([]byte, []int)

Deprecated: Use Done.ProtoReflect.Descriptor instead.

func (*Done) GetDigest

func (x *Done) GetDigest() string

func (*Done) GetDurationMs

func (x *Done) GetDurationMs() int64

func (*Done) GetImageRef

func (x *Done) GetImageRef() string

func (*Done) GetSizeBytes

func (x *Done) GetSizeBytes() int64

func (*Done) ProtoMessage

func (*Done) ProtoMessage()

func (*Done) ProtoReflect

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

func (*Done) Reset

func (x *Done) Reset()

func (*Done) String

func (x *Done) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Failure.ProtoReflect.Descriptor instead.

func (*Failure) GetCode

func (x *Failure) GetCode() FailureCode

func (*Failure) GetMessage

func (x *Failure) GetMessage() string

func (*Failure) GetRetryable

func (x *Failure) GetRetryable() bool

func (*Failure) ProtoMessage

func (*Failure) ProtoMessage()

func (*Failure) ProtoReflect

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

func (*Failure) Reset

func (x *Failure) Reset()

func (*Failure) String

func (x *Failure) String() string

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) 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

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

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) Descriptor() ([]byte, []int)

Deprecated: Use LogEvent.ProtoReflect.Descriptor instead.

func (*LogEvent) GetData

func (x *LogEvent) GetData() []byte

func (*LogEvent) GetStage

func (x *LogEvent) GetStage() string

func (*LogEvent) GetStream

func (x *LogEvent) GetStream() LogStream

func (*LogEvent) ProtoMessage

func (*LogEvent) ProtoMessage()

func (*LogEvent) ProtoReflect

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

func (*LogEvent) Reset

func (x *LogEvent) Reset()

func (*LogEvent) String

func (x *LogEvent) String() string

type LogStream

type LogStream int32
const (
	LogStream_LOG_STREAM_UNSPECIFIED LogStream = 0
	LogStream_LOG_STREAM_STDOUT      LogStream = 1
	LogStream_LOG_STREAM_STDERR      LogStream = 2
)

func (LogStream) Descriptor

func (LogStream) Descriptor() protoreflect.EnumDescriptor

func (LogStream) Enum

func (x LogStream) Enum() *LogStream

func (LogStream) EnumDescriptor deprecated

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

Deprecated: Use LogStream.Descriptor instead.

func (LogStream) Number

func (x LogStream) Number() protoreflect.EnumNumber

func (LogStream) String

func (x LogStream) String() string

func (LogStream) Type

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) Enum

func (x NetworkPolicy) Enum() *NetworkPolicy

func (NetworkPolicy) EnumDescriptor deprecated

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

Deprecated: Use NetworkPolicy.Descriptor instead.

func (NetworkPolicy) Number

func (NetworkPolicy) String

func (x NetworkPolicy) String() string

func (NetworkPolicy) Type

type Phase

type Phase int32
const (
	Phase_PHASE_UNSPECIFIED Phase = 0
	Phase_PHASE_START       Phase = 1
	Phase_PHASE_END         Phase = 2
)

func (Phase) Descriptor

func (Phase) Descriptor() protoreflect.EnumDescriptor

func (Phase) Enum

func (x Phase) Enum() *Phase

func (Phase) EnumDescriptor deprecated

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

Deprecated: Use Phase.Descriptor instead.

func (Phase) Number

func (x Phase) Number() protoreflect.EnumNumber

func (Phase) String

func (x Phase) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use SecretRef.ProtoReflect.Descriptor instead.

func (*SecretRef) GetId

func (x *SecretRef) GetId() string

func (*SecretRef) GetRef

func (x *SecretRef) GetRef() string

func (*SecretRef) ProtoMessage

func (*SecretRef) ProtoMessage()

func (*SecretRef) ProtoReflect

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

func (*SecretRef) Reset

func (x *SecretRef) Reset()

func (*SecretRef) String

func (x *SecretRef) String() string

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) Cancel

func (UnimplementedBuildDriverServer) Describe

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.

Jump to

Keyboard shortcuts

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