Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add method to return name of NS #74

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ivan1993spb
Copy link

Added a method which returns the name of a namespace. If the target namespace is unnamed, the method returns empty string

@ivan1993spb ivan1993spb force-pushed the get-netns-name branch 5 times, most recently from 2a8a17d to cb4e287 Compare May 2, 2023 11:47
@ivan1993spb
Copy link
Author

What do you think how the method signature should look like?

func (ns NsHandle) Name() string vs func (ns NsHandle) Name() (string, error) which one would be better?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant