aboutsummaryrefslogtreecommitdiff
path: root/pkg/specgen/generate/kube/volume.go
diff options
context:
space:
mode:
authorPaul Holzinger <paul.holzinger@web.de>2021-02-12 17:59:50 +0100
committerMatthew Heon <mheon@redhat.com>2021-02-18 11:12:24 -0500
commit385705690475d93b326835b8ebd90853b279168a (patch)
tree6e6c517eff5d30e38f50a248fa6e457c26f1e1c1 /pkg/specgen/generate/kube/volume.go
parentfe4333c1e87ab479fda44261b2cb820484422f85 (diff)
downloadpodman-385705690475d93b326835b8ebd90853b279168a.tar.gz
podman-385705690475d93b326835b8ebd90853b279168a.tar.bz2
podman-385705690475d93b326835b8ebd90853b279168a.zip
Enable more golangci-lint linters
Cleanup the golangci.yml file and enable more linters. `pkg/spec` and `iopodman.io` is history. The vendor directory is excluded by default. The dependencies dir was listed twice. Fix the reported problems in `pkg/specgen` because that was also excluded by `pkg/spec`. Enable the structcheck, typecheck, varcheck, deadcode and depguard linters. [NO TESTS NEEDED] Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
Diffstat (limited to 'pkg/specgen/generate/kube/volume.go')
-rw-r--r--pkg/specgen/generate/kube/volume.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/specgen/generate/kube/volume.go b/pkg/specgen/generate/kube/volume.go
index f5687f60d..c3241a49e 100644
--- a/pkg/specgen/generate/kube/volume.go
+++ b/pkg/specgen/generate/kube/volume.go
@@ -17,6 +17,7 @@ const (
kubeFilePermission = 0644
)
+// nolint:golint
type KubeVolumeType int
const (
@@ -24,6 +25,7 @@ const (
KubeVolumeTypeNamed KubeVolumeType = iota
)
+// nolint:golint
type KubeVolume struct {
// Type of volume to create
Type KubeVolumeType