conjure

package
v3.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2019 License: Apache-2.0 Imports: 24 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromIRBytes

func FromIRBytes(irJSONBytes []byte) (spec.ConjureDefinition, error)

func FromIRFile

func FromIRFile(file string) (spec.ConjureDefinition, error)

func Generate

func Generate(conjureDefinition spec.ConjureDefinition, outputDir string) error

Types

type OutputFile

type OutputFile struct {
	// contains filtered or unexported fields
}

func GenerateOutputFiles

func GenerateOutputFiles(conjureDefinition spec.ConjureDefinition, outputDir string) ([]*OutputFile, error)

func (*OutputFile) AbsPath

func (f *OutputFile) AbsPath() string

func (*OutputFile) Render

func (f *OutputFile) Render() ([]byte, error)

func (*OutputFile) Write

func (f *OutputFile) Write() error

type StringSet

type StringSet map[string]struct{}

func NewStringSet

func NewStringSet(vals ...string) StringSet

func (StringSet) Add

func (s StringSet) Add(vals ...string)

func (StringSet) AddAll

func (s StringSet) AddAll(other StringSet)

func (StringSet) Sorted

func (s StringSet) Sorted() []string

Directories

Path Synopsis
Package transforms provides common transformations from Conjure spec types and to Go specific types.
Package transforms provides common transformations from Conjure spec types and to Go specific types.

Jump to

Keyboard shortcuts

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