Documentation
¶
Index ¶
- Constants
- Variables
- func Ext2Type(typ string) int
- func Reset()
- func SetDebug()
- func SetVerbose()
- func TestGpg_Close(t *testing.T)
- func TestGpg_Decrypt(t *testing.T)
- func TestGpg_Extract(t *testing.T)
- func TestGpg_Extract2(t *testing.T)
- func TestGpg_Extract3(t *testing.T)
- func TestGpg_Extract4(t *testing.T)
- func TestGpg_Extract4_Debug(t *testing.T)
- func TestNullGPGError_Decrypt(t *testing.T)
- func TestNullGPG_Decrypt(t *testing.T)
- func Version() string
- type Decrypter
- type ExtractCloser
- type Extracter
- type Gpg
- type Gpgme
- type Gzip
- type NullGPG
- type NullGPGError
- type Plain
- type Tar
- type Zip
- type Zstd
Constants ¶
View Source
const ( // ArchivePlain starts the different types ArchivePlain = 1 << iota // ArchiveGzip is for gzip archives ArchiveGzip // ArchiveZip is for zip archives ArchiveZip // ArchiveTar describes the tar ones ArchiveTar // ArchiveGpg is for openpgp archives ArchiveGpg // ArchiveZstd is for Zstd archives ArchiveZstd )
Variables ¶
View Source
var ErrFakeGPGError = fmt.Errorf("fake error")
Functions ¶
func TestGpg_Close ¶ added in v0.9.1
func TestGpg_Decrypt ¶ added in v0.9.1
func TestGpg_Extract ¶ added in v0.9.1
func TestGpg_Extract2 ¶ added in v0.9.1
func TestGpg_Extract3 ¶ added in v0.9.1
func TestGpg_Extract4 ¶ added in v0.9.1
func TestGpg_Extract4_Debug ¶ added in v0.9.1
func TestNullGPGError_Decrypt ¶ added in v0.9.1
func TestNullGPG_Decrypt ¶ added in v0.9.1
Types ¶
type ExtractCloser ¶
ExtractCloser is the same with Close()
func NewFromReader ¶ added in v0.3.0
func NewFromReader(r io.Reader, t int) (ExtractCloser, error)
NewFromReader uses an io.Reader instead of a file
type Gpg ¶ added in v0.3.0
type Gpg struct {
// contains filtered or unexported fields
}
Gpg is how we use/mock decryption stuff
func NewGpgfile ¶ added in v0.3.0
NewGpgfile initializes the struct and check filename
type Gzip ¶
type Gzip struct {
// contains filtered or unexported fields
}
Gzip is a gzip-compressed file
func NewGzipfile ¶
NewGzipfile stores the uncompressed file name
type NullGPGError ¶ added in v0.9.1
type NullGPGError struct{}
type Plain ¶
type Plain struct { Name string // contains filtered or unexported fields }
Plain is for plain text
func NewPlainfile ¶ added in v0.6.2
type Tar ¶ added in v0.4.0
type Tar struct {
// contains filtered or unexported fields
}
Tar is a tar archive :)
func NewTarfile ¶ added in v0.4.0
type Zip ¶
type Zip struct {
// contains filtered or unexported fields
}
Zip is for pkzip/infozip files
Click to show internal directories.
Click to hide internal directories.