(name string)
| 97 | } |
| 98 | |
| 99 | func (s *staticFS) Open(name string) (fs.File, error) { |
| 100 | if strings.HasPrefix(name, V1APIPrefix) { |
| 101 | return nil, os.ErrNotExist |
| 102 | } |
| 103 | if location, ok := s.redirections[name]; ok { |
| 104 | return s.fs.Open(location) |
| 105 | } |
| 106 | return s.fs.Open(name) |
| 107 | } |
| 108 | |
| 109 | var errBadSigner = errors.New("signer not initialized") |
| 110 | var errNoCertDBConfigured = errors.New("cert db not configured (missing -db-config)") |
no outgoing calls
no test coverage detected