model

package
v49.3.0+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata

type Metadata interface {
	// SwaggerFiles returns the related swagger files in this tag
	SwaggerFiles() []string
	// PackagePath returns the output package path of this tag
	PackagePath() string
}

Metadata ...

func NewMetadataFrom

func NewMetadataFrom(reader io.Reader) (Metadata, error)

NewMetadataFrom reads a new Metadata from a io.Reader

type Option

type Option interface {
	// Format returns the actual option in string
	Format() string
}

Option describes an option of a autorest command line

func NewArgument

func NewArgument(value string) Option

NewArgument returns a new argument option (without "--")

func NewFlagOption

func NewFlagOption(flag string) Option

NewFlagOption returns a flag option (with "--", without value)

func NewKeyValueOption

func NewKeyValueOption(key, value string) Option

NewKeyValueOption returns a key-value option like "--tag=something"

type Options

type Options interface {
	// Arguments returns the argument defined in this options
	Arguments() []string
	// CodeGeneratorVersion returns the code generator version defined in this options
	CodeGeneratorVersion() string
}

Options ...

func NewOptionsFrom

func NewOptionsFrom(reader io.Reader) (Options, error)

NewOptionsFrom returns a new instance of Options from the given io.Reader

Jump to

Keyboard shortcuts

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