Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.