package operations
import "github.com/go-openapi/analysis/internal/flatten/operations"
Index ¶
- func AllOpRefsByRef(specDoc Provider, operationIDs []string) map[string]OpRef
- func GatherOperations(specDoc Provider, operationIDs []string) map[string]OpRef
- func OpRefsByRef(oprefs map[string]OpRef) map[string]OpRef
- type OpRef
- type OpRefs
- type Provider
Functions ¶
func AllOpRefsByRef ¶
AllOpRefsByRef returns an index of sortable operations
func GatherOperations ¶
GatherOperations builds a map of sorted operations from a spec
func OpRefsByRef ¶
OpRefsByRef indexes a map of sortable operations
Types ¶
type OpRef ¶
type OpRef struct { Method string Path string Key string ID string Op *spec.Operation Ref spec.Ref }
OpRef is an indexable, sortable operation
type OpRefs ¶
type OpRefs []OpRef
OpRefs is a sortable collection of operations
func (OpRefs) Len ¶
func (OpRefs) Less ¶
func (OpRefs) Swap ¶
type Provider ¶
Provider knows how to collect operations from a spec
Source Files ¶
- Version
- v0.23.0 (latest)
- Published
- Mar 9, 2024
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 5 days ago –
Tools for package owners.