v1

package
v0.0.0-...-ec0eb22 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPUManager

type CPUManager struct {
	CPU    *cpu.CPU
	Logger log.Logger
	*v1.UnimplementedCPUServer
}

CPUManager is the rpc for cpu failures

func (*CPUManager) Recover

func (cm *CPUManager) Recover(ctx context.Context, _ *v1.CPURequest) (*v1.StatusResponse, error)

Recover the cpu injection

func (*CPUManager) Start

func (cm *CPUManager) Start(ctx context.Context, req *v1.CPURequest) (*v1.StatusResponse, error)

Start a new cpu injection based on the percentage specified

type DockerHandler

type DockerHandler struct {
	Logger log.Logger
	*v1.UnimplementedDockerServer
}

DockerManager is the rpc for docker management

func (*DockerHandler) Kill

Kill a docker container based on the name

func (*DockerHandler) Recover

func (dh *DockerHandler) Recover(ctx context.Context, req *v1.DockerRequest) (*v1.StatusResponse, error)

Recover a docker container based on the name

type HealthCheckService

type HealthCheckService struct {
	*v1.UnimplementedHealthServer
}

HealthCheckService is the rpc

func (*HealthCheckService) Check

Check the health of the chaos bot

func (*HealthCheckService) Watch

Watch is not used at the moment

type NetworkManager

type NetworkManager struct {
	Network *network.Network
	Logger  log.Logger
	*v1.UnimplementedNetworkServer
}

NetworkManager is the rpc for network failure injections

func NewNetworkManager

func NewNetworkManager(logger log.Logger) *NetworkManager

NewNetworkManager will create the rpc for network failures with a logger attached

func (*NetworkManager) Recover

Recover a network injection

func (*NetworkManager) Start

Start a network injection according to the network request

type ServerManager

type ServerManager struct {
	Server server.Server
	Logger log.Logger
	*v1.UnimplementedServerServer
}

ServerManager is the rpc for server failure injections

func (*ServerManager) Kill

Kill the server

type ServiceHandler

type ServiceHandler struct {
	Logger log.Logger

	*v1.UnimplementedServiceServer
	// contains filtered or unexported fields
}

ServiceManager is the rpc for services management

func NewServiceHandler

func NewServiceHandler(logger log.Logger) *ServiceHandler

NewServiceHandler will create the rpc for services management with a logger attached

func (*ServiceHandler) Kill

Kill a service based on the name

func (*ServiceHandler) Recover

Recover a service based on the name

Jump to

Keyboard shortcuts

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