kube

package
v0.0.0-...-2f66ebe Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kube

type Kube struct {
	InnerKubeClient *kubernetes.Clientset
	Config          *rest.Config
	Namespace       string
}

func MustNew

func MustNew(kubeConf string, namespace string) *Kube

func New

func New(kubeConf string, namespace string) (kube *Kube, err error)

func (*Kube) ConnectivityCheck

func (k *Kube) ConnectivityCheck() error

func (*Kube) CreateKubeTunnelResource

func (k *Kube) CreateKubeTunnelResource(resourceSpec models.KubeTunnelResourceSpec) error

func (*Kube) GetPodLabelsByLabelSelector

func (k *Kube) GetPodLabelsByLabelSelector(namespace string, podLabelSelectors map[string]string) (map[string]string, error)

func (*Kube) GetServiceContext

func (k *Kube) GetServiceContext(name string) (*servicecontext.ServiceContext, error)

func (*Kube) GetServiceContextWithNamespace

func (k *Kube) GetServiceContextWithNamespace(name string, namespace string) (*servicecontext.ServiceContext, error)

func (*Kube) ListServiceNamesWithoutKubeTunnel

func (k *Kube) ListServiceNamesWithoutKubeTunnel() (serviceNames []string, err error)

func (*Kube) PortForward

func (k *Kube) PortForward(serviceName string, port string) (listeningPort int, err error)

func (*Kube) RBACCheck

func (k *Kube) RBACCheck() error

type PatchOperation

type PatchOperation struct {
	Op    string `json:"op"`
	Path  string `json:"path"`
	Value string `json:"value"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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