k8s

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddConfig

func AddConfig(config *config.Config, outputPath string, kind string, namespace string, name string)

func AddDescription

func AddDescription(config *config.Config, outputPath string, kind string, namespace string, name string)

func AddHttpConnectionTest added in v1.2.4

func AddHttpConnectionTest(config *config.Config, outputPath string, namespace string, name string, containerName string, url string)

func AddKubernetesNodesInformation added in v1.0.0

func AddKubernetesNodesInformation(cfg *config.Config)

func AddLogs

func AddLogs(cfg *config.Config, path string, namespace string, name string)

func AddPodHttpEndpointOutput

func AddPodHttpEndpointOutput(options AddPodHttpEndpointOutputOptions)

func AddPodHttpMultipleEndpointOutput added in v1.1.2

func AddPodHttpMultipleEndpointOutput(options AddPodHttpEndpointsOutputOptions)

func AddPreviousLogs

func AddPreviousLogs(cfg *config.Config, path string, namespace string, name string)

func AddResourceUsage

func AddResourceUsage(cfg *config.Config, path string, namespace string, name string, executions int)

AddResourceUsage path must include '%d' to replace the execution number within the file path

func AddTracerouteConnectionTest added in v1.2.4

func AddTracerouteConnectionTest(config *config.Config, outputPath string, namespace string, name string, containerName string, host string)

func AddWebsocketCurlHttp1ConnectionTest added in v1.2.4

func AddWebsocketCurlHttp1ConnectionTest(config *config.Config, outputPath string, namespace string, name string, containerName string, url string)

func AddWebsocketCurlHttp2ConnectionTest added in v1.2.4

func AddWebsocketCurlHttp2ConnectionTest(config *config.Config, outputPath string, namespace string, name string, containerName string, url string)

func AddWebsocketWebsocatConnectionTest added in v1.2.4

func AddWebsocketWebsocatConnectionTest(config *config.Config, outputPath string, namespace string, name string, containerName string, url string)

func DownloadFromPod added in v1.1.2

func DownloadFromPod(options AddDownloadOutputOptions)

func FindDeployment

func FindDeployment(cfg *config.Config, namespace string, name string) (*appsv1.Deployment, error)

func FindStatefulSet added in v1.2.0

func FindStatefulSet(cfg *config.Config, namespace string, name string) (*appsv1.StatefulSet, error)

func ForEachNode added in v1.0.0

func ForEachNode(cfg *config.Config, fn func(node *v1.Node))

ForEachNode note that the function fn will be executed in parallel for each node

func ForEachPod

func ForEachPod(cfg *config.Config, namespace string, selector *metav1.LabelSelector, fn func(pod *v1.Pod, idx int))

ForEachPod note that the function fn will be executed in parallel for each pod

func ForEachPodViaMapSelector added in v1.1.2

func ForEachPodViaMapSelector(cfg *config.Config, namespace string, selectorMap map[string]string, fn func(pod *v1.Pod, idx int))

ForEachPodViaMapSelector note that the function fn will be executed in parallel for each pod

func KillProcess added in v1.1.2

func KillProcess(cmd *exec.Cmd, options PodConfig)

func PreparePortforwarding added in v1.1.2

func PreparePortforwarding(options PodConfig, port int) (string, *exec.Cmd, error)

Types

type AddDownloadOutputOptions added in v1.1.2

type AddDownloadOutputOptions struct {
	Config       *config.Config
	OutputPath   string
	PodNamespace string
	PodName      string
	Url          string
	Method       string
}

type AddPodHttpEndpointOutputOptions

type AddPodHttpEndpointOutputOptions struct {
	Config                 *config.Config
	OutputPath             string
	PodNamespace           string
	PodName                string
	Url                    string
	Executions             int
	DelayBetweenExecutions *time.Duration
}

type AddPodHttpEndpointsOutputOptions added in v1.1.2

type AddPodHttpEndpointsOutputOptions struct {
	SharedPort      int
	PodConfig       PodConfig
	EndpointOptions []EndpointsOutputOptions
}

type Connection added in v1.2.4

type Connection struct {
	Url    string
	Auth   bool
	Method string
}

func GetExtensionConnections added in v1.2.4

func GetExtensionConnections(sharedPort int, podConfig PodConfig, cfg *config.Config) []Connection

type EndpointsOutputOptions added in v1.1.2

type EndpointsOutputOptions struct {
	OutputPath             string
	Url                    string
	Executions             int
	DelayBetweenExecutions *time.Duration
}

type PodConfig added in v1.1.2

type PodConfig struct {
	PodNamespace string
	PodName      string
	Config       *config.Config
}

Jump to

Keyboard shortcuts

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