api

package
v0.0.0-...-ba0a3b8 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2024 Datadog, Inc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DisruptionArgs

type DisruptionArgs struct {
	AllowedHosts         []string
	TargetContainers     map[string]string
	Level                chaostypes.DisruptionLevel
	Kind                 chaostypes.DisruptionKindName
	TargetPodIP          string
	MetricsSink          string
	DisruptionName       string
	DisruptionNamespace  string
	TargetName           string
	TargetNodeName       string
	DNSServer            string
	KubeDNS              string
	ChaosNamespace       string
	DryRun               bool
	OnInit               bool
	PulseInitialDelay    time.Duration
	PulseActiveDuration  time.Duration
	PulseDormantDuration time.Duration
	HostResolveInterval  time.Duration
	NotInjectedBefore    time.Time
}

func (DisruptionArgs) CreateCmdArgs

func (d DisruptionArgs) CreateCmdArgs(args []string) []string

CreateCmdArgs is a helper function generating common and global args and appending them to the given args array

type DisruptionKind

type DisruptionKind interface {
	// generates CLI args for the given disruption sub-specification
	GenerateArgs() []string

	// validates schema for the given disruption sub-specification
	Validate() error
}

DisruptionKind contains all methods required for a disruption sub-specification (Network, DNS, CPUPressure, etc.)

type DisruptionKindMock

type DisruptionKindMock struct {
	mock.Mock
}

DisruptionKindMock is an autogenerated mock type for the DisruptionKind type

func NewDisruptionKindMock

func NewDisruptionKindMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *DisruptionKindMock

NewDisruptionKindMock creates a new instance of DisruptionKindMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*DisruptionKindMock) EXPECT

func (*DisruptionKindMock) GenerateArgs

func (_m *DisruptionKindMock) GenerateArgs() []string

GenerateArgs provides a mock function with given fields:

func (*DisruptionKindMock) Validate

func (_m *DisruptionKindMock) Validate() error

Validate provides a mock function with given fields:

type DisruptionKindMock_Expecter

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

func (*DisruptionKindMock_Expecter) GenerateArgs

GenerateArgs is a helper method to define mock.On call

func (*DisruptionKindMock_Expecter) Validate

Validate is a helper method to define mock.On call

type DisruptionKindMock_GenerateArgs_Call

type DisruptionKindMock_GenerateArgs_Call struct {
	*mock.Call
}

DisruptionKindMock_GenerateArgs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GenerateArgs'

func (*DisruptionKindMock_GenerateArgs_Call) Return

func (*DisruptionKindMock_GenerateArgs_Call) Run

func (*DisruptionKindMock_GenerateArgs_Call) RunAndReturn

type DisruptionKindMock_Validate_Call

type DisruptionKindMock_Validate_Call struct {
	*mock.Call
}

DisruptionKindMock_Validate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Validate'

func (*DisruptionKindMock_Validate_Call) Return

func (*DisruptionKindMock_Validate_Call) Run

func (*DisruptionKindMock_Validate_Call) RunAndReturn

Directories

Path Synopsis
Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
install
Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.

Jump to

Keyboard shortcuts

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