kong

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceTargetId = "com.github.steadybit.extension_kong.service"
	RouteTargetID   = "com.github.steadybit.extension_kong.route"
	ServiceIcon     = "" /* 494-byte string literal not displayed */
	RouteIcon       = "" /* 494-byte string literal not displayed */
)
View Source
const (
	RouteAttackEndpoint = "/kong/route/attack/request-termination"
)
View Source
const RouteDiscoveryEndpoint = "/kong/route/discovery"
View Source
const (
	ServiceAttackEndpoint = "/kong/service/attack/request-termination"
)
View Source
const ServiceDiscoveryEndpoint = "/kong/service/discovery"

Variables

This section is empty.

Functions

func GetRouteTargets

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

func GetServiceTargets

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

func RegisterAttributeDescriptionHandlers

func RegisterAttributeDescriptionHandlers()

func RegisterRouteAttackHandlers

func RegisterRouteAttackHandlers()

func RegisterRouteDiscoveryHandlers

func RegisterRouteDiscoveryHandlers()

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
	ServiceId    string
	RouteId      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(t *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