Documentation ¶
Overview ¶
Package disruptor implement the k6 extension interface for calling disruptors from js scripts running in the goya runtime
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModuleInstance ¶
type ModuleInstance struct {
// contains filtered or unexported fields
}
ModuleInstance represents an instance of the JS module.
func (*ModuleInstance) Exports ¶
func (m *ModuleInstance) Exports() modules.Exports
Exports implements the modules.Instance interface and returns the exports of the JS module.
type RootModule ¶
type RootModule struct{}
RootModule is the global module object type. It is instantiated once per test run and will be used to create `k6/x/disruptor` module instances for each VU.
func (*RootModule) NewModuleInstance ¶
func (*RootModule) NewModuleInstance(vu modules.VU) modules.Instance
NewModuleInstance returns a new instance of the disruptor module for each VU.
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
agent
Package vli implements the root level command for the disruptor agent CLI
|
Package vli implements the root level command for the disruptor agent CLI |
agent/commands
Package commands implements the CLI interface for the disruptor agent
|
Package commands implements the CLI interface for the disruptor agent |
e2e-cluster
Package main implements the main function for the e2e environment setup tool
|
Package main implements the main function for the e2e environment setup tool |
e2e-cluster/commands
Package commands implements the CLI interface for the e2e env CLI tool
|
Package commands implements the CLI interface for the e2e env CLI tool |
pkg
|
|
agent
Package agent implements functions for injecting faults in a target
|
Package agent implements functions for injecting faults in a target |
agent/protocol
Package protocol implements the agent that injects disruptors in protocols.
|
Package protocol implements the agent that injects disruptors in protocols. |
agent/protocol/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 |
agent/protocol/http
Package http implements a proxy that applies disruptions to HTTP requests
|
Package http implements a proxy that applies disruptions to HTTP requests |
agent/stressors
Package stressors implements resource stressors for CPU, Memory, I/O and network
|
Package stressors implements resource stressors for CPU, Memory, I/O and network |
agent/tcpconn
Package tcpconn contains a TCP connection disruptor.
|
Package tcpconn contains a TCP connection disruptor. |
api
Package api implements a layer between javascript code (via goja)) and the disruptors allowing for validations and type conversions when needed
|
Package api implements a layer between javascript code (via goja)) and the disruptors allowing for validations and type conversions when needed |
disruptors
Package disruptors implements an API for disrupting targets
|
Package disruptors implements an API for disrupting targets |
internal/version
Package version provide information about the build version
|
Package version provide information about the build version |
iptables
Package iptables implements objects that manipulate netfilter rules by calling the iptables binary.
|
Package iptables implements objects that manipulate netfilter rules by calling the iptables binary. |
kubernetes
Package kubernetes implements helper functions for manipulating resources in a Kubernetes cluster.
|
Package kubernetes implements helper functions for manipulating resources in a Kubernetes cluster. |
kubernetes/helpers
Package helpers implement helper functions for managing Kubernetes resources such as services and pods
|
Package helpers implement helper functions for managing Kubernetes resources such as services and pods |
runtime
Package runtime implements functions to interact with the execution runtime
|
Package runtime implements functions to interact with the execution runtime |
runtime/profiler
Package profiler offers functions to profile the execution of a process using go's built-in profiling tools
|
Package profiler offers functions to profile the execution of a process using go's built-in profiling tools |
testutils/assertions
Package assertions implements functions that help assess conditions in tests
|
Package assertions implements functions that help assess conditions in tests |
testutils/cluster
Package cluster implements helpers for creating test clusters using kind as a library.
|
Package cluster implements helpers for creating test clusters using kind as a library. |
testutils/command
Package command offers utility functions for testing commands
|
Package command offers utility functions for testing commands |
testutils/e2e/checks
Package checks implements functions that verify conditions in a cluster
|
Package checks implements functions that verify conditions in a cluster |
testutils/e2e/cluster
Package cluster offers helpers for setting a cluster for e2e testing
|
Package cluster offers helpers for setting a cluster for e2e testing |
testutils/e2e/deploy
Package deploy offers helpers for deploying applications in a cluster
|
Package deploy offers helpers for deploying applications in a cluster |
testutils/e2e/fetch
Package fetch implements utility functions for getting files from diverse sources
|
Package fetch implements utility functions for getting files from diverse sources |
testutils/e2e/fixtures
Package fixtures implements helpers for setting e2e tests
|
Package fixtures implements helpers for setting e2e tests |
testutils/e2e/kubectl
Package kubectl implements helper functions for managing kubernetes resources in e2e tests
|
Package kubectl implements helper functions for managing kubernetes resources in e2e tests |
testutils/e2e/kubernetes
Package kubernetes implements helper functions for handling k8s resources in e2e tests
|
Package kubernetes implements helper functions for handling k8s resources in e2e tests |
testutils/e2e/kubernetes/namespace
Package namespace implements helper functions for manipulating kubernetes namespaces
|
Package namespace implements helper functions for manipulating kubernetes namespaces |
testutils/grpc
Package grpc offers utils for testing gppc services
|
Package grpc offers utils for testing gppc services |
testutils/grpc/dynamic
Package dynamic implements a dynamic grpc client It requires the server to be registered to the grpc reflection Service
|
Package dynamic implements a dynamic grpc client It requires the server to be registered to the grpc reflection Service |
testutils/grpc/ping
Package ping provides a grpc service for testing The service allows controlling the response returned by the server including the generation of specific errors.
|
Package ping provides a grpc service for testing The service allows controlling the response returned by the server including the generation of specific errors. |
testutils/kubernetes/builders
Package builders offers functions for building test objects
|
Package builders offers functions for building test objects |
testutils/testcontainers
Package testcontainers implements utility functions for running tests with TestContainers
|
Package testcontainers implements utility functions for running tests with TestContainers |
types/intstr
Package intstr implements a custom type for handling values that can be either a string or an int32
|
Package intstr implements a custom type for handling values that can be either a string or an int32 |
utils
Package utils offers functions of general utility in other parts of the system
|
Package utils offers functions of general utility in other parts of the system |
testcontainers
|
|
echoserver
Package main contains a simple TCP echoserver, that repeats back to the client every line it receives.
|
Package main contains a simple TCP echoserver, that repeats back to the client every line it receives. |
Click to show internal directories.
Click to hide internal directories.