Versions in this module Expand all Collapse all v0 v0.7.1 Dec 14, 2024 v0.7.0 Nov 20, 2024 Changes in this version + func IsMixedPEM(_ string, data []byte, _ int64) bool v0.6.0 Nov 5, 2024 Changes in this version type Info + func RPMFile(info Info, data []byte) (Info, error) v0.5.0 Nov 5, 2024 Changes in this version + var ErrNotRegularFile = errors.New("only regular files are supported") + var MaxReadSize = 128 * units.Megabyte + var UnknownASN1Data = Info + var UnknownPEMData = Info + func IsASN1(_ string, data []byte, _ int64) bool + func IsBase64ASN1(_ string, data []byte, _ int64) bool + func IsJWT(_ string, data []byte, _ int64) bool + func IsUUID(_ string, data []byte, _ int64) bool + type Attribute struct + Name string + Value string + type Identifier func(name string, data []byte, fileSize int64) bool + type Info struct + Attributes []Attribute + Children []Info + Description string + Path string + Size int64 + func ASN1File(info Info, data []byte) (Info, error) + func Base64ASN1File(info Info, data []byte) (Info, error) + func Inspect(f *os.File) (Info, error) + func JCEKeystore(info Info, _ []byte) (Info, error) + func JWTData(info Info, data []byte) (Info, error) + func JavaKeystore(info Info, _ []byte) (Info, error) + func PEMFile(info Info, data []byte) (Info, error) + func PGPPrivateKey(info Info, data []byte) (Info, error) + func PGPPublicKey(info Info, data []byte) (Info, error) + func PuttyPPK(info Info, data []byte) (Info, error) + func SSH1PrivateKey(info Info, data []byte) (Info, error) + func SSHAuthorizedKeys(info Info, data []byte) (Info, error) + func SSHKnownHosts(info Info, data []byte) (Info, error) + func SSHPublicKey(info Info, data []byte) (Info, error) + func UUIDValue(info Info, data []byte) (Info, error) + type JWT struct + Header map[string]any + Payload map[string]any + Signature []byte + func ParseJWT(data []byte) (*JWT, error) + func (j JWT) HeaderAttributes() []Attribute + func (j JWT) PayloadAttributes() []Attribute + type Parser func(info Info, data []byte) (Info, error)