network

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Interface

type Interface interface {
	NewTransportWithToken(c *rest.Config) (http.RoundTripper, error)
	AllocateLocalPort() (int, error)
}

type Network

type Network struct{}

func (*Network) AllocateLocalPort

func (*Network) AllocateLocalPort() (int, error)

AllocateLocalPort returns a free port on localhost.

func (*Network) NewTransportWithToken

func (*Network) NewTransportWithToken(c *rest.Config) (http.RoundTripper, error)

NewTransportWithToken returns a RoundTripper with token support.

Directories

Path Synopsis
Package mock_network is a generated GoMock package.
Package mock_network is a generated GoMock package.

Jump to

Keyboard shortcuts

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