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 ¶
func (g *APIGenerator) Generate(proxy *model.Proxy, w *model.WatchedResource, req *model.PushRequest) (model.Resources, model.XdsLogDetails, error)
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.