apigen

package
v0.0.0-...-055e235 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 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 APIGenerator

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

APIGenerator supports generation of high-level API resources, similar with the MCP protocol. This is a replacement for MCP, using XDS (and in future UDPA) as a transport. Based on lessons from MCP, the protocol allows incremental updates by default, using the same mechanism that EDS is using, i.e. sending only changed resources in a push. Incremental deletes are sent as a resource with empty body.

Example: networking.istio.io/v1alpha3/VirtualService

TODO: we can also add a special marker in the header)

func NewGenerator

func NewGenerator(store model.ConfigStore) *APIGenerator

func (*APIGenerator) Generate

Generate implements the generate method for high level APIs, like Istio config types. This provides similar functionality with MCP and :8080/debug/configz.

Names are based on the current resource naming in istiod stores.

Jump to

Keyboard shortcuts

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