Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LocalBuildTags = []string{"encore_local", "encore_no_gcp", "encore_no_aws", "encore_no_azure"}
Functions ¶
This section is empty.
Types ¶
type BuildInfo ¶
type BuildInfo struct { BuildTags []string CgoEnabled bool StaticLink bool Debug bool GOOS, GOARCH string KeepOutput bool Revision string UncommittedChanges bool // MainPkg is the path to the existing main package to use, if any. MainPkg option.Option[paths.Pkg] // Overrides to explicitly set the GoRoot and EncoreRuntime paths. // if not set, they will be inferred from the current executable. GoRoot option.Option[paths.FS] EncoreRuntime option.Option[paths.FS] // Logger allows a custom logger to be used by the various phases of the builder. Logger option.Option[zerolog.Logger] }
func DefaultBuildInfo ¶ added in v1.16.1
func DefaultBuildInfo() BuildInfo
DefaultBuildInfo returns a BuildInfo with default values. It can be modified afterwards.
type CompileParams ¶
type CompileResult ¶
type GenUserFacingParams ¶
type GenUserFacingParams struct { App *apps.Instance Parse *ParseResult }
type Impl ¶
type Impl interface { Parse(context.Context, ParseParams) (*ParseResult, error) Compile(context.Context, CompileParams) (*CompileResult, error) Test(context.Context, TestParams) error GenUserFacing(context.Context, GenUserFacingParams) error }
type ParseParams ¶
type ParseResult ¶
type TestParams ¶
type TestParams struct { Compile CompileParams // Env sets environment variables for "go test". Env []string // Args sets extra arguments for "go test". Args []string // Stdout and Stderr are where to redirect "go test" output. Stdout, Stderr io.Writer }
Click to show internal directories.
Click to hide internal directories.