apiserver

package
v0.0.0-...-dca2ff9 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotCompiled is returned if kubernetes apiserver support is not compiled in.
	// User classes should handle that case as gracefully as possible.
	ErrNotCompiled = errors.New("kubernetes apiserver support not compiled in")
)

Functions

func GetMetadataMapBundleOnAllNodes

func GetMetadataMapBundleOnAllNodes(_ *APIClient) (*apiv1.MetadataResponse, error)

GetMetadataMapBundleOnAllNodes is used for the CLI svcmap command to run fetch the service map of all nodes.

func GetMetadataMapBundleOnNode

func GetMetadataMapBundleOnNode(nodeName string) (*apiv1.MetadataResponse, error)

GetMetadataMapBundleOnNode is used for the CLI svcmap command to output given a nodeName

func GetNodeLabels

func GetNodeLabels(nodeName string) (map[string]string, error)

GetNodeLabels retrieves the labels of the queried node from the cache of the shared informer.

func GetPodMetadataNames

func GetPodMetadataNames(nodeName, ns, podName string) ([]string, error)

GetPodMetadataNames is used when the API endpoint of the DCA to get the services of a pod is hit.

Types

type APIClient

type APIClient struct {
	Cl interface{}
}

APIClient provides authenticated access to the

func GetAPIClient

func GetAPIClient() (*APIClient, error)

GetAPIClient returns the shared ApiClient instance.

Jump to

Keyboard shortcuts

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