util

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadPwsh

func DownloadPwsh(ctx context.Context, logger Logger, plat string, dest string, version string) error

The windows version required pwsh to be able to send the job request, powershell 5 not supported

func DownloadRunner

func DownloadRunner(ctx context.Context, logger Logger, plat string, dest string, version string) error

Official GitHub Actions Runner

func DownloadRunnerServer

func DownloadRunnerServer(ctx context.Context, logger Logger, plat string, dest string, version string) error

Includes windows container support

func DownloadTool

func DownloadTool(ctx context.Context, logger Logger, url, dest string) error

func ExtractTar

func ExtractTar(in io.Reader, dst string) error

func ExtractTarGz

func ExtractTarGz(reader io.Reader, dir string) error

func ExtractZip

func ExtractZip(in io.ReaderAt, size int64, dst string) error

Types

type Logger

type Logger interface {
	Infof(format string, args ...interface{})
}

Jump to

Keyboard shortcuts

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