kubernetes

package
v0.0.0-...-40334a3 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Black   = "\033[1;30m%s\033[0m"
	Red     = "\033[1;31m%s\033[0m"
	Green   = "\033[1;32m%s\033[0m"
	Yellow  = "\033[1;33m%s\033[0m"
	Blue    = "\033[1;34m%s\033[0m"
	Magenta = "\033[1;35m%s\033[0m"
	Cyan    = "\033[1;36m%s\033[0m"
	White   = "\033[1;37m%s\033[0m"
)
View Source
const (
	SUFFIX_CONFIG_MAP = "config-map"
	CONFIG_POD_REGEX  = "POD_REGEX"
	CONFIG_NAMESPACES = "NAMESPACES"
)
View Source
const (
	SELF_RESOURCES_PREFIX = "kubeshark-"
)

Variables

This section is empty.

Functions

func GetSelfNamespace

func GetSelfNamespace() string

func GetSelfPodName

func GetSelfPodName() string

func GetTargetedPods

func GetTargetedPods() []v1.Pod

func GetThisNodeName

func GetThisNodeName(watcher *Watcher) (name string, err error)

func GetWatchedPods

func GetWatchedPods() []v1.Pod

func IsPodRunning

func IsPodRunning(pod *v1.Pod) bool

func SetTargetedPods

func SetTargetedPods(pods []v1.Pod)

func SetWatchedPods

func SetWatchedPods(pods []v1.Pod)

func SyncConfig

func SyncConfig(configMap *v1.ConfigMap) (*regexp.Regexp, []string)

Types

type Watcher

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

func NewFromInCluster

func NewFromInCluster(errOut chan error, callback callbackPodsChanged) *Watcher

func (*Watcher) Start

func (watcher *Watcher) Start(ctx context.Context, clusterMode bool)

Jump to

Keyboard shortcuts

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