postman

package
v1.11.8-beta-13 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: MIT, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PostmanCollectionType is type of Postman collection
	PostmanCollectionType = "postman/collection"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Detector

type Detector struct {
}

Detector is detector adapter for Postman collection saved as JSON content

func (Detector) GetSecretVariables

func (d Detector) GetSecretVariables(data string) (map[string]testkube.Variable, error)

GetSecretVariables retuns secret variables

func (Detector) GetType

func (d Detector) GetType() string

GetType returns test type

func (Detector) Is

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

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

func (Detector) IsEnvName

func (d Detector) IsEnvName(filename string) (string, string, bool)

IsEnvName detecs if filename has a conventional env name

func (Detector) IsSecretEnvName

func (d Detector) IsSecretEnvName(filename string) (string, string, bool)

IsSecretEnvName detecs if filename has a conventional secret env name

func (Detector) IsTestName

func (d Detector) IsTestName(filename string) (string, bool)

IsTestName detecs if filename has a conventional test name

func (Detector) IsWithPath

func (d Detector) IsWithPath(path string, options apiClient.UpsertTestOptions) (name string, ok bool)

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

type EnvFile

type EnvFile struct {
	ID                   string    `json:"id"`
	Name                 string    `json:"name"`
	Values               []Value   `json:"values"`
	PostmanVariableScope string    `json:"_postman_variable_scope"`
	PostmanExportedAt    time.Time `json:"_postman_exported_at"`
	PostmanExportedUsing string    `json:"_postman_exported_using"`
}

EnvFile contains env file structure

type Value

type Value struct {
	Key     string `json:"key"`
	Value   string `json:"value"`
	Enabled bool   `json:"enabled"`
}

Value contains value structure

Jump to

Keyboard shortcuts

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