endpoint

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEndpoints

func GetEndpoints(client k8sClient.Interface, namespace, name string) ([]v1.Endpoints, error)

GetEndpoints gets endpoints associated to resource with given name.

Types

type Endpoint

type Endpoint struct {
	ObjectMeta api.ObjectMeta `json:"objectMeta"`
	TypeMeta   api.TypeMeta   `json:"typeMeta"`

	// Hostname, either as a domain name or IP address.
	Host string `json:"host"`

	// Name of the node the endpoint is located
	NodeName *string `json:"nodeName"`

	// Status of the endpoint
	Ready bool `json:"ready"`

	// Array of endpoint ports
	Ports []v1.EndpointPort `json:"ports"`
}

type EndpointList

type EndpointList struct {
	ListMeta api.ListMeta `json:"listMeta"`
	// List of endpoints
	Endpoints []Endpoint `json:"endpoints"`
}

func GetServiceEndpoints

func GetServiceEndpoints(client k8sClient.Interface, namespace, name string) (*EndpointList, error)

GetServiceEndpoints gets list of endpoints targeted by given label selector in given namespace.

Jump to

Keyboard shortcuts

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