pkgmanager

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct{}

Manager implements package management

func New

func New() *Manager

New creates a new package manager

func (*Manager) CalculateChecksum

func (m *Manager) CalculateChecksum(pkgPath string) (string, error)

CalculateChecksum calculates SHA-256 checksum of a package

func (*Manager) GetManifest

func (m *Manager) GetManifest(ctx context.Context, pkgPath string) (*types.Manifest, error)

GetManifest reads and parses a manifest from a package

func (*Manager) Pack

func (m *Manager) Pack(ctx context.Context, appDir string) (string, error)

Pack creates a tar.gz package from an application directory

func (*Manager) Unpack

func (m *Manager) Unpack(ctx context.Context, pkgPath string, destDir string) (*types.Manifest, error)

Unpack extracts a package to a destination directory

func (*Manager) Verify

func (m *Manager) Verify(ctx context.Context, pkgPath string, signature []byte) error

Verify verifies a package's integrity

Jump to

Keyboard shortcuts

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