output

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: MIT Imports: 17 Imported by: 2 modules, 1 package

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 AddCommandOutput

func AddCommandOutput(ctx context.Context, opts AddCommandOutputOptions)

AddCommandOutput opts.OutputPath must include a %d to replace the execution number when opts.Executions > 1

func AddHttpOutput added in v1.1.2

func AddHttpOutput(opts AddHttpOutputOptions)

func AddJsonOutput

func AddJsonOutput(opts AddJsonOutputOptions)

func AddOutputDirectory

func AddOutputDirectory(cfg *config.Config)

func DoHttp added in v1.1.2

func DoHttp(options HttpOptions) ([]byte, error)

func DownloadOutput added in v1.1.2

func DownloadOutput(opts DownloadOptions)

func WriteToFile

func WriteToFile(path string, content []byte)

func ZipOutputDirectory

func ZipOutputDirectory(cfg *config.Config) string

Types

type AddCommandOutputOptions

type AddCommandOutputOptions struct {
	Config                 *config.Config
	CommandName            string
	CommandArgs            []string
	OutputPath             string
	Executions             int
	DelayBetweenExecutions *time.Duration
	Stdin                  io.Reader
	ExecutionContext       string
	LogError               bool
}

type AddHttpOutputOptions added in v1.1.2

type AddHttpOutputOptions struct {
	Config           *config.Config
	Method           string
	URL              url.URL
	OutputPath       string
	UseHttps         bool
	FormatJson       bool
	ExecutionContext string
}

type AddJsonOutputOptions

type AddJsonOutputOptions struct {
	Config     *config.Config
	Content    any
	OutputPath []string
}

type DownloadOptions added in v1.1.2

type DownloadOptions struct {
	Config     *config.Config
	Method     string
	URL        url.URL
	OutputPath string
}

type HttpOptions added in v1.1.2

type HttpOptions struct {
	Config     *config.Config
	Method     string
	URL        url.URL
	UseHttps   bool
	FormatJson bool
}

Jump to

Keyboard shortcuts

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