Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Clientset ¶
type Clientset struct { kubernetes.Interface // contains filtered or unexported fields }
Clientset knows how to interact with a K8s cluster. It has a reference to user configuration stored in viper.
func NewClientset ¶
func NewClientset(appConfig *config.Config, k8sConfig *rest.Config, logger *log.Logger) (*Clientset, error)
NewClientset returns a new Clientset for the given config.
type ReadCloser ¶
ReadCloser implements the io.ReadCloser interface. It provides a Close() method to the io.Reader type, so that callers like k8s.ExecPod() can close the stdin stream when done.
func NewReadCloser ¶
func NewReadCloser(r io.Reader) (*ReadCloser, error)
func (*ReadCloser) Close ¶
func (r *ReadCloser) Close() error
Close closes the underlying buffer of r by resetting it.
Click to show internal directories.
Click to hide internal directories.