package attach

import "github.com/oslokommune/okctl/pkg/kube/attach"

Package attach knows how to interact with a running pod

Index

Types

type Attach

type Attach struct {
	Client kubernetes.Interface
	Config *restclient.Config
}

Attach contains the required state for connecting to a pod

func New

func New(client kubernetes.Interface, config *restclient.Config) *Attach

New returns an initialised attacher

func (*Attach) Run

func (a *Attach) Run(podName string, namespace, command string, stdin io.Reader, stdout io.Writer, stderr io.Writer) error

Run a given command

Source Files

attach.go

Version
v0.0.106 (latest)
Published
Oct 21, 2022
Platform
linux/amd64
Imports
6 packages
Last checked
4 days ago

Tools for package owners.