golang

package
v0.0.374 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: Apache-2.0 Imports: 65 Imported by: 0

Documentation

Index

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

func GoBuilder

func GoBuilder(ctx context.Context, pl pkggraph.PackageLoader, loc pkggraph.Location, plan *schema.ImageBuildPlan_GoBuild, unsafeCacheable bool) (build.Spec, error)

func Register

func Register()

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 FromLocation

func FromLocation(loc pkggraph.Location, pkgName string) (*GoBinary, error)

func (GoBinary) BuildImage

func (GoBinary) PlatformIndependent

func (gb GoBinary) PlatformIndependent() bool

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

Deprecated: Use OpGenNode.ProtoReflect.Descriptor instead.

func (*OpGenNode) GetLoadedNode

func (x *OpGenNode) GetLoadedNode() []*schema.Node

func (*OpGenNode) GetNode

func (x *OpGenNode) GetNode() *schema.Node

func (*OpGenNode) ProtoMessage

func (*OpGenNode) ProtoMessage()

func (*OpGenNode) ProtoReflect

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

func (*OpGenNode) Reset

func (x *OpGenNode) Reset()

func (*OpGenNode) String

func (x *OpGenNode) String() string

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

type Ref

type Ref struct {
	GoImportURL string
	Scope       string
	Typename    string
}

type Refs

type Refs struct {
	Single *Ref
	Scoped *Ref
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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