experiments

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	Name string
	// Namespace is a namespace where experiment entity will be stored
	Namespace string
}

Base base experiment data, name and namespace where to store CRD entities

type CPUHog

type CPUHog struct {
	Base
	TargetAppLabel string
	Workers        int
	Load           int
	OptsCPU        int
	OptsTimeout    int
	OptsHDD        int
	Duration       time.Duration
}

func (*CPUHog) Filename

func (e *CPUHog) Filename() string

func (*CPUHog) Resource

func (e *CPUHog) Resource() string

func (*CPUHog) SetBase

func (e *CPUHog) SetBase(base Base)

type ContainerKill

type ContainerKill struct {
	Base
	TargetAppLabel string
	Container      string
}

func (*ContainerKill) Filename

func (e *ContainerKill) Filename() string

func (*ContainerKill) Resource

func (e *ContainerKill) Resource() string

func (*ContainerKill) SetBase

func (e *ContainerKill) SetBase(base Base)

type DNSChaos

type DNSChaos struct {
	Base
	Duration time.Duration
	Patterns []string
}

func (*DNSChaos) Filename

func (e *DNSChaos) Filename() string

func (*DNSChaos) Resource

func (e *DNSChaos) Resource() string

func (*DNSChaos) SetBase

func (e *DNSChaos) SetBase(base Base)

type IODelay

type IODelay struct {
	Base
	TargetAppLabel string
	VolumePath     string
	Path           string
	Delay          time.Duration
	Percent        int
	Duration       time.Duration
}

func (*IODelay) Filename

func (e *IODelay) Filename() string

func (*IODelay) Resource

func (e *IODelay) Resource() string

func (*IODelay) SetBase

func (e *IODelay) SetBase(base Base)

type IOFault

type IOFault struct {
	Base
	TargetAppLabel string
	VolumePath     string
	Path           string
	Errno          int
	Percent        int
	Duration       time.Duration
}

func (*IOFault) Filename

func (e *IOFault) Filename() string

func (*IOFault) Resource

func (e *IOFault) Resource() string

func (*IOFault) SetBase

func (e *IOFault) SetBase(base Base)

type NetworkBandwidth

type NetworkBandwidth struct {
	Base
	TargetAppLabel string
	// kbps
	Rate     string
	Limit    int
	Buffer   int
	PeakRate int
	MinBurst int
	Duration time.Duration
}

func (*NetworkBandwidth) Filename

func (e *NetworkBandwidth) Filename() string

func (*NetworkBandwidth) Resource

func (e *NetworkBandwidth) Resource() string

func (*NetworkBandwidth) SetBase

func (e *NetworkBandwidth) SetBase(base Base)

type NetworkCorrupt

type NetworkCorrupt struct {
	Base
	TargetAppLabel string
	Corrupt        int
	Correlation    int
	Duration       time.Duration
}

func (*NetworkCorrupt) Filename

func (e *NetworkCorrupt) Filename() string

func (*NetworkCorrupt) Resource

func (e *NetworkCorrupt) Resource() string

func (*NetworkCorrupt) SetBase

func (e *NetworkCorrupt) SetBase(base Base)

type NetworkDelay

type NetworkDelay struct {
	Base
	TargetAppLabel string
	Latency        time.Duration
	Duration       time.Duration
}

func (*NetworkDelay) Filename

func (e *NetworkDelay) Filename() string

func (*NetworkDelay) Resource

func (e *NetworkDelay) Resource() string

func (*NetworkDelay) SetBase

func (e *NetworkDelay) SetBase(base Base)

type NetworkDuplicate

type NetworkDuplicate struct {
	Base
	TargetAppLabel string
	Duplicate      int
	Correlation    int
	Duration       time.Duration
}

func (*NetworkDuplicate) Filename

func (e *NetworkDuplicate) Filename() string

func (*NetworkDuplicate) Resource

func (e *NetworkDuplicate) Resource() string

func (*NetworkDuplicate) SetBase

func (e *NetworkDuplicate) SetBase(base Base)

type NetworkLoss

type NetworkLoss struct {
	Base
	TargetAppLabel string
	Loss           int
	Correlation    int
	Duration       time.Duration
}

func (*NetworkLoss) Filename

func (e *NetworkLoss) Filename() string

func (*NetworkLoss) Resource

func (e *NetworkLoss) Resource() string

func (*NetworkLoss) SetBase

func (e *NetworkLoss) SetBase(base Base)

type NetworkPartition

type NetworkPartition struct {
	Base
	AppLabel       string
	TargetAppLabel string
	Duration       time.Duration
}

func (*NetworkPartition) Filename

func (e *NetworkPartition) Filename() string

func (*NetworkPartition) Resource

func (e *NetworkPartition) Resource() string

Resource is a CRD resource that can be found in spec.names.singular

func (*NetworkPartition) SetBase

func (e *NetworkPartition) SetBase(base Base)

type PodFailure

type PodFailure struct {
	Base
	TargetAppLabel string
	Duration       time.Duration
}

func (*PodFailure) Filename

func (e *PodFailure) Filename() string

func (*PodFailure) Resource

func (e *PodFailure) Resource() string

func (*PodFailure) SetBase

func (e *PodFailure) SetBase(base Base)

type PodKill

type PodKill struct {
	Base
	TargetAppLabel string
}

func (*PodKill) Filename

func (e *PodKill) Filename() string

func (*PodKill) Resource

func (e *PodKill) Resource() string

func (*PodKill) SetBase

func (e *PodKill) SetBase(base Base)

type TimeShift

type TimeShift struct {
	Base
	TargetAppLabel string
	TimeOffset     time.Duration
	Duration       time.Duration
}

func (*TimeShift) Filename

func (e *TimeShift) Filename() string

func (*TimeShift) Resource

func (e *TimeShift) Resource() string

func (*TimeShift) SetBase

func (e *TimeShift) SetBase(base Base)

Jump to

Keyboard shortcuts

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