request

package
v0.0.0-...-0db023b Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChoosePod

func ChoosePod(flags *genericclioptions.ConfigFlags, podName string, deployment string, selector string) (apiv1.Pod, error)

ChoosePod finds a pod either by deployment or by name

func GetDeploymentPod

func GetDeploymentPod(flags *genericclioptions.ConfigFlags, deployment string) (apiv1.Pod, error)

GetDeploymentPod finds a pod from a given deployment

func GetDeployments

func GetDeployments(flags *genericclioptions.ConfigFlags, namespace string) ([]appsv1.Deployment, error)

GetDeployments returns an array of Deployments

func GetEndpointsByName

func GetEndpointsByName(flags *genericclioptions.ConfigFlags, namespace string, name string) (*apiv1.Endpoints, error)

GetEndpointsByName returns the endpoints for the service with the given name

func GetIngressDefinitions

func GetIngressDefinitions(flags *genericclioptions.ConfigFlags, namespace string) ([]networking.Ingress, error)

GetIngressDefinitions returns an array of Ingress resource definitions

func GetLabeledPod

func GetLabeledPod(flags *genericclioptions.ConfigFlags, label string) (apiv1.Pod, error)

GetLabeledPod finds a pod from a given label

func GetNamedPod

func GetNamedPod(flags *genericclioptions.ConfigFlags, name string) (apiv1.Pod, error)

GetNamedPod finds a pod with the given name

func GetNumEndpoints

func GetNumEndpoints(flags *genericclioptions.ConfigFlags, namespace string, serviceName string) (*int, error)

GetNumEndpoints counts the number of endpoints for the service with the given name

func GetServiceByName

func GetServiceByName(flags *genericclioptions.ConfigFlags, name string, services *[]apiv1.Service) (apiv1.Service, error)

GetServiceByName finds and returns the service definition with the given name

Types

This section is empty.

Jump to

Keyboard shortcuts

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