cleanup

package
v2.10.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cleaner

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

func (*Cleaner) AddCleanup

func (c *Cleaner) AddCleanup(name string, f func() error)

func (*Cleaner) AddCleanupCtx

func (c *Cleaner) AddCleanupCtx(name string, f CleanupFunc)

func (*Cleaner) Cleanup

func (c *Cleaner) Cleanup(ctx context.Context) error

func (*Cleaner) Subsume

func (c *Cleaner) Subsume(x *Cleaner)

type CleanupFunc

type CleanupFunc func(context.Context) error

Jump to

Keyboard shortcuts

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