(path, baseDir string)
| 334 | } |
| 335 | |
| 336 | func (s *FileTokenStore) readAuthFile(path, baseDir string) (*cliproxyauth.Auth, error) { |
| 337 | auths, errReadAuths := s.readAuthFiles(path, baseDir) |
| 338 | if errReadAuths != nil || len(auths) == 0 { |
| 339 | return nil, errReadAuths |
| 340 | } |
| 341 | return auths[0], nil |
| 342 | } |
| 343 | |
| 344 | func parsePluginAuthFile(parser PluginAuthParser, req pluginapi.AuthParseRequest) ([]*cliproxyauth.Auth, bool, error) { |
| 345 | if parser == nil { |
nothing calls this directly
no test coverage detected