forwarder

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Image = "saucelabs/forwarder:${FORWARDER_VERSION}"

	ProxyServiceName         = "proxy"
	UpstreamProxyServiceName = "upstream-proxy"
	HttpbinServiceName       = "httpbin"
)

Variables

View Source
var (
	HttpbinSchemes = []string{"http", "https", "h2"}
	ProxySchemes   = []string{"http", "https"}
)

Functions

This section is empty.

Types

type Service

type Service compose.Service

func HttpbinService

func HttpbinService() *Service

func ProxyService

func ProxyService() *Service

func UpstreamProxyService

func UpstreamProxyService() *Service

func (*Service) Insecure added in v1.0.3

func (s *Service) Insecure() *Service

func (*Service) Service

func (s *Service) Service() *compose.Service

func (*Service) WithBasicAuth

func (s *Service) WithBasicAuth(auth string) *Service

func (*Service) WithCredentials

func (s *Service) WithCredentials(credentials, address string) *Service

func (*Service) WithDNSServer added in v1.0.3

func (s *Service) WithDNSServer(servers ...string) *Service

func (*Service) WithDenyDomain added in v1.0.3

func (s *Service) WithDenyDomain(domains ...string) *Service

func (*Service) WithDenyDomainExclude added in v1.0.3

func (s *Service) WithDenyDomainExclude(domains ...string) *Service

func (*Service) WithEnv

func (s *Service) WithEnv(key, val string) *Service

func (*Service) WithGoleak

func (s *Service) WithGoleak() *Service

func (*Service) WithHTTPDialTimeout added in v1.0.3

func (s *Service) WithHTTPDialTimeout(timeout time.Duration) *Service

func (*Service) WithHeader

func (s *Service) WithHeader(header string) *Service

func (*Service) WithIP added in v1.0.3

func (s *Service) WithIP(network, ipv4 string) *Service

func (*Service) WithLocalhostMode

func (s *Service) WithLocalhostMode(mode string) *Service

func (*Service) WithMITMCacert added in v1.0.3

func (s *Service) WithMITMCacert() *Service

func (*Service) WithPac

func (s *Service) WithPac(pac string) *Service

func (*Service) WithProtocol

func (s *Service) WithProtocol(protocol string) *Service

func (*Service) WithResponseHeader

func (s *Service) WithResponseHeader(header string) *Service

func (*Service) WithSelfSigned added in v1.0.3

func (s *Service) WithSelfSigned(protocol string) *Service

func (*Service) WithUpstream

func (s *Service) WithUpstream(name, protocol string) *Service

Jump to

Keyboard shortcuts

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