patcher

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultFolder  = "/tmp/copatcher"
	DefaultPerm    = 0o744
	DefaultTag     = "patched"
	DefaultTimeout = "5m"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Config       config.Config
	IgnoreErrors bool
	Image        string
	Report       report.Report
	Tag          string
	Timeout      time.Duration
}

func DefaultConfig

func DefaultConfig() *Config

type Patcher

type Patcher interface {
	Init(context.Context) error
	Deinit(context.Context) error
	Run(context.Context, string) error
}

func New

func New(_ context.Context, cfg *Config) Patcher

Jump to

Keyboard shortcuts

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