Documentation
¶
Index ¶
- func ChoosePod(flags *genericclioptions.ConfigFlags, podName string, deployment string, ...) (apiv1.Pod, error)
- func GetDeploymentPod(flags *genericclioptions.ConfigFlags, deployment string) (apiv1.Pod, error)
- func GetDeployments(flags *genericclioptions.ConfigFlags, namespace string) ([]appsv1.Deployment, error)
- func GetEndpointsByName(flags *genericclioptions.ConfigFlags, namespace string, name string) (*apiv1.Endpoints, error)
- func GetIngressDefinitions(flags *genericclioptions.ConfigFlags, namespace string) ([]networking.Ingress, error)
- func GetLabeledPod(flags *genericclioptions.ConfigFlags, label string) (apiv1.Pod, error)
- func GetNamedPod(flags *genericclioptions.ConfigFlags, name string) (apiv1.Pod, error)
- func GetNumEndpoints(flags *genericclioptions.ConfigFlags, namespace string, serviceName string) (*int, error)
- func GetServiceByName(flags *genericclioptions.ConfigFlags, name string, services *[]apiv1.Service) (apiv1.Service, error)
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.
Click to show internal directories.
Click to hide internal directories.