Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DirectoryLister ¶
type FilesystemDirectoryLister ¶
type FilesystemDirectoryLister struct{}
func (*FilesystemDirectoryLister) ListDirectoryEntries ¶
func (_ *FilesystemDirectoryLister) ListDirectoryEntries(path string) ([]string, error)
type GoBinary ¶
type GoBinary struct { // ModuleURL is the `mod` URL from `go version -m` ModuleURL string // Path is the `path` URL from `go version -m` PathURL string Name string // Path is the filesystem path to this binary. Path string Version string LatestVersion string }
func (*GoBinary) BuiltFromSource ¶ added in v0.1.1
BuiltFromSource determines whether the binary was built or installed from source.
func (*GoBinary) BuiltWithGoBuild ¶ added in v0.1.1
func (*GoBinary) UpgradePossible ¶
type Introspecter ¶
type Introspecter struct {
// contains filtered or unexported fields
}
func NewIntrospecter ¶
func NewIntrospecter(cmdRunner gocli.GoCmdRunner, gobin string, logger *zap.Logger) Introspecter
func (*Introspecter) Introspect ¶
func (i *Introspecter) Introspect(binaryName string) (GoBinary, error)
type IntrospectionResult ¶
func IntrospectBinaries ¶
func IntrospectBinaries(introspecter *Introspecter, binaryNames []string) []IntrospectionResult
Click to show internal directories.
Click to hide internal directories.