Versions in this module Expand all Collapse all v0 v0.0.4 Mar 6, 2025 v0.0.3 Mar 6, 2025 Changes in this version + var ErrNotDir = errors.New("not a directory") + func CalculateChecksum(plugin PluginDecoder) (string, error) + func VerifyPlugin(decoder PluginDecoder) error + type FSPluginDecoder struct + func NewFSPluginDecoder(root string) (*FSPluginDecoder, error) + func (d *FSPluginDecoder) Assets() (map[string][]byte, error) + func (d *FSPluginDecoder) CheckAssetsValid() error + func (d *FSPluginDecoder) Checksum() (string, error) + func (d *FSPluginDecoder) Close() error + func (d *FSPluginDecoder) CreateTime() (int64, error) + func (d *FSPluginDecoder) FileReader(filename string) (io.ReadCloser, error) + func (d *FSPluginDecoder) Manifest() (plugin_entities.PluginDeclaration, error) + func (d *FSPluginDecoder) Open() error + func (d *FSPluginDecoder) ReadDir(dirname string) ([]string, error) + func (d *FSPluginDecoder) ReadFile(filename string) ([]byte, error) + func (d *FSPluginDecoder) Signature() (string, error) + func (d *FSPluginDecoder) Stat(filename string) (fs.FileInfo, error) + func (d *FSPluginDecoder) UniqueIdentity() (plugin_entities.PluginUniqueIdentifier, error) + func (d *FSPluginDecoder) Walk(fn func(filename string, dir string) error) error + type PluginDecoder interface + Assets func() (map[string][]byte, error) + CheckAssetsValid func() error + Checksum func() (string, error) + Close func() error + CreateTime func() (int64, error) + FileReader func(filename string) (io.ReadCloser, error) + Manifest func() (plugin_entities.PluginDeclaration, error) + Open func() error + ReadDir func(dirname string) ([]string, error) + ReadFile func(filename string) ([]byte, error) + Signature func() (string, error) + Stat func(filename string) (fs.FileInfo, error) + UniqueIdentity func() (plugin_entities.PluginUniqueIdentifier, error) + Walk func(fn func(filename string, dir string) error) error + type PluginDecoderHelper struct + func (p *PluginDecoderHelper) Assets(decoder PluginDecoder) (map[string][]byte, error) + func (p *PluginDecoderHelper) CheckAssetsValid(decoder PluginDecoder) error + func (p *PluginDecoderHelper) Checksum(decoder_instance PluginDecoder) (string, error) + func (p *PluginDecoderHelper) Manifest(decoder PluginDecoder) (plugin_entities.PluginDeclaration, error) + func (p *PluginDecoderHelper) UniqueIdentity(decoder PluginDecoder) (plugin_entities.PluginUniqueIdentifier, error) + type ZipPluginDecoder struct + func NewZipPluginDecoder(binary []byte) (*ZipPluginDecoder, error) + func NewZipPluginDecoderWithSizeLimit(binary []byte, maxSize int64) (*ZipPluginDecoder, error) + func (z *ZipPluginDecoder) Assets() (map[string][]byte, error) + func (z *ZipPluginDecoder) CheckAssetsValid() error + func (z *ZipPluginDecoder) Checksum() (string, error) + func (z *ZipPluginDecoder) Close() error + func (z *ZipPluginDecoder) CreateTime() (int64, error) + func (z *ZipPluginDecoder) ExtractTo(dst string) error + func (z *ZipPluginDecoder) FileReader(filename string) (io.ReadCloser, error) + func (z *ZipPluginDecoder) Manifest() (plugin_entities.PluginDeclaration, error) + func (z *ZipPluginDecoder) Open() error + func (z *ZipPluginDecoder) ReadDir(dirname string) ([]string, error) + func (z *ZipPluginDecoder) ReadFile(filename string) ([]byte, error) + func (z *ZipPluginDecoder) Signature() (string, error) + func (z *ZipPluginDecoder) Stat(filename string) (fs.FileInfo, error) + func (z *ZipPluginDecoder) UniqueIdentity() (plugin_entities.PluginUniqueIdentifier, error) + func (z *ZipPluginDecoder) Walk(fn func(filename string, dir string) error) error