mirror of https://github.com/vishvananda/netns
don't deprecate bindMountPath
The bindMountPath const was in the same group as the deprecated consts, which were deprecated as a whole. This patch moves the bindMountPath const outside of the group to make sure it's not considered deprecated. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
5db4494c3d
commit
e6c3e222e7
|
@ -20,9 +20,10 @@ const (
|
|||
CLONE_NEWPID = unix.CLONE_NEWPID /* New pid namespace */
|
||||
CLONE_NEWNET = unix.CLONE_NEWNET /* New network namespace */
|
||||
CLONE_IO = unix.CLONE_IO /* Get io context */
|
||||
bindMountPath = "/run/netns" /* Bind mount path for named netns */
|
||||
)
|
||||
|
||||
const bindMountPath = "/run/netns" /* Bind mount path for named netns */
|
||||
|
||||
// Setns sets namespace using golang.org/x/sys/unix.Setns.
|
||||
//
|
||||
// Deprecated: Use golang.org/x/sys/unix.Setns instead.
|
||||
|
|
Loading…
Reference in New Issue