MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / allows_repository

Method allows_repository

atomic-identity/src/delegation.rs:247–255  ·  view source on GitHub ↗

Check if this scope allows access to a repository.

(&self, repo_path: &str)

Source from the content-addressed store, hash-verified

245
246 /// Check if this scope allows access to a repository.
247 pub fn allows_repository(&self, repo_path: &str) -> bool {
248 if self.repository_patterns.is_empty() {
249 return true;
250 }
251
252 self.repository_patterns
253 .iter()
254 .any(|pattern| Self::matches_pattern(pattern, repo_path))
255 }
256
257 /// Check if this scope allows access to a view.
258 pub fn allows_view(&self, view_name: &str) -> bool {

Callers 1

allowsMethod · 0.80

Calls 2

is_emptyMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected