mirror of
https://github.com/containers/skopeo.git
synced 2026-02-03 07:48:30 +00:00
Clarify that we're referring to a buildah.Builder object here, and it's not a capitalization mistake. Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
18 lines
392 B
Go
18 lines
392 B
Go
package buildah
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
// Delete removes the working container. The buildah.Builder object should not
|
|
// be used after this method is called.
|
|
func (b *Builder) Delete() error {
|
|
if err := b.store.DeleteContainer(b.ContainerID); err != nil {
|
|
return fmt.Errorf("error deleting build container: %v", err)
|
|
}
|
|
b.MountPoint = ""
|
|
b.Container = ""
|
|
b.ContainerID = ""
|
|
return nil
|
|
}
|