Documentation ¶
Overview ¶
Package gocheckdeb is to get go packages and check if they are packaged for debian or not.
Index ¶
- Constants
- Variables
- func DirectoryExist(path string) bool
- func Err(err error)
- func FileExist(path string) bool
- func GetAllPkg(project string) error
- func GetGoPath() (string, error)
- func GetImports(project, importType string) ([]string, error)
- func GetPkg(project string) error
- func GetProjectPath(project string) (string, error)
- func GetURLStatus(project string) (bool, error)
- func MapToSlice(m LevelMap) []string
- func PrintDep(m DepMap, debFilter bool, displayAll bool, i int)
- func SearchDebPackage(name string) bool
- type DepMap
- type GoDebBinaryStruct
- type LevelMap
Constants ¶
const (
// GoDebBinariesURL is the url of binary list of go lang
GoDebBinariesURL = "https://api.ftp-master.debian.org/binary/by_metadata/Go-Import-Path"
)
Variables ¶
var ProjectName string
ProjectName is to store the current project which is being checked
var VendorUsed bool
VendorUsed is to flag if the vendor folder is used or not
Functions ¶
func DirectoryExist ¶
DirectoryExist is to check if a directory exist in GoPath
func GetImports ¶
GetImports is to get first level dependencies of a project
func GetProjectPath ¶
GetProjectPath is to get full project path
func GetURLStatus ¶
GetURLStatus is to get the status of a package
func MapToSlice ¶
MapToSlice is to convert a LevelMap into slice
func SearchDebPackage ¶
SearchDebPackage is to search for a deb package
Types ¶
type DepMap ¶
type DepMap struct {
// contains filtered or unexported fields
}
DepMap is the map of dependencies
var DepGraph DepMap
DepGraph is the graph of packages.
func GetDepRecursive ¶
GetDepRecursive is to get the recursive map of dependencies
func SliceToDepMap ¶
SliceToDepMap is to convert a slice into a DepMap
type GoDebBinaryStruct ¶
type GoDebBinaryStruct struct { Binary string `json:"binary"` XSGoImportPath string `json:"metadata_value"` Source string `json:"source"` }
GoDebBinaryStruct is the structere of json
type LevelMap ¶
LevelMap is a single level dependencies map
var GoBinaries LevelMap
GoBinaries is the map of already packaged binaries
var StdMap LevelMap
StdMap is to store standard packages
func GetGoDebBinaries ¶
GetGoDebBinaries is to get the complete list of all the binaries packaged in debian
func SliceToMap ¶
SliceToMap is to convert a slice into a map