Documentation ¶
Index ¶
- func GetMockCPUClient(status *v1.StatusResponse, err error) v1.CPUClient
- func GetMockDockerClient(status *v1.StatusResponse, err error) v1.DockerClient
- func GetMockNetworkClient(status *v1.StatusResponse, err error) v1.NetworkClient
- func GetMockServerClient(status *v1.StatusResponse, err error) v1.ServerClient
- func GetMockServiceClient(status *v1.StatusResponse, err error) v1.ServiceClient
- type Connection
- type Connections
- type MockConnection
- func (connection *MockConnection) GetCPUClient() (v1.CPUClient, error)
- func (connection *MockConnection) GetDockerClient() (v1.DockerClient, error)
- func (connection *MockConnection) GetHealthClient() (v1.HealthClient, error)
- func (connection *MockConnection) GetNetworkClient() (v1.NetworkClient, error)
- func (connection *MockConnection) GetServerClient() (v1.ServerClient, error)
- func (connection *MockConnection) GetServiceClient() (v1.ServiceClient, error)
- type MockFailedConnection
- func (failedConnection *MockFailedConnection) GetCPUClient() (v1.CPUClient, error)
- func (failedConnection *MockFailedConnection) GetDockerClient() (v1.DockerClient, error)
- func (failedConnection *MockFailedConnection) GetHealthClient() (v1.HealthClient, error)
- func (failedConnection *MockFailedConnection) GetNetworkClient() (v1.NetworkClient, error)
- func (failedConnection *MockFailedConnection) GetServerClient() (v1.ServerClient, error)
- func (failedConnection *MockFailedConnection) GetServiceClient() (v1.ServiceClient, error)
- type Options
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)
Click to show internal directories.
Click to hide internal directories.