k8s

package
v0.1.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

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

func New

func New(kubeconfig string) (*Api, error)

func (*Api) Dialer

func (api *Api) Dialer(p *TargetPod) (httpstream.Dialer, error)

func (*Api) GetMatchingPod

func (api *Api) GetMatchingPod(ctx context.Context, namespace, podName, port string) (*TargetPod, error)

func (*Api) GetMatchingPodForService

func (api *Api) GetMatchingPodForService(ctx context.Context, namespace, serviceName, port string) (*TargetPod, error)

type TargetPod

type TargetPod struct {
	Name      string
	Port      string
	Namespace string
}

Jump to

Keyboard shortcuts

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