MCPcopy Create free account
hub / github.com/docker/docker-agent / BinaryName

Method BinaryName

pkg/toolinstall/registry.go:106–111  ·  view source on GitHub ↗

BinaryName returns the primary binary name this package provides.

()

Source from the content-addressed store, hash-verified

104
105// BinaryName returns the primary binary name this package provides.
106func (p *Package) BinaryName() string {
107 if len(p.Files) > 0 {
108 return p.Files[0].Name
109 }
110 return p.RepoName
111}
112
113// PackageFile describes a file within a downloaded archive.
114type PackageFile struct {

Callers 3

installGoPackageFunction · 0.80
installGitHubReleaseMethod · 0.80
TestPackage_BinaryNameFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestPackage_BinaryNameFunction · 0.64