MCPcopy Index your code
hub / github.com/cli/cli / GetTrustDomain

Method GetTrustDomain

pkg/cmd/attestation/api/client.go:281–283  ·  view source on GitHub ↗

GetTrustDomain returns the current trust domain. If the default is used the empty string is returned

()

Source from the content-addressed store, hash-verified

279// GetTrustDomain returns the current trust domain. If the default is used
280// the empty string is returned
281func (c *LiveClient) GetTrustDomain() (string, error) {
282 return c.getTrustDomain(MetaPath)
283}
284
285func (c *LiveClient) getTrustDomain(url string) (string, error) {
286 var resp MetaResponse

Callers 3

NewInspectCmdFunction · 0.95
NewTrustedRootCmdFunction · 0.95
TestGetTrustDomainFunction · 0.95

Calls 1

getTrustDomainMethod · 0.95

Tested by 1

TestGetTrustDomainFunction · 0.76