agent

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package agent implements functions for injecting faults in a target

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

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

Agent maintains the state required for executing an agent command

func BuildAgent

func BuildAgent(env runtime.Environment, config *Config) *Agent

BuildAgent builds a instance of an agent

func (*Agent) ApplyDisruption

func (r *Agent) ApplyDisruption(ctx context.Context, disruptor protocol.Disruptor, duration time.Duration) error

ApplyDisruption applies a disruption to the target

type Config

type Config struct {
	Profiler *profiler.Config
}

Config maintains the configuration for the execution of the agent

Directories

Path Synopsis
Package protocol implements the agent that injects disruptors in protocols.
Package protocol implements the agent that injects disruptors in protocols.
grpc
Package grpc implements a proxy that applies disruptions to gRPC requests This package is inspired by and extensively copies code from https://github.com/mwitkow/grpc-proxy
Package grpc implements a proxy that applies disruptions to gRPC requests This package is inspired by and extensively copies code from https://github.com/mwitkow/grpc-proxy
http
Package http implements a proxy that applies disruptions to HTTP requests
Package http implements a proxy that applies disruptions to HTTP requests

Jump to

Keyboard shortcuts

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