update custon provider docs

This commit is contained in:
Adrien Delorme 2019-12-18 16:13:52 +01:00
parent 04a8758811
commit 26ceea0c36
3 changed files with 5 additions and 2 deletions

View File

@ -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)
}
```

View File

@ -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)
}

View File

@ -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
}
```