forked from External/ergo
caps: Move most capability-handling types into the caps package
This commit is contained in:
parent
85bfe3818b
commit
275449e6cc
10 changed files with 259 additions and 138 deletions
|
|
@ -45,6 +45,7 @@ const (
|
|||
UserhostInNames Capability = "userhost-in-names"
|
||||
)
|
||||
|
||||
func (capability Capability) String() string {
|
||||
// Name returns the name of the given capability.
|
||||
func (capability Capability) Name() string {
|
||||
return string(capability)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue