endpoint

package
v0.0.0-...-5f9e29a Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

type Endpoint interface {
	// NamespacedName returns a ns name to identify this endpoint
	NamespacedName() types.NamespacedName
	// Hostname returns a hostname for the endpoint
	Hostname() string
	// BackendPort returns a port which can be used by the application behind this endpoint
	BackendPort() int32
	// IngressPort is a port which is used by the clients to connect to the endpoint
	IngressPort() int32
	// IsHealthy returns whether or not all Kube resources used by endpoint are healthy
	IsHealthy(ctx context.Context, c client.Client) (bool, error)
	// MarkForCleanup adds a label to all the resources created for the endpoint
	// Callers are expected to not overwrite
	MarkForCleanup(ctx context.Context, c client.Client, key, value string) error
}

Endpoint knows how to connect with a Transport or a Transfer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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