Documentation
¶
Index ¶
- Constants
- func PrepareCollectionRuntime(dir string) error
- type GoGenerator
- func (g *GoGenerator) GenerateClient(ctx context.Context, schema *introspection.Schema, schemaVersion string) (*generator.GeneratedState, error)
- func (g *GoGenerator) GenerateEntrypoint(ctx context.Context) (*generator.GeneratedState, error)
- func (g *GoGenerator) GenerateLibrary(ctx context.Context, schema *introspection.Schema, schemaVersion string) (*generator.GeneratedState, error)
- func (g *GoGenerator) GenerateModule(ctx context.Context, schema *introspection.Schema, schemaVersion string) (*generator.GeneratedState, error)
- type MountedFS
- type PackageInfo
Constants ¶
View Source
const ( // ClientGenFile is the path to write the codegen for the dagger API ClientGenFile = "dagger.gen.go" // StarterTemplateFile is the path to write the default module code StarterTemplateFile = "main.go" )
Variables ¶
This section is empty.
Functions ¶
func PrepareCollectionRuntime ¶
PrepareCollectionRuntime adds private collection state only to the runtime build. Author source and generated schema remain unchanged. A real struct field preserves state through Go value copies, including value receivers.
Types ¶
type GoGenerator ¶
func (*GoGenerator) GenerateClient ¶ added in v0.16.3
func (g *GoGenerator) GenerateClient(ctx context.Context, schema *introspection.Schema, schemaVersion string) (*generator.GeneratedState, error)
func (*GoGenerator) GenerateEntrypoint ¶
func (g *GoGenerator) GenerateEntrypoint(ctx context.Context) (*generator.GeneratedState, error)
GenerateEntrypoint is a no-op for the Go SDK — the engine constructs the dispatch directly from the user's compiled module, no entrypoint file is generated.
func (*GoGenerator) GenerateLibrary ¶ added in v0.18.15
func (g *GoGenerator) GenerateLibrary(ctx context.Context, schema *introspection.Schema, schemaVersion string) (*generator.GeneratedState, error)
func (*GoGenerator) GenerateModule ¶ added in v0.16.3
func (g *GoGenerator) GenerateModule(ctx context.Context, schema *introspection.Schema, schemaVersion string) (*generator.GeneratedState, error)
type PackageInfo ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.