podexec

package
v1.16.1 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2020 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Package api is the internal version of the API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecLocation

func ExecLocation(
	getter corev1client.CoreV1Interface,
	connInfo kubelet.ConnectionInfoGetter,
	ctx context.Context,
	name string,
	opts *PodExec,
) (*url.URL, http.RoundTripper, error)

ExecLocation returns the exec URL for a pod container. If opts.Container is blank and only one container is present in the pod, that container is used.

func NewPodExecREST

func NewPodExecREST(getter generic.RESTOptionsGetter) rest.Storage

Types

type PodExecREST

type PodExecREST struct {
	KubeletConn kubelet.ConnectionInfoGetter
	// contains filtered or unexported fields
}

+k8s:deepcopy-gen=false

func (*PodExecREST) Connect

func (r *PodExecREST) Connect(ctx context.Context, name string, opts runtime.Object, responder rest.Responder) (http.Handler, error)

func (*PodExecREST) ConnectMethods

func (r *PodExecREST) ConnectMethods() []string

func (*PodExecREST) New

func (r *PodExecREST) New() runtime.Object

func (*PodExecREST) NewConnectOptions

func (r *PodExecREST) NewConnectOptions() (runtime.Object, bool, string)

Directories

Path Synopsis
+k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=sigs.k8s.io/apiserver-builder-alpha/example/podexec/pkg/apis/podexec +k8s:defaulter-gen=TypeMeta +groupName=podexec.example.com
+k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=sigs.k8s.io/apiserver-builder-alpha/example/podexec/pkg/apis/podexec +k8s:defaulter-gen=TypeMeta +groupName=podexec.example.com

Jump to

Keyboard shortcuts

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