extpostman

package
v2.0.46 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: MIT Imports: 29 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadCollection added in v2.0.30

func DownloadCollection(ctx context.Context, collectionId, destPath string) error

DownloadCollection fetches the collection from the Postman API and writes it to destPath.

func DownloadEnvironment added in v2.0.30

func DownloadEnvironment(ctx context.Context, environmentId, destPath string) error

DownloadEnvironment fetches the environment from the Postman API and writes it to destPath.

func GetPostEnvironmentId

func GetPostEnvironmentId(ctx context.Context, environmentIdOrName string) (string, error)

func NewPostmanAction

func NewPostmanAction() action_kit_sdk.Action[PostmanState]

func NewPostmanCollectionDiscovery

func NewPostmanCollectionDiscovery() discovery_kit_sdk.TargetDiscovery

func PostmanApiContext added in v2.0.37

func PostmanApiContext(ctx context.Context) (context.Context, context.CancelFunc)

PostmanApiContext bounds all Postman API calls of a single action to one shared budget derived from the caller's deadline. Without it a slow Postman API is charged per call, and the three sequential calls a prepare may make (list environments, download environment, download collection) can overrun the request budget on their own.

Types

type NewmanJsonReport

type NewmanJsonReport struct {
	Run Run `json:"Run"`
}

type PostmanAction

type PostmanAction struct {
}

func (PostmanAction) Describe

func (PostmanAction) NewEmptyState

func (f PostmanAction) NewEmptyState() PostmanState

func (PostmanAction) Start

func (PostmanAction) Status

func (PostmanAction) Stop

type PostmanCollection

type PostmanCollection struct {
	Id   string `json:"id"`
	Name string `json:"name"`
}

func GetPostmanCollections

func GetPostmanCollections(ctx context.Context) ([]PostmanCollection, error)

type PostmanCollectionResult

type PostmanCollectionResult struct {
	Collections []PostmanCollection `json:"collections"`
}

type PostmanConfig

type PostmanConfig struct {
	EnvironmentIdOrName string
	Environment         []map[string]string
	Verbose             bool
	Bail                bool
	Timeout             int
	TimeoutRequest      int
	Iterations          int
}

type PostmanEnvironment

type PostmanEnvironment struct {
	Id   string `json:"id"`
	Name string `json:"name"`
}

func GetPostmanEnvironments

func GetPostmanEnvironments(ctx context.Context) ([]PostmanEnvironment, error)

type PostmanEnvironmentResult

type PostmanEnvironmentResult struct {
	Environments []PostmanEnvironment `json:"environments"`
}

type PostmanState

type PostmanState struct {
	Command         []string `json:"command"`
	Pid             int      `json:"pid"`
	CmdStateID      string   `json:"cmdStateId"`
	WorkDir         string   `json:"workDir"`
	StdOutLineCount int      `json:"stdOutLineCount"`
}

type Run

type Run struct {
	Stats *Stats `json:"Stats"`
}

type Stat

type Stat struct {
	Total   int `json:"total"`
	Pending int `json:"pending"`
	Failed  int `json:"failed"`
}

type Stats

type Stats struct {
	Requests   *Stat `json:"Requests"`
	Assertions *Stat `json:"Assertions"`
}

Jump to

Keyboard shortcuts

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