output

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: MIT Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommandOutput

func AddCommandOutput(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)

Types

type AddCommandOutputOptions

type AddCommandOutputOptions struct {
	Config                 *config.Config
	CommandName            string
	CommandArgs            []string
	OutputPath             string
	Executions             int
	DelayBetweenExecutions *time.Duration
}

type AddHttpOutputOptions added in v1.1.2

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

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