gopack

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoMatchingImage = errors.New("no matching image")

Functions

func NopLogger

func NopLogger() types.Logger

NopLogger returns a Logger with no-op methods.

func Run

func Run(ctx context.Context, options ...RunOption) (string, error)

func StdErrLogger

func StdErrLogger() types.Logger

StdErrLogger returns a new Logger that logs to stderr.

Types

type RunOption

type RunOption func(*runOptions)

func WithBase

func WithBase(v string) RunOption

func WithCGOEnabled

func WithCGOEnabled(v bool) RunOption

func WithCompressionLevel

func WithCompressionLevel(v int) RunOption

func WithConcurrency

func WithConcurrency(v int) RunOption

func WithDaemon

func WithDaemon(v string) RunOption

func WithLDFlags

func WithLDFlags(v string) RunOption

func WithLabels

func WithLabels(v map[string]string) RunOption

func WithLogger

func WithLogger(v types.Logger) RunOption

func WithMainPath

func WithMainPath(v string) RunOption

func WithModFlag

func WithModFlag(v string) RunOption

func WithPlatforms

func WithPlatforms(v []string) RunOption

func WithRepository

func WithRepository(v string) RunOption

func WithTags

func WithTags(v []string) RunOption

func WithTrimpath

func WithTrimpath(v bool) RunOption

Jump to

Keyboard shortcuts

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