detector

package
v0.8.3-beta002 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: MIT Imports: 2 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(options apiClient.UpsertScriptOptions) (string, bool)
}

type CurlTestAdapter

type CurlTestAdapter struct {
}

func (CurlTestAdapter) Is

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

type Detector

type Detector struct {
	Adapters []Adapter
}

func NewDefaultDetector

func NewDefaultDetector() Detector

func (*Detector) Add

func (d *Detector) Add(adapter Adapter)

func (*Detector) Detect

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

type PostmanCollectionAdapter

type PostmanCollectionAdapter struct {
}

func (PostmanCollectionAdapter) Is

Jump to

Keyboard shortcuts

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