services

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetServiceTargets

func GetServiceTargets(instance *config.Instance) []discovery_kit_api.Target

func RegisterServiceAttackHandlers

func RegisterServiceAttackHandlers()

func RegisterServiceDiscoveryHandlers

func RegisterServiceDiscoveryHandlers()

func StopRequestTermination

func StopRequestTermination(body []byte) *attack_kit_api.AttackKitError

func WithTestContainers

func WithTestContainers(t *testing.T, testCases []WithTestContainersCase)

Types

type RequestTerminationState

type RequestTerminationState struct {
	PluginIds    []string
	InstanceName string
}

func PrepareRequestTermination

func PrepareRequestTermination(body []byte) (*RequestTerminationState, *attack_kit_api.AttackKitError)

func StartRequestTermination

func StartRequestTermination(body []byte) (*RequestTerminationState, *attack_kit_api.AttackKitError)

type TestContainers

type TestContainers struct {
	PostgresContainer *testcontainers.Container
	KongContainer     *testcontainers.Container
	Instance          *config.Instance
}

func (*TestContainers) Terminate

func (tcs *TestContainers) Terminate(_ *testing.T, ctx context.Context)

type WithTestContainersCase

type WithTestContainersCase struct {
	Name string
	Test func(t *testing.T, instance *config.Instance)
}

Jump to

Keyboard shortcuts

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