kubernetes

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

kubernetes package provides access to log collections on k8s

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeArgs added in v0.6.0

type KubeArgs struct {
	Namespace            string
	CoordinatorContainer string
	ExecutorsContainer   string
	KubectlPath          string
}

type KubectlK8sActions

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

KubectlK8sActions provides a way to collect and copy files using kubectl

func NewKubectlK8sActions

func NewKubectlK8sActions(kubeArgs KubeArgs) *KubectlK8sActions

NewKubectlK8sActions is the only supported way to initialize the KubectlK8sActions struct one must pass the path to kubectl

func (*KubectlK8sActions) CopyFromHost

func (c *KubectlK8sActions) CopyFromHost(hostString string, isCoordinator bool, source, destination string) (out string, err error)

func (*KubectlK8sActions) CopyFromHostSudo

func (c *KubectlK8sActions) CopyFromHostSudo(hostString string, isCoordinator bool, _, source, destination string) (out string, err error)

func (*KubectlK8sActions) CopyToHost

func (c *KubectlK8sActions) CopyToHost(hostString string, isCoordinator bool, source, destination string) (out string, err error)

func (*KubectlK8sActions) CopyToHostSudo

func (c *KubectlK8sActions) CopyToHostSudo(hostString string, isCoordinator bool, _, source, destination string) (out string, err error)

func (*KubectlK8sActions) FindHosts

func (c *KubectlK8sActions) FindHosts(searchTerm string) (podName []string, err error)

func (*KubectlK8sActions) HelpText

func (c *KubectlK8sActions) HelpText() string

func (*KubectlK8sActions) HostExecute

func (c *KubectlK8sActions) HostExecute(mask bool, hostString string, isCoordinator bool, args ...string) (out string, err error)

func (*KubectlK8sActions) HostExecuteAndStream

func (c *KubectlK8sActions) HostExecuteAndStream(mask bool, hostString string, output cli.OutputHandler, isCoordinator bool, args ...string) (err error)

func (*KubectlK8sActions) Name added in v0.8.0

func (c *KubectlK8sActions) Name() string

Jump to

Keyboard shortcuts

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