code: func capabilityFromStringSlice(slice []string) []api.Capability {
  	if len(slice) == 0 {
  		return nil
  	}
  	caps := []api.Capability{}
  	for _, c := range slice {
  		caps = append(caps, api.Capability(c))
  	}
  	return caps
  }
docs: // capabilityFromStringSlice creates a capability slice from a string slice.