MCPcopy
hub / github.com/perkeep/perkeep / secretRingPath

Method secretRingPath

pkg/jsonsign/sign.go:125–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

123}
124
125func (sr *SignRequest) secretRingPath() string {
126 if sr.SecretKeyringPath != "" {
127 return sr.SecretKeyringPath
128 }
129 return osutil.SecretRingFile()
130}
131
132func (sr *SignRequest) Sign(ctx context.Context) (signedJSON string, err error) {
133 trimmedJSON := strings.TrimRightFunc(sr.UnsignedJSON, unicode.IsSpace)

Callers 1

SignMethod · 0.95

Calls 1

SecretRingFileFunction · 0.92

Tested by

no test coverage detected