Documentation ¶
Index ¶
- Constants
- Variables
- func Build(ctx context.Context, env cfg.Context, bin GoBinary, conf build.Configuration) (compute.Computable[oci.Image], error)
- func GoBuilder(loc pkggraph.Location, plan *schema.ImageBuildPlan_GoBuild, ...) (build.Spec, error)
- func Register()
- func RunGo(ctx context.Context, loc pkggraph.Location, sdk golang.LocalSDK, ...) error
- type D
- type FrameworkExt
- func (*FrameworkExt) Descriptor() ([]byte, []int)deprecated
- func (x *FrameworkExt) GetGoModule() string
- func (x *FrameworkExt) GetGoModulePath() string
- func (x *FrameworkExt) GetGoVersion() 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_languages_golang_generate_proto protoreflect.FileDescriptor
View Source
var File_internal_languages_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 D ¶
type D struct { Deps []string DepTo map[string][]string // pkg in key is imported by packages in value GoFiles map[string][]string }
func ComputeSources ¶
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.mod. GoModulePath string `protobuf:"bytes,3,opt,name=go_module_path,json=goModulePath,proto3" json:"go_module_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) GetGoModulePath ¶
func (x *FrameworkExt) GetGoModulePath() string
func (*FrameworkExt) GetGoVersion ¶
func (x *FrameworkExt) GetGoVersion() 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"` GoModulePath string `json:"modulePath"` // Relative to workspace root. GoModule string `json:"module"` // Go module name. GoVersion string `json:"goVersion"` SourcePath string `json:"sourcePath"` // Relative to workspace root. BinaryName string `json:"binaryName"` BinaryOnly bool UnsafeCacheable bool // Unsafe because we can't guarantee that the sources used for compilation are consistent with the workspace contents. // contains filtered or unexported fields }
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
Click to show internal directories.
Click to hide internal directories.