common

package
v0.0.0-...-8ac10f7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//ErrParseVersionFailed failed to parse version from filename
	ErrParseVersionFailed = errors.New("Failed to parse version from filename")
)

Functions

func ParseVersionFromFilename

func ParseVersionFromFilename(filename string) (string, error)

ParseVersionFromFilename this parses the version string out of the filename

Types

type IPackageMgr

type IPackageMgr interface {
	IsInstalled(packageName string) error
	GetInstalledVersion(packageName string, parseVersion bool) (string, error)
}

IPackageMgr is the interface for implementing functions for different package managers

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL