package cleanups
import "github.com/dotcloud/docker/internal/cleanups"
Index ¶
Types ¶
type Composite ¶
type Composite struct {
// contains filtered or unexported fields
}
func (*Composite) Add ¶
Add adds a cleanup to be called.
func (*Composite) Call ¶
Call calls all cleanups in reverse order and returns an error combining all non-nil errors.
func (*Composite) Release ¶
Release removes all cleanups, turning Call into a no-op. Caller still can call the cleanups by calling the returned function which is equivalent to calling the Call before Release was called.
Source Files ¶
- Version
- v26.0.1+incompatible
- Published
- Apr 10, 2024
- Platform
- js/wasm
- Imports
- 2 packages
- Last checked
- 1 minute ago –
Tools for package owners.