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 ¶
func New(getter genericclioptions.RESTClientGetter) *Client
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.