spk

package
v0.0.0-...-2040d2c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2024 License: MIT Imports: 14 Imported by: 0

README

SPK

将迅雷群晖套件的SPK文件放在这个目录

下载地址:
https://nas.xunlei.com
https://docs.qq.com/doc/DQVJpbEVGZXV0anNa

下载完改名如下

spk
├── nasxunlei-armv8.spk
└── nasxunlei-x86_64.spk

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Bytes []byte

Functions

func ExtractEmbedSpk

func ExtractEmbedSpk(ctx context.Context, dstDir string) error

ExtractEmbedSpk 从迅雷SPK中提取需要的文件

func ExtractSpk

func ExtractSpk(ctx context.Context, src io.Reader, dstDir string) (err error)

ExtractSpk 从迅雷SPK中提取需要的文件

func ExtractSpkFile

func ExtractSpkFile(ctx context.Context, srcPath string, dstDir string) error

ExtractSpkFile 从迅雷SPK中提取需要的文件

func ExtractSpkPackage

func ExtractSpkPackage(ctx context.Context, src io.Reader, dstDir string) error

ExtractSpkPackage 从迅雷SPK文件内的package.tgz中提取需要的文件

func TarExtract

func TarExtract(ctx context.Context, src io.Reader, walk TarWalkFunc, decoder ...TarDecoder) (err error)

func Xz

func Xz(src io.Reader) (io.ReadCloser, error)

Types

type TarDecoder

type TarDecoder func(io.Reader) (io.ReadCloser, error)

func (TarDecoder) Decode

func (d TarDecoder) Decode(r io.Reader) io.ReadCloser

type TarWalkFunc

type TarWalkFunc func(ctx context.Context, r io.Reader, h *tar.Header) (err error)

func (TarWalkFunc) Read

func (w TarWalkFunc) Read(ctx context.Context, r io.Reader, h *tar.Header) (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL