Documentation ¶
Overview ¶
kubernetes package provides access to log collections on k8s
Index ¶
- func GetClientset() (*kubernetes.Clientset, *rest.Config, error)
- func GetClusters() ([]string, error)
- type K8SWriter
- type KubeArgs
- type KubeCtlAPIActions
- func (c *KubeCtlAPIActions) CleanupRemote() error
- func (c *KubeCtlAPIActions) CopyFromHost(hostString string, source, destination string) (out string, err error)
- func (c *KubeCtlAPIActions) CopyToHost(hostString string, source, destination string) (out string, err error)
- func (c *KubeCtlAPIActions) GetClient() *kubernetes.Clientset
- func (c *KubeCtlAPIActions) GetCoordinators() (podName []string, err error)
- func (c *KubeCtlAPIActions) GetExecutors() (podName []string, err error)
- func (c *KubeCtlAPIActions) HelpText() string
- func (c *KubeCtlAPIActions) HostExecute(mask bool, hostString string, args ...string) (out string, err error)
- func (c *KubeCtlAPIActions) HostExecuteAndStream(mask bool, hostString string, output cli.OutputHandler, pat string, ...) (err error)
- func (c *KubeCtlAPIActions) Name() string
- func (c *KubeCtlAPIActions) SearchPods(compare func(container string) bool) (podName []string, err error)
- func (c *KubeCtlAPIActions) SetHostPid(host, pidFile string)
- type TarPipe
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClientset ¶
func GetClientset() (*kubernetes.Clientset, *rest.Config, error)
func GetClusters ¶
Types ¶
type KubeCtlAPIActions ¶
type KubeCtlAPIActions struct {
// contains filtered or unexported fields
}
KubeCtlAPIActions provides a way to collect and copy files using kubectl
func NewK8sAPI ¶
func NewK8sAPI(kubeArgs KubeArgs, hook shutdown.CancelHook) (*KubeCtlAPIActions, error)
NewK8sAPI is the only supported way to initialize the NewK8sAPI struct one must pass the path to kubectl
func (*KubeCtlAPIActions) CleanupRemote ¶
func (c *KubeCtlAPIActions) CleanupRemote() error
func (*KubeCtlAPIActions) CopyFromHost ¶
func (c *KubeCtlAPIActions) CopyFromHost(hostString string, source, destination string) (out string, err error)
func (*KubeCtlAPIActions) CopyToHost ¶
func (c *KubeCtlAPIActions) CopyToHost(hostString string, source, destination string) (out string, err error)
func (*KubeCtlAPIActions) GetClient ¶
func (c *KubeCtlAPIActions) GetClient() *kubernetes.Clientset
func (*KubeCtlAPIActions) GetCoordinators ¶
func (c *KubeCtlAPIActions) GetCoordinators() (podName []string, err error)
func (*KubeCtlAPIActions) GetExecutors ¶
func (c *KubeCtlAPIActions) GetExecutors() (podName []string, err error)
func (*KubeCtlAPIActions) HelpText ¶
func (c *KubeCtlAPIActions) HelpText() string
func (*KubeCtlAPIActions) HostExecute ¶
func (*KubeCtlAPIActions) HostExecuteAndStream ¶
func (c *KubeCtlAPIActions) HostExecuteAndStream(mask bool, hostString string, output cli.OutputHandler, pat string, args ...string) (err error)
func (*KubeCtlAPIActions) Name ¶
func (c *KubeCtlAPIActions) Name() string
func (*KubeCtlAPIActions) SearchPods ¶
func (c *KubeCtlAPIActions) SearchPods(compare func(container string) bool) (podName []string, err error)
func (*KubeCtlAPIActions) SetHostPid ¶
func (c *KubeCtlAPIActions) SetHostPid(host, pidFile string)
Click to show internal directories.
Click to hide internal directories.