Documentation ¶
Index ¶
- func FormatPackage(dir string) error
- type GenerateError
- type Generator
- func (g *Generator) Generate() error
- func (g *Generator) Run() error
- func (g *Generator) Start() error
- func (g *Generator) StderrPipe() (io.ReadCloser, error)
- func (g *Generator) StdoutPipe() (io.ReadCloser, error)
- func (g *Generator) Wait() error
- func (g *Generator) WithMetadataOutput(output string) *Generator
- func (g *Generator) WithMultiAPI() *Generator
- func (g *Generator) WithOption(option model.Option) *Generator
- func (g *Generator) WithReadme(readme string) *Generator
- func (g *Generator) WithTag(tag string) *Generator
- type MetadataProcessError
- type MetadataProcessor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatPackage ¶
FormatPackage formats the given package using gofmt
Types ¶
type GenerateError ¶
GenerateError ...
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator collects all the related context of an autorest generation
func NewGeneratorFromOptions ¶
NewGeneratorFromOptions returns a new Generator with the given model.Options
func (*Generator) Generate ¶
Generate executes the autorest generation. The error will be of type *GenerateError
func (*Generator) StderrPipe ¶
func (g *Generator) StderrPipe() (io.ReadCloser, error)
StderrPipe returns the stderr pipeline of the command
func (*Generator) StdoutPipe ¶
func (g *Generator) StdoutPipe() (io.ReadCloser, error)
StdoutPipe returns the stdout pipeline of the command
func (*Generator) WithMetadataOutput ¶
WithMetadataOutput appends a `metadata-output-folder` option to the autorest argument list
func (*Generator) WithMultiAPI ¶
WithMultiAPI appends a multiapi flag to the autorest argument list
func (*Generator) WithOption ¶
WithOption appends an model.Option to the argument list of the autorest generation
func (*Generator) WithReadme ¶
WithReadme appends a readme argument
type MetadataProcessError ¶
MetadataProcessError ...
type MetadataProcessor ¶
type MetadataProcessor struct {
// contains filtered or unexported fields
}
MetadataProcessor processes the metadata
func NewMetadataProcessorFromLocation ¶
func NewMetadataProcessorFromLocation(metadataOutput string) *MetadataProcessor
NewMetadataProcessorFromLocation creates a new MetadataProcessor using the metadata output folder location