Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
8e9e5969
Commit
8e9e5969
authored
Jul 01, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
website: update latest post-processor API
parent
f78cbb45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
website/source/docs/extend/post-processor.html.markdown
website/source/docs/extend/post-processor.html.markdown
+13
-1
No files found.
website/source/docs/extend/post-processor.html.markdown
View file @
8e9e5969
...
...
@@ -38,7 +38,7 @@ what each method should do.
<pre
class=
"prettyprint"
>
type PostProcessor interface {
Configure(interface{}) error
PostProcess(Ui, Artifact) (
Artifact,
error)
PostProcess(Ui, Artifact) (
a Artifact, keep bool, err
error)
}
</pre>
...
...
@@ -79,3 +79,15 @@ a "compress" post-processor that is responsible for compressing files,
the transformation would be taking the
`Files()`
from the original artifact,
compressing them, and creating a new artifact with a single file: the
compressed archive.
The result signature of this method is
`(Artifact, bool, error)`
. Each
return value is explained below:
*
`Artifact`
- The newly created artifact if no errors occurred.
*
`bool`
- If true, the input artifact will forcefully be kept. By default,
Packer typically deletes all input artifacts, since the user doesn't generally
want intermediary artifacts. However, some post-processors depend on the
previous artifact existing. If this is
`true`
, it forces packer to keep the
artifact around.
*
`error`
- Non-nil if there was an error in any way. If this is the case,
the other two return values are ignored.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment