Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Concat ¶ added in v0.2.0
Concat concatenates readers. Used for concatenating signature.tar.gz and APKINDEX.unsigned.tar.gz.
func ReadApkIndex ¶
ReadApkIndex reads an APKINDEX file to a ApkIndex struct.
Types ¶
type Signer ¶ added in v0.2.0
type Signer interface { // Sign returns raw signature for the given data. This method // will apply the hash specified for the keytype to the data. Sign(data []byte) ([]byte, error) }
A Signer is can create signatures that verify against a public key.
func LoadPrivateKey ¶ added in v0.2.4
LoadPrivateKey loads an parses a PEM encoded private key file and returns a Signer
func ParsePrivateKey ¶ added in v1.0.2
parsePrivateKey creates a Signer from a private key in PEM format in pemBytes.
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer provides sequential writing of APKINDEX index entries from APK files
func (*Writer) Close ¶
func (w *Writer) Close()
Close closes the underlying writer, by writing a \n line.
func (*Writer) Write ¶
func (w *Writer) Write(entry *apkutils.IndexEntry)
Write writes a APKINDEX record to the underlying writer.
Click to show internal directories.
Click to hide internal directories.