mirror of
https://github.com/hashicorp/packer.git
synced 2026-04-27 17:21:49 -04:00
13 lines
467 B
Go
13 lines
467 B
Go
package command
|
|
|
|
import "context"
|
|
|
|
// PackerInterface is the interface to use packer; it represents ways users can
|
|
// use Packer. A call returns a int that will be the exit code of Packer,
|
|
// everything else is up to the implementer.
|
|
type PackerInterface interface {
|
|
Build(ctx context.Context, args BuildArgs) int
|
|
Console(ctx context.Context, args ConsoleArgs) int
|
|
Fix(ctx context.Context, args FixArgs) int
|
|
Validate(ctx context.Context, args ValidateArgs) int
|
|
}
|