network

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMockCPUClient

func GetMockCPUClient(status *v1.StatusResponse, err error) v1.CPUClient

func GetMockDockerClient

func GetMockDockerClient(status *v1.StatusResponse, err error) v1.DockerClient

func GetMockNetworkClient

func GetMockNetworkClient(status *v1.StatusResponse, err error) v1.NetworkClient

func GetMockServerClient

func GetMockServerClient(status *v1.StatusResponse, err error) v1.ServerClient

func GetMockServiceClient

func GetMockServiceClient(status *v1.StatusResponse, err error) v1.ServiceClient

Types

type Connection

type Connection interface {
	GetServiceClient() (v1.ServiceClient, error)
	GetDockerClient() (v1.DockerClient, error)
	GetCPUClient() (v1.CPUClient, error)
	GetServerClient() (v1.ServerClient, error)
	GetNetworkClient() (v1.NetworkClient, error)
	GetHealthClient() (v1.HealthClient, error)
}

type Connections

type Connections struct {
	Pool map[string]Connection
}

func GetConnectionPool

func GetConnectionPool(config *config.Config, loggers chaoslogger.Loggers) *Connections

type MockConnection

type MockConnection struct {
	Status *v1.StatusResponse
	Err    error
}

func (*MockConnection) GetCPUClient

func (connection *MockConnection) GetCPUClient() (v1.CPUClient, error)

func (*MockConnection) GetDockerClient

func (connection *MockConnection) GetDockerClient() (v1.DockerClient, error)

func (*MockConnection) GetHealthClient

func (connection *MockConnection) GetHealthClient() (v1.HealthClient, error)

func (*MockConnection) GetNetworkClient

func (connection *MockConnection) GetNetworkClient() (v1.NetworkClient, error)

func (*MockConnection) GetServerClient

func (connection *MockConnection) GetServerClient() (v1.ServerClient, error)

func (*MockConnection) GetServiceClient

func (connection *MockConnection) GetServiceClient() (v1.ServiceClient, error)

type MockFailedConnection

type MockFailedConnection struct {
	Err error
}

func (*MockFailedConnection) GetCPUClient

func (failedConnection *MockFailedConnection) GetCPUClient() (v1.CPUClient, error)

func (*MockFailedConnection) GetDockerClient

func (failedConnection *MockFailedConnection) GetDockerClient() (v1.DockerClient, error)

func (*MockFailedConnection) GetHealthClient

func (failedConnection *MockFailedConnection) GetHealthClient() (v1.HealthClient, error)

func (*MockFailedConnection) GetNetworkClient

func (failedConnection *MockFailedConnection) GetNetworkClient() (v1.NetworkClient, error)

func (*MockFailedConnection) GetServerClient

func (failedConnection *MockFailedConnection) GetServerClient() (v1.ServerClient, error)

func (*MockFailedConnection) GetServiceClient

func (failedConnection *MockFailedConnection) GetServiceClient() (v1.ServiceClient, error)

type Options

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

Jump to

Keyboard shortcuts

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