Versions in this module Expand all Collapse all v1 v1.5.0 Apr 7, 2022 Changes in this version + var ErrExtensionNotSpecified = errors.New("crx3: extension id not specified") + var ErrPathNotFound = errors.New("crx3: filepath not found") + var ErrPrivateKeyNotFound = errors.New("crx3: private key not found") + var ErrUnknownFileExtension = errors.New("crx3: unknown file extension") + var ErrUnsupportedFileFormat = errors.New("crx3: unsupported file format") + func Base64(filename string) (b []byte, err error) + func DownloadFromWebStore(extensionID string, filename string) error + func ID(filename string) (id string, err error) + func LoadPrivateKey(filename string) (*rsa.PrivateKey, error) + func NewPrivateKey() (*rsa.PrivateKey, error) + func Pack(src string, dst string, pk *rsa.PrivateKey) (err error) + func SavePrivateKey(filename string, key *rsa.PrivateKey) error + func SetWebStoreURL(u string) + func Unpack(filename string) error + func UnpackCrx2(filename string) error + func Unzip(r io.ReaderAt, size int64, unpacked string) error + func Zip(w io.Writer, unpacked string) error + type Extension string + func (e Extension) Base64() ([]byte, error) + func (e Extension) ID() (string, error) + func (e Extension) IsCRX3() bool + func (e Extension) IsDir() bool + func (e Extension) IsZip() bool + func (e Extension) Pack(pk *rsa.PrivateKey) error + func (e Extension) PackTo(dst string, pk *rsa.PrivateKey) error + func (e Extension) String() string + func (e Extension) Unpack() error + func (e Extension) Unzip() error + func (e Extension) Zip() error