spdy

package
v4.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fake

type Fake struct {
	Calls int
	Stdin []byte
}

Fake is a Initializer implementation.

func NewSPDYFakeInitializer

func NewSPDYFakeInitializer() *Fake

NewSPDYFakeInitializer initializes a new Fake.

func (*Fake) NewSPDYExecutor

func (f *Fake) NewSPDYExecutor(method string, url *url.URL) (remotecommand.Executor, error)

NewSPDYExecutor initializes a new remotecommand.Executor using Fake.

func (*Fake) Stream

func (f *Fake) Stream(options remotecommand.StreamOptions) error

Stream mocks the remotecommand.Executor Stream method.

type Initializer

type Initializer interface {
	NewSPDYExecutor(method string, url *url.URL) (remotecommand.Executor, error)
}

Initializer is used to initialize different SPDY executors. This interface was created to allow mocking a Kubernetes SPDY executor.

func NewSPDYInitializer

func NewSPDYInitializer(config *rest.Config) Initializer

NewSPDYInitializer initializes a new Initializer using the default implementation.

Jump to

Keyboard shortcuts

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