MCPcopy Create free account
hub / github.com/docker/cli / isReleasedTarget

Function isReleasedTarget

cmd/docker-trust/trust/helpers.go:18–20  ·  view source on GitHub ↗

isReleasedTarget checks if a role name is "released": either targets/releases or targets TUF roles

(role data.RoleName)

Source from the content-addressed store, hash-verified

16// isReleasedTarget checks if a role name is "released":
17// either targets/releases or targets TUF roles
18func isReleasedTarget(role data.RoleName) bool {
19 return role == data.CanonicalTargetsRole || role == trust.ReleasesRole
20}
21
22// notaryRoleToSigner converts TUF role name to a human-understandable signer name
23func notaryRoleToSigner(tufRole data.RoleName) string {

Callers 4

notaryRoleToSignerFunction · 0.85
matchReleasedSignaturesFunction · 0.85
TestIsReleasedTargetFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestIsReleasedTargetFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…