Versions in this module Expand all Collapse all v0 v0.7.1 Aug 5, 2014 Changes in this version type ConfigStructure + DownloadLimit int64 + S3PublishRoots map[string]S3PublishRoot + type S3PublishRoot struct + ACL string + AccessKeyID string + Bucket string + Prefix string + Region string + SecretAccessKey string v0.5.1 May 10, 2014 Changes in this version + func HumanBytes(i int64) (result string) v0.4.1 Mar 12, 2014 Changes in this version + var Config = ConfigStructure + func CompressFile(source *os.File) error + func LoadConfig(filename string, config *ConfigStructure) error + func SaveConfig(filename string, config *ConfigStructure) error + func StrMapSortedKeys(m map[string]string) []string + func StrMapsEqual(m1, m2 map[string]string) bool + func StrSliceDeduplicate(s []string) []string + func StrSliceHasItem(s []string, item string) bool + func StrSlicesEqual(s1, s2 []string) bool + func StrSlicesSubstract(l, r []string) []string + func StringsIsSubset(subset, full []string, errorFmt string) error + type ChecksumInfo struct + MD5 string + SHA1 string + SHA256 string + Size int64 + func ChecksumsForFile(path string) (ChecksumInfo, error) + type ChecksumWriter struct + func NewChecksumWriter() *ChecksumWriter + func (c *ChecksumWriter) Sum() ChecksumInfo + func (c *ChecksumWriter) Write(p []byte) (n int, err error) + type ConfigStructure struct + Architectures []string + DepFollowAllVariants bool + DepFollowRecommends bool + DepFollowSource bool + DepFollowSuggests bool + DownloadConcurrency int + DownloadSourcePackages bool + GpgDisableSign bool + GpgDisableVerify bool + PpaCodename string + PpaDistributorID string + RootDir string + type GpgSigner struct + func (g *GpgSigner) ClearSign(source string, destination string) error + func (g *GpgSigner) DetachedSign(source string, destination string) error + func (g *GpgSigner) Init() error + func (g *GpgSigner) SetKey(keyRef string) + func (g *GpgSigner) SetKeyRing(keyring, secretKeyring string) + type GpgVerifier struct + func (g *GpgVerifier) AddKeyring(keyring string) + func (g *GpgVerifier) ExtractClearsigned(clearsigned io.Reader) (text *os.File, err error) + func (g *GpgVerifier) InitKeyring() error + func (g *GpgVerifier) VerifyClearsigned(clearsigned io.Reader) error + func (g *GpgVerifier) VerifyDetachedSignature(signature, cleartext io.Reader) error + type Signer interface + ClearSign func(source string, destination string) error + DetachedSign func(source string, destination string) error + Init func() error + SetKey func(keyRef string) + SetKeyRing func(keyring, secretKeyring string) + type Verifier interface + AddKeyring func(keyring string) + ExtractClearsigned func(clearsigned io.Reader) (text *os.File, err error) + InitKeyring func() error + VerifyClearsigned func(clearsigned io.Reader) error + VerifyDetachedSignature func(signature, cleartext io.Reader) error