Documentation ¶
Index ¶
- func CalcChecksum(r io.Reader, alg string) ([]byte, error)
- func CalcFileChecksum(path string, alg string) ([]byte, error)
- func DetectChecksumAlgorithm(checksum []byte) string
- func NewHasher(alg string) hash.Hash
- type ChecksumEntry
- type Checksums
- type Expecter
- func (expecter *Expecter) ExpectString(s string) bool
- func (expecter *Expecter) ExpectStrings(ss []string) bool
- func (expecter *Expecter) IsEmpty() bool
- func (expecter *Expecter) Matched() string
- func (expecter *Expecter) PeekString(s string) bool
- func (expecter *Expecter) PeekStrings(ss []string) bool
- type Installer
- type PackageSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectChecksumAlgorithm ¶ added in v0.2.0
Types ¶
type ChecksumEntry ¶ added in v0.2.0
type Checksums ¶ added in v0.2.0
type Checksums struct { Algorithm string Entries []*ChecksumEntry }
type Expecter ¶
type Expecter struct {
// contains filtered or unexported fields
}
func NewExpecter ¶
func (*Expecter) ExpectString ¶
func (*Expecter) ExpectStrings ¶
func (*Expecter) PeekString ¶
func (*Expecter) PeekStrings ¶
type Installer ¶ added in v0.2.0
type Installer struct {
// contains filtered or unexported fields
}
func NewInstaller ¶ added in v0.2.0
type PackageSpec ¶
func ParsePackageSpec ¶
func ParsePackageSpec(packageSpec string) (*PackageSpec, error)
func (*PackageSpec) String ¶ added in v0.2.0
func (pkgSpec *PackageSpec) String() string
Click to show internal directories.
Click to hide internal directories.