MCPcopy
hub / github.com/getsops/sops / Allows

Method Allows

hcvault/keysource.go:45–58  ·  view source on GitHub ↗
(address string)

Source from the content-addressed store, hash-verified

43}
44
45func (al *allowList) Allows(address string) bool {
46 if al.All {
47 return true
48 }
49 if !strings.HasSuffix(address, "/") {
50 address = address + "/"
51 }
52 for _, uri := range al.URIs {
53 if strings.HasPrefix(address, uri) {
54 return true
55 }
56 }
57 return false
58}
59
60func parseAllowlistString(allowlistStr string) (allowList, error) {
61 switch allowlistStr {

Callers 2

vaultClientFunction · 0.80
TestAllowlistAllowFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestAllowlistAllowFunction · 0.64