generator

package
v0.13.3 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	Formatter string `json:"formatter"`

	// We can generate SDKs in three modes: Packages, Types, Services
	// E.g. Go is Package-focused and Java is Types+Services
	Packages map[string]string `json:"packages,omitempty"`
	Types    map[string]string `json:"types,omitempty"`
	Services map[string]string `json:"services,omitempty"`
	Batch    map[string]string `json:"batch,omitempty"`

	// special case for usage example templates, that are generated
	// from Go SDK integration tests
	Examples map[string]string `json:"examples,omitempty"`
	Samples  map[string]string `json:"samples,omitempty"`

	// version bumps
	Version map[string]string `json:"version,omitempty"`

	// code generation toolchain configuration
	Toolchain *Toolchain `json:"toolchain,omitempty"`
	// contains filtered or unexported fields
}

func NewGenerator

func NewGenerator(target string) (*Generator, error)

func (*Generator) Apply

func (c *Generator) Apply(batch *code.Batch, suite *roll.Suite) error

type Toolchain

type Toolchain struct {
	Required     []string `json:"required"`
	PreSetup     []string `json:"pre_setup,omitempty"`
	PrependPath  string   `json:"prepend_path,omitempty"`
	Setup        []string `json:"setup,omitempty"`
	PostGenerate []string `json:"post_generate,omitempty"`
}

Jump to

Keyboard shortcuts

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