grim/convey

Fix some minor linting issues

5 months ago, Elliott Sales de Andrade
62cc853bf396
Fix some minor linting issues

Testing Done:
Ran `golint`, saw fewer lints, and ran `go build .`

Reviewed at https://reviews.imfreedom.org/r/2869/
# Convey
The convey tasks provides some intrinsic tasks that convey provides.
----
## convey/clean
A clean task will remove files from the host relative and limited to the
directory containing the `convey.yml` for the run.
### Attributes
| Name | Required | Default | Description |
| --------- | -------- | ------- | ----------- |
| files | Yes | | A list of filenames relative to the convey.yml file to remove. |
### Example
```yaml
clean:
type: convey/clean
files:
- convey-amd64
- "**/*.pyc"
- "**/__pycache__"
```
----
## convey/export
An export task will move files from the workspace to the host. Files on the host
will be created relative to the `convey.yml` file.
### Attributes
| Name | Required | Default | Description |
| --------- | -------- | ------- | ----------- |
| files | Yes | | A single filename or a list of files to copy from the workspace to the host. Files can be specified in one of two forms which can be mixed. The first is `source:destination` and the other is `filename` where filename will be used for both the host and the volume. |
### Examples
```yaml
export:
type: convey/export
files: filename1
```
```yaml
export:
type: convey/export
files:
- logo.png
- binary:binary-linux-x86_64
```
----
## convey/import
An import task copies files from the host to the workspace. It has one required
attribute named `files`. This is a list of files relative to the directory
containing the `convey.yml` file that will be copied into the workspace.
### Attributes
| Name | Required | Default | Description |
| ----- | -------- | ------- | ----------- |
| files | Yes | | A single filename or a list of files to copy from the host to the workspace. Files can be specified in one of two forms which can be mixed. The first is `source:destination` and the other is `filename` where filename will be used for both the host and the volume. |
### Examples
```yaml
import:
type: convey/import
files: filename1
```
```yaml
import:
type: convey/import
files:
- Dockerfile
- src:source
```
----
## convey/noop
A noop task does nothing. It is a "NO OPeration" task. It's used primarily in
testing, but could be useful for stubbing stuff out or debugging.
### Attributes
None.
### Example
```yaml
clean:
type: convey/noop
```