Skip to content

Add method to return name of NS#74

Open
ivan1993spb wants to merge 1 commit intovishvananda:masterfrom
ivan1993spb:get-netns-name
Open

Add method to return name of NS#74
ivan1993spb wants to merge 1 commit intovishvananda:masterfrom
ivan1993spb:get-netns-name

Conversation

@ivan1993spb
Copy link
Copy Markdown

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
Copy Markdown
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