MCPcopy
hub / github.com/kopia/kopia / ContentAccessLevel

Method ContentAccessLevel

internal/auth/authz.go:34–34  ·  view source on GitHub ↗

ContentAccessLevel determines whether the user can read/write contents.

()

Source from the content-addressed store, hash-verified

32type AuthorizationInfo interface {
33 // ContentAccessLevel determines whether the user can read/write contents.
34 ContentAccessLevel() AccessLevel
35
36 // ManifestAccessLevel determines whether the user has access to a manifest with given labels.
37 ManifestAccessLevel(labels map[string]string) AccessLevel

Callers 8

TestNoAccessFunction · 0.65
verifyLegacyAuthorizerFunction · 0.65
handleGetContentRequestFunction · 0.65
handleFlushRequestFunction · 0.65

Implementers 3

aclEntriesAuthorizerinternal/auth/authz_acl.go
noAccessAuthorizationInfointernal/auth/authz.go
legacyAuthorizationInfointernal/auth/authz.go

Calls

no outgoing calls

Tested by 2

TestNoAccessFunction · 0.52
verifyLegacyAuthorizerFunction · 0.52