creator

package
v1.18.2 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cell = cell.Module(
	"endpoint-creator",
	"API for creating and parsing Endpoints",

	cell.Provide(newEndpointCreator),
)

Cell provides the EndpointCreator API for creating and parsing Endpoints.

Functions

This section is empty.

Types

type EndpointCreator

type EndpointCreator interface {
	// NewEndpointFromChangeModel creates a new endpoint from a request
	NewEndpointFromChangeModel(ctx context.Context, base *models.EndpointChangeRequest) (*endpoint.Endpoint, error)

	ParseEndpoint(epJSON []byte) (*endpoint.Endpoint, error)

	// AddIngressEndpoint creates an Endpoint representing Cilium Ingress on this node without a
	// corresponding container necessarily existing. This is needed to be able to ingest and
	// sync network policies applicable to Cilium Ingress to Envoy.
	AddIngressEndpoint(ctx context.Context) error

	AddHostEndpoint(ctx context.Context) error
}

Jump to

Keyboard shortcuts

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