attachablepod

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package attachablepod provides functions that allow callers to pass higher order objects and find an attachable pod. It depends on kubectl as a module, which provides this same behavior for commands like `exec` and `port-forward`

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is an attachable pod client.

func New

New constructs a new attachable pod client from the given factory.

func (*Client) Get

func (c *Client) Get(resourceName string, namespace string, timeout time.Duration) (interface{}, *v1.Pod, error)

Get resolves a pod from a resource string and namespace, within the specified timeout. A resource is specified in kubectl syntax: <resource>/<name>. It can be a pod or a an object with pod selectors like Service or Deployment. It returns the directly referenced object with the requested resource type and the first attachable pod.

Jump to

Keyboard shortcuts

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