MCPcopy Create free account
hub / github.com/cloudflare/cfssl / Open

Method Open

cli/serve/serve.go:99–107  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

97}
98
99func (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
109var errBadSigner = errors.New("signer not initialized")
110var errNoCertDBConfigured = errors.New("cert db not configured (missing -db-config)")

Callers 6

ParseToRawMapFunction · 0.45
parseCSVFunction · 0.45
DBFromConfigFunction · 0.45
MySQLDBFunction · 0.45
PostgreSQLDBFunction · 0.45
SQLiteDBFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected