MCPcopy Index your code
hub / github.com/aptly-dev/aptly / ShortKey

Method ShortKey

deb/package.go:226–228  ·  view source on GitHub ↗

ShortKey returns key for the package that should be unique in one list

(prefix string)

Source from the content-addressed store, hash-verified

224
225// ShortKey returns key for the package that should be unique in one list
226func (p *Package) ShortKey(prefix string) []byte {
227 return []byte(fmt.Sprintf("%sP%s %s %s", prefix, p.Architecture, p.Name, p.Version))
228}
229
230// String creates readable representation
231func (p *Package) String() string {

Callers 4

KeyMethod · 0.95
ExtendedStanzaMethod · 0.95
TestShortKeyMethod · 0.80
packageShortKeyFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestShortKeyMethod · 0.64