testing

package
v0.0.0-...-4308112 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockProxier

type MockProxier struct {
	// See Proxier interface
	RawConfigFn func() (map[string]interface{}, error)

	// See Proxier interface
	StartFn func() error

	// See Proxier interface
	StopFn func()

	// See Proxier interface
	TypeFn func() string
}

func (*MockProxier) Insecure

func (mp *MockProxier) Insecure()

func (*MockProxier) MarshalYAML

func (mp *MockProxier) MarshalYAML() (interface{}, error)

func (*MockProxier) RawConfig

func (mp *MockProxier) RawConfig() (map[string]interface{}, error)

func (*MockProxier) Start

func (mp *MockProxier) Start(_ context.Context) error

func (*MockProxier) Stop

func (mp *MockProxier) Stop()

func (*MockProxier) Type

func (mp *MockProxier) Type() string

type MockTunnelProxier

type MockTunnelProxier struct {
	*MockProxier

	// See TunnelProxier interface
	HostFn func() string

	// See TunnelProxier interface
	PortFn func() string
}

func NewMockTunnelProxier

func NewMockTunnelProxier() *MockTunnelProxier

func (*MockTunnelProxier) Host

func (mtp *MockTunnelProxier) Host() string

func (*MockTunnelProxier) Port

func (mtp *MockTunnelProxier) Port() string

Jump to

Keyboard shortcuts

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