executor

package
v0.0.0-...-87df8d5 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Command string

	Args []string
}

func (*Command) GetCommand

func (c *Command) GetCommand() []string

func (*Command) ToString

func (c *Command) ToString() string

type RemoteExecutor

type RemoteExecutor struct {
	Config    *rest.Config
	Clientset *kubernetes.Clientset
}

func NewRemoteExecutor

func NewRemoteExecutor(config *rest.Config) (*RemoteExecutor, error)

func (*RemoteExecutor) AccessServiceProxy

func (e *RemoteExecutor) AccessServiceProxy(namespace, serviceName, path string) (output []byte, err error)

func (*RemoteExecutor) RunCommandInPod

func (e *RemoteExecutor) RunCommandInPod(podName, namespace string, command Command) (string, error)

Jump to

Keyboard shortcuts

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