mirror of
https://github.com/gogrlx/snack.git
synced 2026-04-02 05:08:42 -07:00
apt: VersionQuerier, Holder, Cleaner, FileOwner, RepoManager, KeyManager, NameNormalizer dpkg: FileOwner, NameNormalizer All new interfaces follow the existing pattern of exported methods on struct delegating to unexported platform-specific functions. Mutating operations use Lock/Unlock; read-only operations do not. Platform stubs in _other.go files return ErrUnsupportedPlatform. Compile-time interface checks added for all implemented interfaces.
20 lines
369 B
Go
20 lines
369 B
Go
//go:build !linux
|
|
|
|
package dpkg
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/gogrlx/snack"
|
|
)
|
|
|
|
func fileList(_ context.Context, _ string) ([]string, error) {
|
|
return nil, snack.ErrUnsupportedPlatform
|
|
}
|
|
|
|
func owner(_ context.Context, _ string) (string, error) {
|
|
return "", snack.ErrUnsupportedPlatform
|
|
}
|
|
|
|
// normalizeName and parseArch are in normalize.go (no build constraints).
|