swagger

package
v1.18.0-beta22 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: Apache-2.0 Imports: 22 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadFromFileOrHTTP

func LoadFromFileOrHTTP(ctx context.Context, url string) ([]byte, error)

func NewFunctionDiscoveryFactory added in v1.9.25

func NewFunctionDiscoveryFactory() fds.FunctionDiscoveryFactory

func RetrieveSwaggerDocFromUrl

func RetrieveSwaggerDocFromUrl(ctx context.Context, url string) (*openapi.Swagger, error)

Types

type SwaggerFunctionDiscovery

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

func (*SwaggerFunctionDiscovery) DetectFunctions

func (f *SwaggerFunctionDiscovery) DetectFunctions(ctx context.Context, _ *url.URL, _ func() fds.Dependencies, updatecb func(fds.UpstreamMutator) error) error

func (*SwaggerFunctionDiscovery) DetectType

func (f *SwaggerFunctionDiscovery) DetectType(ctx context.Context, baseurl *url.URL) (*plugins.ServiceSpec, error)

func (*SwaggerFunctionDiscovery) IsFunctional

func (f *SwaggerFunctionDiscovery) IsFunctional() bool

type SwaggerFunctionDiscoveryFactory

type SwaggerFunctionDiscoveryFactory struct {
	DetectionTimeout time.Duration
	FunctionPollTime time.Duration
	SwaggerUrisToTry []string
	GraphqlClient    v1beta1.GraphQLApiClient
}

func (*SwaggerFunctionDiscoveryFactory) NewFunctionDiscovery

Jump to

Keyboard shortcuts

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