executor

package
v0.0.0-...-172c968 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RemoteExecuteAPI

type RemoteExecuteAPI struct {
	Image              string   `yaml:"image"`
	ImageParameters    []string `yaml:"image_parameters"`
	ServiceAccountName string   `yaml:"service_account_name"`
	Target             Target   `yaml:"target"`
}

type RemoteExecutor

type RemoteExecutor struct {
	ServiceAccountName string
	TargetPort         int32
	ImageParameters    []string
}

type RemoteExecutorConfig

type RemoteExecutorConfig struct {
	Name       string
	Namespace  string
	Image      string
	Parameters RemoteExecutor
	Addr       string
	StopCh     chan struct{}
	ReadyCh    chan struct{}
	ErrCh      chan error
	Out        *bytes.Buffer
	ErrOut     *bytes.Buffer
	LocalPort  int32
}

func NewExecutorConfig

func NewExecutorConfig(name, namespace, image string, imageParameters []string, serviceAccountName string, targetPort int32) *RemoteExecutorConfig

Executor configurations are meant to be used to execute remote commands on a pod in a cluster.

func (*RemoteExecutorConfig) Cleanup

func (r *RemoteExecutorConfig) Cleanup(ctx context.Context, client *kubernetes.Clientset) error

func (*RemoteExecutorConfig) Deploy

func (*RemoteExecutorConfig) OpenLocalPort

func (r *RemoteExecutorConfig) OpenLocalPort(ctx context.Context, client *k8s.Client) (*portforward.PortForwarder, error)

type Target

type Target struct {
	Port int32  `yaml:"target_port"`
	Path string `yaml:"path"`
}

Jump to

Keyboard shortcuts

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