openapi

package
Version: v0.0.0-...-d88c8b5 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: Apache-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 AggregationController

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

AggregationController periodically check for changes in OpenAPI specs of APIServices and update/remove them if necessary.

func NewAggregationController

func NewAggregationController(downloader *aggregator.Downloader, openAPIAggregationManager aggregator.SpecAggregator) *AggregationController

NewAggregationController creates new OpenAPI aggregation controller.

func (*AggregationController) AddAPIService

func (c *AggregationController) AddAPIService(handler http.Handler, apiService *v1.APIService)

AddAPIService adds a new API Service to OpenAPI Aggregation.

func (*AggregationController) RemoveAPIService

func (c *AggregationController) RemoveAPIService(apiServiceName string)

RemoveAPIService removes API Service from OpenAPI Aggregation Controller.

func (*AggregationController) Run

func (c *AggregationController) Run(stopCh <-chan struct{})

Run starts OpenAPI AggregationController

func (*AggregationController) UpdateAPIService

func (c *AggregationController) UpdateAPIService(handler http.Handler, apiService *v1.APIService)

UpdateAPIService updates API Service's info and handler.

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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