diff options
author | Matthew Heon <mheon@redhat.com> | 2019-03-28 18:01:36 -0400 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2019-03-28 18:01:36 -0400 |
commit | e25924f31c8e9e53490f02073ba69d41e3470712 (patch) | |
tree | 212e317b038359345f0bd5bcbfbb2b77de621ff7 /pkg | |
parent | beb263554efdb849291caf5dba4a74966564b78d (diff) | |
download | podman-e25924f31c8e9e53490f02073ba69d41e3470712.tar.gz podman-e25924f31c8e9e53490f02073ba69d41e3470712.tar.bz2 podman-e25924f31c8e9e53490f02073ba69d41e3470712.zip |
Fix lint
Signed-off-by: Matthew Heon <mheon@redhat.com>
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/namespaces/namespaces.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/namespaces/namespaces.go b/pkg/namespaces/namespaces.go index 950818fc7..fde6118af 100644 --- a/pkg/namespaces/namespaces.go +++ b/pkg/namespaces/namespaces.go @@ -228,12 +228,12 @@ func (n NetworkMode) IsSlirp4netns() bool { return n == "slirp4netns" } -// IsNS() indicates a network namespace passed in by path (ns:<path>) +// IsNS indicates a network namespace passed in by path (ns:<path>) func (n NetworkMode) IsNS() bool { return strings.HasPrefix(string(n), "ns:") } -// NS() gets the path associated with a ns:<path> network ns +// NS gets the path associated with a ns:<path> network ns func (n NetworkMode) NS() string { parts := strings.SplitN(string(n), ":", 2) if len(parts) > 1 { @@ -242,7 +242,7 @@ func (n NetworkMode) NS() string { return "" } -// IsPod() returns whether the network refers to pod networking +// IsPod returns whether the network refers to pod networking func (n NetworkMode) IsPod() bool { return n == "pod" } |