e2e

package
v1.9.14 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HTTP_PORT  = 30080
	HTTPS_PORT = 30443
	STATS_PORT = 31024
)

Variables

View Source
var (
	WaitDuration = 60 * time.Second
	TickDuration = 2 * time.Second
)

Functions

func GetHAProxyMapCount added in v1.8.0

func GetHAProxyMapCount(mapName string) (count int, err error)

func ProxyProtoConn added in v1.7.3

func ProxyProtoConn() (result []byte, err error)

Types

type Client

type Client struct {
	NoRedirect bool
	Path       string
	Host       string
	Port       int
	Req        *http.Request
	Transport  *http.Transport
}

func NewHTTPClient

func NewHTTPClient(host string, port ...int) (*Client, error)

func NewHTTPSClient

func NewHTTPSClient(host string, port ...int) (*Client, error)

func (*Client) Do

func (c *Client) Do() (res *http.Response, closeFunc func() error, err error)

type GlobalHAProxyInfo added in v1.6.0

type GlobalHAProxyInfo struct {
	Pid     string
	Maxconn string
	Uptime  string
}

func GetGlobalHAProxyInfo added in v1.6.0

func GetGlobalHAProxyInfo() (info GlobalHAProxyInfo, err error)

type TearDownFunc

type TearDownFunc func() error

type Test

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

func NewTest

func NewTest() (test Test, err error)

func (*Test) AddTearDown

func (t *Test) AddTearDown(teardown TearDownFunc)

func (*Test) Apply added in v1.7.3

func (t *Test) Apply(path string, namespace string, tmplData interface{}) error

func (*Test) Delete added in v1.7.3

func (t *Test) Delete(path string) error

func (*Test) GetK8sVersion

func (t *Test) GetK8sVersion() (major, minor int, err error)

func (*Test) GetNS

func (t *Test) GetNS() string

func (*Test) TearDown

func (t *Test) TearDown() error

Jump to

Keyboard shortcuts

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