mirror of
https://github.com/hashicorp/packer.git
synced 2026-06-08 16:22:15 -04:00
update custon provider docs
This commit is contained in:
parent
04a8758811
commit
26ceea0c36
3 changed files with 5 additions and 2 deletions
|
|
@ -31,7 +31,8 @@ method should do.
|
|||
|
||||
``` go
|
||||
type Builder interface {
|
||||
Prepare(...interface{}) error
|
||||
ConfigSpec() hcldec.ObjectSpec
|
||||
Prepare(...interface{}) ([]string, []string, error)
|
||||
Run(context.Context, ui Ui, hook Hook) (Artifact, error)
|
||||
}
|
||||
```
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ explaining what each method should do.
|
|||
|
||||
``` go
|
||||
type PostProcessor interface {
|
||||
ConfigSpec() hcldec.ObjectSpec
|
||||
Configure(interface{}) error
|
||||
PostProcess(context.Context, Ui, Artifact) (a Artifact, keep, mustKeep bool, err error)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,8 +35,9 @@ explaining what each method should do.
|
|||
|
||||
``` go
|
||||
type Provisioner interface {
|
||||
ConfigSpec() hcldec.ObjectSpec
|
||||
Prepare(...interface{}) error
|
||||
Provision(Ctx, Ui, Communicator, new(interface{})) error
|
||||
Provision(context.Context, Ui, Communicator, map[string]interface{}) error
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue