endpoint

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Destroy

func Destroy(e Endpoint) error

Destroy destroys a given endpoint

Types

type Endpoint

type Endpoint interface {
	// Create given a client, creates all kube resources
	// required for the endpoint to work and returns err
	Create(client.Client) error
	// Hostname returns a hostname for the endpoint
	Hostname() string
	// Port returns a backend port to which endpoint can connect
	// typically used by a Transport or a Transfer to accept local incoming connections
	Port() int32
	// ExposedPort returns a port which outsiders can use to connect to the endpoint
	// typically used by a Transport or a Transfer's remote counterparts to connect to the endpoint
	ExposedPort() int32
	// NamespacedName returns a ns name to identify this endpoint
	NamespacedName() types.NamespacedName
	// Labels returns labels used by this endpoint
	Labels() map[string]string
	// IsHealthy returns whether or not all Kube resources used by endpoint are healthy
	IsHealthy(c client.Client) (bool, error)
}

Endpoint knows how to connect with a Transport or a Transfer

func Create

func Create(e Endpoint, c client.Client) (Endpoint, error)

Create creates a new endpoint

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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