(id string)
| 450 | } |
| 451 | |
| 452 | func (s *GitTokenStore) resolveDeletePath(id string) (string, error) { |
| 453 | if strings.ContainsRune(id, os.PathSeparator) || filepath.IsAbs(id) { |
| 454 | return id, nil |
| 455 | } |
| 456 | dir := s.baseDirSnapshot() |
| 457 | if dir == "" { |
| 458 | return "", fmt.Errorf("auth filestore: directory not configured") |
| 459 | } |
| 460 | return filepath.Join(dir, id), nil |
| 461 | } |
| 462 | |
| 463 | func (s *GitTokenStore) readAuthFile(path, baseDir string) (*cliproxyauth.Auth, error) { |
| 464 | data, err := os.ReadFile(path) |