autorest

package
v0.0.0-...-f9b13d0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EXT = []string{"yaml", "yml", "go", "json"}
View Source
var GOTestOption = goTestOption{
	MockTest:     "--testmodeler.generate-mock-test",
	Example:      "--testmodeler.generate-sdk-example",
	ScenarioTest: "--testmodeler.generate-scenario-test",
	Sample:       "--testmodeler.generate-sdk-sample",
	FakeTest:     "--testmodeler.generate-fake-test",
}

Functions

func AutorestGo

func AutorestGo(outputFolder, autorestMDPath string, opts ...string) error

Types

type AutoRestMarkdown

type AutoRestMarkdown struct {
	AzureARM      string   `yaml:"azure-arm,omitempty"`
	Require       []string `yaml:"require,omitempty"`
	LicenseHeader string   `yaml:"license-header,omitempty"`
	ModuleVersion string   `yaml:"module-version,omitempty"`
	Tag           string   `yaml:"tag,omitempty"`

	Directive any `yaml:"directive,omitempty"`
}

func ReadAutoRestMarkdown

func ReadAutoRestMarkdown(md string) (*AutoRestMarkdown, error)

func (AutoRestMarkdown) GetSpec

func (a AutoRestMarkdown) GetSpec() (string, string)

Jump to

Keyboard shortcuts

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