Help us shape the future of Go! Take the 2026 Go Developer Survey

swagger

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiPath

type ApiPath struct {
	Path           string
	ResourceType   string
	ApiVersion     string
	ExampleMap     map[string]string
	OperationIdMap map[string]string
	Methods        []string
	ApiType        ApiType
}

func Load

func Load(swaggerPath string) ([]ApiPath, error)

Load loads the swagger spec from the given path

type ApiType

type ApiType string
const (
	ApiTypeUnknown        ApiType = "unknown"
	ApiTypeList           ApiType = "list"
	ApiTypeResource       ApiType = "resource"
	ApiTypeResourceAction ApiType = "resourceAction"
	ApiTypeProviderAction ApiType = "providerAction"
)

Jump to

Keyboard shortcuts

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