kube

package
v0.0.0-...-9cbdc0a Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterEventsFromNode

func FilterEventsFromNode(events []api.Event, node *api.Node) (result []api.Event)

func FilterNodePods

func FilterNodePods(pods []*api.Pod, node *api.Node) (result []*api.Pod)

func FilterTerminatedPods

func FilterTerminatedPods(pods []*api.Pod) (terminated []*api.Pod, nonTerminated []*api.Pod)

func FormatEndpoints

func FormatEndpoints(endpoints *api.Endpoints, ports sets.String) string

Pass ports=nil for all ports.

func GetPodsTotalRequestsAndLimits

func GetPodsTotalRequestsAndLimits(pods []*api.Pod) (reqs map[api.ResourceName]resource.Quantity, limits map[api.ResourceName]resource.Quantity, err error)

func GetServiceExternalIP

func GetServiceExternalIP(svc *api.Service) string

func GetSinglePodTotalRequestsAndLimits

func GetSinglePodTotalRequestsAndLimits(pod *api.Pod) (reqs map[api.ResourceName]resource.Quantity, limits map[api.ResourceName]resource.Quantity, err error)

func MakePorts

func MakePorts(ports []api.ServicePort) []string

func TranslateResourseList

func TranslateResourseList(resourceList api.ResourceList) map[string]string

func TranslateTimestamp

func TranslateTimestamp(timestamp api_uv.Time) string

translateTimestamp returns the elapsed time since timestamp in human-readable approximation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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