gogenerator

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

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

This section is empty.

Types

type GoGenerator

type GoGenerator struct {
	Config generator.Config
}

func (*GoGenerator) Generate

func (g *GoGenerator) Generate(ctx context.Context, schema *introspection.Schema, schemaVersion string) (*generator.GeneratedState, error)

type MountedFS added in v0.10.0

type MountedFS struct {
	FS   fs.FS
	Name string
}

MountedFS takes a target FS and mounts it at Name

func (*MountedFS) Open added in v0.10.0

func (fs *MountedFS) Open(name string) (fs.File, error)

type PackageInfo

type PackageInfo struct {
	PackageName   string // Go package name, typically "main"
	PackageImport string // import path of package in which this file appears
}

Directories

Path Synopsis
Go name linting.
Go name linting.

Jump to

Keyboard shortcuts

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