Documentation
¶
Index ¶
- Constants
- type Chaos
- type Result
- type VictimMock
- func (vm *VictimMock) DeleteRandomPod(clientset kube.Interface) error
- func (vm *VictimMock) DeleteRandomPods(clientset kube.Interface, killValue int) error
- func (vm *VictimMock) IsBlacklisted() bool
- func (vm *VictimMock) IsEnrolled(clientset kube.Interface) (bool, error)
- func (vm *VictimMock) IsWhitelisted() bool
- func (vm *VictimMock) KillNumberForFixedPercentage(clientset kube.Interface, killValue int) (int, error)
- func (vm *VictimMock) KillNumberForKillingAll(clientset kube.Interface) (int, error)
- func (vm *VictimMock) KillNumberForMaxPercentage(clientset kube.Interface, killValue int) (int, error)
- func (vm *VictimMock) KillType(clientset kube.Interface) (string, error)
- func (vm *VictimMock) KillValue(clientset kube.Interface) (int, error)
Constants ¶
View Source
const ( NAMESPACE = metav1.NamespaceDefault IDENTIFIER = "kube-monkey-id" KIND = "Pod" NAME = "name" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chaos ¶
type Chaos struct {
// contains filtered or unexported fields
}
func (*Chaos) DurationToKillTime ¶
DurationToKillTime calculates the duration from now until Chaos.killAt
func (*Chaos) Execute ¶
Execute exposed function that calls the actual execution of the chaos, i.e. termination of pods The result is sent back over the channel provided
type Result ¶
type Result struct {
// contains filtered or unexported fields
}
type VictimMock ¶
type VictimMock struct { mock.Mock victims.VictimBase }
func NewVictimMock ¶
func NewVictimMock() *VictimMock
func (*VictimMock) DeleteRandomPod ¶
func (vm *VictimMock) DeleteRandomPod(clientset kube.Interface) error
func (*VictimMock) DeleteRandomPods ¶
func (vm *VictimMock) DeleteRandomPods(clientset kube.Interface, killValue int) error
func (*VictimMock) IsBlacklisted ¶
func (vm *VictimMock) IsBlacklisted() bool
func (*VictimMock) IsEnrolled ¶
func (vm *VictimMock) IsEnrolled(clientset kube.Interface) (bool, error)
func (*VictimMock) IsWhitelisted ¶
func (vm *VictimMock) IsWhitelisted() bool
func (*VictimMock) KillNumberForFixedPercentage ¶
func (*VictimMock) KillNumberForKillingAll ¶
func (vm *VictimMock) KillNumberForKillingAll(clientset kube.Interface) (int, error)
func (*VictimMock) KillNumberForMaxPercentage ¶
Click to show internal directories.
Click to hide internal directories.