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

Function scope_for

atomic-remote/src/auth/delegation.rs:343–350  ·  view source on GitHub ↗
(server: &str)

Source from the content-addressed store, hash-verified

341 }
342
343 fn scope_for(server: &str) -> DelegationScope {
344 DelegationScope::builder()
345 .permission(DelegationPermission::Read)
346 .permission(DelegationPermission::Push)
347 .server(server)
348 .project("acme/*")
349 .build()
350 }
351
352 /// The automation path: a runner is handed a grant in the environment and
353 /// needs nothing installed.

Calls 4

projectMethod · 0.80
serverMethod · 0.80
permissionMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected