detector

package
v1.2.17 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter interface {
	// Is detects based on upsert test options what kind of test it is
	Is(options apiClient.UpsertTestOptions) (string, bool)
}

type CurlTestAdapter

type CurlTestAdapter struct {
}

CurlTestAdapter is detector adapter for CURL like tests

func (CurlTestAdapter) Is

func (d CurlTestAdapter) Is(options apiClient.UpsertTestOptions) (name string, ok bool)

Is detects based on upsert test options what kind of test it is

type Detector

type Detector struct {
	Adapters []Adapter
}

Detector is detection orchestrator for possible detectors

func NewDefaultDetector

func NewDefaultDetector() Detector

func (*Detector) Add

func (d *Detector) Add(adapter Adapter)

func (*Detector) Detect

func (d *Detector) Detect(options client.UpsertTestOptions) (name string, found bool)

type K6Adapter added in v1.0.4

type K6Adapter struct{}

K6Adapter is detector adapter for Postman collection saved as JSON content

func (K6Adapter) Is added in v1.0.4

func (d K6Adapter) Is(options apiClient.UpsertTestOptions) (name string, ok bool)

Is detects based on upsert test options what kind of test it is

type PostmanCollectionAdapter

type PostmanCollectionAdapter struct {
}

PostmanCollectionAdapter is detector adapter for Postman collection saved as JSON content

func (PostmanCollectionAdapter) Is

Is detects based on upsert test options what kind of test it is

Jump to

Keyboard shortcuts

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