kubepod

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: Apache-2.0 Imports: 7 Imported by: 8

Documentation

Overview

Package kubepod provides connhelper for kube-pod://<pod>

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Helper

func Helper(u *url.URL) (*connhelper.ConnectionHelper, error)

Helper returns helper for connecting to a Kubernetes pod. Requires BuildKit v0.5.0 or later in the pod.

Types

type Spec

type Spec struct {
	Context   string
	Namespace string
	Pod       string
	Container string
}

Spec

func SpecFromURL

func SpecFromURL(u *url.URL) (*Spec, error)

SpecFromURL creates Spec from URL. URL is like kube-pod://<pod>?context=<context>&namespace=<namespace>&container=<container> . Only <pod> part is mandatory.

Jump to

Keyboard shortcuts

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