cmd

package
v0.26.4 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: BSD-2-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Jar, _ = base64.StdEncoding.DecodeString(``)
View Source
var Version string

Functions

func CodeGenerator

func CodeGenerator() *cobra.Command

func ExecuteJar

func ExecuteJar(params JarStdinParameters) ([]byte, error)

func GenerateAllImportsTest added in v0.19.0

func GenerateAllImportsTest(outputDir string, codeFiles []*utils.CodeFile) error

func GenerateCode added in v0.19.0

func GenerateCode(specBytes []byte, outputDir string) error

func ReadSpec

func ReadSpec(args []string) ([]byte, error)

Types

type GoRestliSpec added in v0.19.0

type GoRestliSpec struct {
	DataTypes []struct {
		Enum            *types.Enum            `json:"enum"`
		Fixed           *types.Fixed           `json:"fixed"`
		Record          *types.Record          `json:"record"`
		ComplexKey      *types.ComplexKey      `json:"complexKey"`
		StandaloneUnion *types.StandaloneUnion `json:"standaloneUnion"`
		Typeref         *types.Typeref         `json:"typeref"`
	} `json:"dataTypes"`
	Resources []resources.Resource
}

func (*GoRestliSpec) GenerateClientCode added in v0.19.0

func (s *GoRestliSpec) GenerateClientCode() (codeFiles []*utils.CodeFile)

func (*GoRestliSpec) UnmarshalJSON added in v0.19.0

func (s *GoRestliSpec) UnmarshalJSON(data []byte) error

type JarStdinParameters added in v0.16.0

type JarStdinParameters struct {
	ResolverPath               string   `json:"resolverPath"`
	RestSpecPaths              []string `json:"restSpecPaths"`
	NamedDataSchemasToGenerate []string `json:"namedDataSchemasToGenerate"`
	RawRecords                 []string `json:"rawRecords"`
}

Jump to

Keyboard shortcuts

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