transport

package
v0.0.0-...-c6cf6ad Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Get(path string) ([]byte, error)
}

func NewProxyClient

func NewProxyClient(resource ProxyResource, name string, namespace string, port string, clientSet kubernetes.Interface) Client

type HttpClientTransport

type HttpClientTransport struct {
	// contains filtered or unexported fields
}

func NewHTTPClientTransport

func NewHTTPClientTransport(host string, port string, opts ...HttpClientTransportOpt) *HttpClientTransport

func (HttpClientTransport) Get

func (h HttpClientTransport) Get(path string) ([]byte, error)

type HttpClientTransportOpt

type HttpClientTransportOpt func(t *HttpClientTransport)

func WithTimeout

func WithTimeout(duration time.Duration) HttpClientTransportOpt

func WithTransport

func WithTransport(transport http.RoundTripper) HttpClientTransportOpt

type NotFoundError

type NotFoundError struct {
	// contains filtered or unexported fields
}

NotFoundError indicates that the requested resource was not found

func NewNotFoundError

func NewNotFoundError(err error) NotFoundError

func (NotFoundError) Error

func (e NotFoundError) Error() string

func (NotFoundError) Unwrap

func (e NotFoundError) Unwrap() error

type ProxyResource

type ProxyResource string
const (
	Pod     ProxyResource = "pods"
	Service ProxyResource = "services"
)

type ServiceUnavailableError

type ServiceUnavailableError struct {
	// contains filtered or unexported fields
}

ServiceUnavailableError indicates that the Spark API is unavailable

func NewServiceUnavailableError

func NewServiceUnavailableError(err error) ServiceUnavailableError

func (ServiceUnavailableError) Error

func (e ServiceUnavailableError) Error() string

func (ServiceUnavailableError) Unwrap

func (e ServiceUnavailableError) Unwrap() error

Directories

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

Jump to

Keyboard shortcuts

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