MCPcopy
hub / github.com/FiloSottile/age / wrapWithLabels

Function wrapWithLabels

plugin/plugin.go:352–358  ·  view source on GitHub ↗
(r age.Recipient, fileKey []byte)

Source from the content-addressed store, hash-verified

350}
351
352func wrapWithLabels(r age.Recipient, fileKey []byte) ([]*age.Stanza, []string, error) {
353 if r, ok := r.(age.RecipientWithLabels); ok {
354 return r.WrapWithLabels(fileKey)
355 }
356 s, err := r.Wrap(fileKey)
357 return s, nil, err
358}
359
360func checkLabels(ll, labels []string) error {
361 if !slicesEqual(ll, labels) {

Callers 1

RecipientV1Method · 0.70

Calls 2

WrapWithLabelsMethod · 0.65
WrapMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…