pod

package
v0.0.0-...-d661a11 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const AuthorizedKeyAnnotation = "ssh.barpilot.io/publickey"
View Source
const CommandAnnotation = "ssh.barpilot.io/command"
View Source
const PrefixCommandAnnotation = "ssh.barpilot.io/prefix-command"

Variables

View Source
var ErrDestination = errors.New("can't find destination")

Functions

This section is empty.

Types

type CRI

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

CRI is "container resource identifier"

func NewCRI

func NewCRI(containerName, podName, namespace string) CRI

type CurrentPodHandler

type CurrentPodHandler interface {
	GetCurrentPodName() string
	GetCurrentNamespace() string
	GetCurrentPod(ctx context.Context) (*corev1.Pod, error)
}

func NewCurrentPodHandler

func NewCurrentPodHandler(clientSet *kubernetes.Clientset) (CurrentPodHandler, error)

type PRI

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

PRI is "pod resource identifier"

func NewPRI

func NewPRI(podName, namespace string) PRI

type SshHandler

type SshHandler interface {
	Ssh4ContainerShellHandler(cri CRI, cmd string) func(ssh.Session)
}

func NewSshHandler

func NewSshHandler(
	config *rest.Config,
) (SshHandler, error)

type User

type User struct {
	PublicKey ssh.PublicKey
	User      string
	Pod       string
	Namespace string
}

Jump to

Keyboard shortcuts

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