explorer

package
v0.0.0-...-e79fade Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BreakNow = false
View Source
var Recieved = false

Functions

func HandleSignals

func HandleSignals()

Types

type LearnedPrivilege

type LearnedPrivilege bool

type LocalExplorer

type LocalExplorer struct {
	ClientSet kubernetes.Clientset
	Config    rest.Config
	Options   *LocalExplorerOptions
}

func NewLocalExplorer

func NewLocalExplorer(clientSet kubernetes.Clientset, config rest.Config, options *LocalExplorerOptions) *LocalExplorer

func (*LocalExplorer) Probe

func (l *LocalExplorer) Probe() error

type LocalExplorerOptions

type LocalExplorerOptions struct {
	Namespace string
}

type ProbedProfile

type ProbedProfile struct {
	ClusterName               string
	Nodes                     []v1.Node
	AccessKubeSystemNamespace LearnedPrivilege
}

type RemoteExplorer

type RemoteExplorer struct {
	ClientSet kubernetes.Clientset
	Config    rest.Config
	Options   *RemoteExplorerOptions
}

func NewRemoteExplorer

func NewRemoteExplorer(clientSet kubernetes.Clientset, config rest.Config, options *RemoteExplorerOptions) *RemoteExplorer

func (*RemoteExplorer) Attach

func (e *RemoteExplorer) Attach(profile *ProbedProfile, namespace, image, shell string) error

*

  • Attach will attach to a pod based on input from the user

func (*RemoteExplorer) DeferDeletePod

func (e *RemoteExplorer) DeferDeletePod(name, namespace string)

func (*RemoteExplorer) Probe

func (e *RemoteExplorer) Probe() (*ProbedProfile, error)

*

  • Probe is what is used to determine what privileges we can
  • run with.

type RemoteExplorerOptions

type RemoteExplorerOptions struct {
	KubeconfigPath      string
	Namespace           string
	Image               string
	Shell               string
	GroupID             int
	UserID              int
	PrivilegeEscalation bool
	MountProc           bool
	Name                string
}

Jump to

Keyboard shortcuts

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