Documentation ¶
Index ¶
- Constants
- Variables
- func GoBuilder(ctx context.Context, pl pkggraph.PackageLoader, loc pkggraph.Location, ...) (build.Spec, error)
- func Register()
- type FrameworkExt
- func (*FrameworkExt) Descriptor() ([]byte, []int)deprecated
- func (x *FrameworkExt) GetGoModule() string
- func (x *FrameworkExt) GetGoVersion() string
- func (x *FrameworkExt) GetGoWorkspacePath() string
- func (*FrameworkExt) ProtoMessage()
- func (x *FrameworkExt) ProtoReflect() protoreflect.Message
- func (x *FrameworkExt) Reset()
- func (x *FrameworkExt) String() string
- type GoBinary
- type OpGenNode
- func (*OpGenNode) Descriptor() ([]byte, []int)deprecated
- func (x *OpGenNode) GetLoadedNode() []*schema.Node
- func (x *OpGenNode) GetNode() *schema.Node
- func (*OpGenNode) ProtoMessage()
- func (x *OpGenNode) ProtoReflect() protoreflect.Message
- func (x *OpGenNode) Reset()
- func (x *OpGenNode) String() string
- type OpGenServer
- func (*OpGenServer) Descriptor() ([]byte, []int)deprecated
- func (x *OpGenServer) GetLoadedNode() []*schema.Node
- func (x *OpGenServer) GetServer() *schema.Server
- func (*OpGenServer) ProtoMessage()
- func (x *OpGenServer) ProtoReflect() protoreflect.Message
- func (x *OpGenServer) Reset()
- func (x *OpGenServer) String() string
- type Ref
- type Refs
Constants ¶
View Source
const ( ServerPrepareFilename = "deps.fn.go" ServerMainFilename = "main.fn.go" )
Variables ¶
View Source
var File_internal_integrations_golang_generate_proto protoreflect.FileDescriptor
View Source
var File_internal_integrations_golang_op_proto protoreflect.FileDescriptor
View Source
var UseBuildKitForBuilding = knobs.Bool("golang_use_buildkit", "If set to true, buildkit is used for building, instead of a ko-style builder.", false)
Functions ¶
Types ¶
type FrameworkExt ¶
type FrameworkExt struct { // Which Go version this server is compiled against (computed). GoVersion string `protobuf:"bytes,1,opt,name=go_version,json=goVersion,proto3" json:"go_version,omitempty"` // The go module of the server. GoModule string `protobuf:"bytes,2,opt,name=go_module,json=goModule,proto3" json:"go_module,omitempty"` // Relative path to go.work, or to go.mod. GoWorkspacePath string `protobuf:"bytes,4,opt,name=go_workspace_path,json=goWorkspacePath,proto3" json:"go_workspace_path,omitempty"` // contains filtered or unexported fields }
func (*FrameworkExt) Descriptor
deprecated
func (*FrameworkExt) Descriptor() ([]byte, []int)
Deprecated: Use FrameworkExt.ProtoReflect.Descriptor instead.
func (*FrameworkExt) GetGoModule ¶
func (x *FrameworkExt) GetGoModule() string
func (*FrameworkExt) GetGoVersion ¶
func (x *FrameworkExt) GetGoVersion() string
func (*FrameworkExt) GetGoWorkspacePath ¶ added in v0.0.185
func (x *FrameworkExt) GetGoWorkspacePath() string
func (*FrameworkExt) ProtoMessage ¶
func (*FrameworkExt) ProtoMessage()
func (*FrameworkExt) ProtoReflect ¶
func (x *FrameworkExt) ProtoReflect() protoreflect.Message
func (*FrameworkExt) Reset ¶
func (x *FrameworkExt) Reset()
func (*FrameworkExt) String ¶
func (x *FrameworkExt) String() string
type GoBinary ¶
type GoBinary struct { PackageName schema.PackageName `json:"packageName"` // If workspaces are not used, will be the module path. Relative to ns workspace root. GoWorkspacePath string `json:"workspacePath"` GoModule string `json:"module"` // Go module name. GoVersion string `json:"goVersion"` SourcePath string `json:"sourcePath"` // Relative to ns workspace root. BinaryName string `json:"binaryName"` BinaryOnly bool StripBinary bool UnsafeCacheable bool // Unsafe because we can't guarantee that the sources used for compilation are consistent with the workspace contents. }
func (GoBinary) BuildImage ¶
func (gb GoBinary) BuildImage(ctx context.Context, env pkggraph.SealedContext, conf build.Configuration) (compute.Computable[oci.Image], error)
func (GoBinary) PlatformIndependent ¶
type OpGenNode ¶
type OpGenNode struct { Node *schema.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` LoadedNode []*schema.Node `protobuf:"bytes,2,rep,name=loaded_node,json=loadedNode,proto3" json:"loaded_node,omitempty"` // contains filtered or unexported fields }
func (*OpGenNode) Descriptor
deprecated
func (*OpGenNode) GetLoadedNode ¶
func (*OpGenNode) ProtoMessage ¶
func (*OpGenNode) ProtoMessage()
func (*OpGenNode) ProtoReflect ¶
func (x *OpGenNode) ProtoReflect() protoreflect.Message
type OpGenServer ¶
type OpGenServer struct { Server *schema.Server `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"` LoadedNode []*schema.Node `protobuf:"bytes,2,rep,name=loaded_node,json=loadedNode,proto3" json:"loaded_node,omitempty"` // contains filtered or unexported fields }
func (*OpGenServer) Descriptor
deprecated
func (*OpGenServer) Descriptor() ([]byte, []int)
Deprecated: Use OpGenServer.ProtoReflect.Descriptor instead.
func (*OpGenServer) GetLoadedNode ¶
func (x *OpGenServer) GetLoadedNode() []*schema.Node
func (*OpGenServer) GetServer ¶
func (x *OpGenServer) GetServer() *schema.Server
func (*OpGenServer) ProtoMessage ¶
func (*OpGenServer) ProtoMessage()
func (*OpGenServer) ProtoReflect ¶
func (x *OpGenServer) ProtoReflect() protoreflect.Message
func (*OpGenServer) Reset ¶
func (x *OpGenServer) Reset()
func (*OpGenServer) String ¶
func (x *OpGenServer) String() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.