exporter

package
v0.298.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SyslRefToJSONSchema added in v0.76.0

func SyslRefToJSONSchema(syslRef string) string

Types

type EndpointExporter

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

type Exporter added in v0.249.0

type Exporter interface {
	// ExportFile reads in a Sysl file from path, converts it to the output format, and writes it to
	// the file system.
	ExportFile(path string) error
	// ExportApp takes a Sysl app, converts it to the output format, and writes it to the file
	// system.
	ExportApp(app *sysl.Application) error
}

Exporter is an interface implemented by all Sysl exporters.

type OpenAPI3Exporter added in v0.76.0

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

func MakeOpenAPI3Exporter added in v0.76.0

func MakeOpenAPI3Exporter(apps map[string]*syslwrapper.App, logger *logrus.Logger) *OpenAPI3Exporter

func (*OpenAPI3Exporter) Export added in v0.76.0

func (s *OpenAPI3Exporter) Export() error

func (*OpenAPI3Exporter) GenerateOpenAPI3 added in v0.76.0

func (s *OpenAPI3Exporter) GenerateOpenAPI3(app *syslwrapper.App) (*openapi3.Swagger, error)

func (*OpenAPI3Exporter) SerializeOutput added in v0.76.0

func (s *OpenAPI3Exporter) SerializeOutput(appName string, mode string) ([]byte, error)

type SpannerExporter added in v0.249.0

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

func MakeSpannerExporter added in v0.249.0

func MakeSpannerExporter(fs afero.Fs, logger *logrus.Logger, rootPath, outPath string) *SpannerExporter

MakeSpannerExporter returns a new SpannerExporter.

func (*SpannerExporter) ExportApp added in v0.249.0

func (s *SpannerExporter) ExportApp(*sysl.Application) error

func (*SpannerExporter) ExportFile added in v0.249.0

func (s *SpannerExporter) ExportFile(inPath string) error

ExportFile reads in a Sysl file from path, converts it to the output format, and writes it to the file system.

type SwaggerExporter

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

func MakeSwaggerExporter

func MakeSwaggerExporter(app *proto.Application, logger *logrus.Logger) *SwaggerExporter

func (*SwaggerExporter) GenerateSwagger

func (s *SwaggerExporter) GenerateSwagger() error

func (*SwaggerExporter) SerializeOutput

func (s *SwaggerExporter) SerializeOutput(mode string) ([]byte, error)

type TypeExporter

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

Jump to

Keyboard shortcuts

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