Versions in this module Expand all Collapse all v0 v0.1.0 Dec 15, 2017 Changes in this version + const DefaultBinDir + const DefaultDataRootDir + const DefaultInstallPrefix + const DefaultSbinDir + const DefaultSysConfDir + var ErrClosed = errors.New("debpkg: Closed") + var ErrIO = errors.New("debpkg: I/O failed") + func ExpandVar(msg string) (string, error) + func GetArchitecture() string + func GetVar(v string) string + func GetVarWithPrefix(v string) string + func SetVar(key, val string) + type DebPkg struct + func New(tempDir ...string) *DebPkg + func (deb *DebPkg) AddControlExtra(name, filename string) error + func (deb *DebPkg) AddControlExtraString(name, s string) error + func (deb *DebPkg) AddDirectory(dir string) error + func (deb *DebPkg) AddEmptyDirectory(dir string) error + func (deb *DebPkg) AddFile(filename string, dest ...string) error + func (deb *DebPkg) AddFileString(contents, dest string) error + func (deb *DebPkg) Close() error + func (deb *DebPkg) Config(filename string) error + func (deb *DebPkg) GetFilename() string + func (deb *DebPkg) MarkConfigFile(dest string) error + func (deb *DebPkg) SetArchitecture(arch string) + func (deb *DebPkg) SetBuiltUsing(info string) + func (deb *DebPkg) SetConflicts(conflicts string) + func (deb *DebPkg) SetDepends(depends string) + func (deb *DebPkg) SetDescription(descr string) + func (deb *DebPkg) SetHomepage(url string) + func (deb *DebPkg) SetMaintainer(maintainer string) + func (deb *DebPkg) SetMaintainerEmail(email string) + func (deb *DebPkg) SetName(name string) + func (deb *DebPkg) SetPriority(priority Priority) + func (deb *DebPkg) SetProvides(provides string) + func (deb *DebPkg) SetRecommends(recommends string) + func (deb *DebPkg) SetReplaces(replaces string) + func (deb *DebPkg) SetSection(section string) + func (deb *DebPkg) SetShortDescription(descr string) + func (deb *DebPkg) SetSuggests(suggests string) + func (deb *DebPkg) SetVcsBrowser(url string) + func (deb *DebPkg) SetVcsType(vcs VcsType) + func (deb *DebPkg) SetVcsURL(url string) + func (deb *DebPkg) SetVersion(version string) + func (deb *DebPkg) SetVersionMajor(major uint) + func (deb *DebPkg) SetVersionMinor(minor uint) + func (deb *DebPkg) SetVersionPatch(patch uint) + func (deb *DebPkg) Write(filename string) error + func (deb *DebPkg) WriteSigned(filename string, entity *openpgp.Entity) error + type Priority string + const PriorityImportant + const PriorityOptional + const PriorityRequired + const PriorityStandard + const PriorityUnset + type VcsType string + const VcsTypeArch + const VcsTypeBazaar + const VcsTypeDarcs + const VcsTypeGit + const VcsTypeMercurial + const VcsTypeMonotone + const VcsTypeSubversion + const VcsTypeUnset