rename CapabilityType Capability

This commit is contained in:
Tim Hockin
2015-05-18 13:37:10 -07:00
parent fd22f48f5b
commit 65833e42c4
21 changed files with 106 additions and 106 deletions

View File

@@ -116,10 +116,10 @@ func getAllCapabilities() string {
return strings.Join(capabilities, ",")
}
// TODO(yifan): This assumes that api.CapabilityType has the form of
// TODO(yifan): This assumes that api.Capability has the form of
// "CAP_SYS_ADMIN". We need to have a formal definition for
// capabilities.
func getCapabilities(caps []api.CapabilityType) string {
func getCapabilities(caps []api.Capability) string {
var capList []string
for _, cap := range caps {
capList = append(capList, fmt.Sprintf("%q", cap))