cleanup

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

func NewBuilder

func NewBuilder(ctx context.Context, pwe *bool, verbose bool, cleanups *[]*Cleanup) *Builder

func (*Builder) Build

func (b *Builder) Build()

func (*Builder) Command added in v1.1.4

func (b *Builder) Command(name string) *Command

func (*Builder) File

func (b *Builder) File(names ...string) *Builder

func (*Builder) Name

func (b *Builder) Name(name string) *Builder

func (*Builder) Write

func (b *Builder) Write(filename string, data []byte, mode os.FileMode) *Builder

type Cleanup

type Cleanup struct {
	Name    string
	Workers []work.Worker
}

func New

func New(name string, workers ...work.Worker) *Cleanup

func (*Cleanup) Clean

func (c *Cleanup) Clean(logger log.Logger) (err error)

type Command added in v1.1.4

type Command struct {
	// contains filtered or unexported fields
}

func NewCommand added in v1.1.5

func NewCommand(ctx context.Context, builder *Builder, pwe *bool, verbose bool, name string) (command *Command)

func (*Command) Arguments added in v1.2.1

func (c *Command) Arguments(arguments *args.Arguments) (command *Command)

func (*Command) Build added in v1.1.4

func (c *Command) Build() (builder *Builder)

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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