apt-proxy

command module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

README

APT Proxy

Small and Reliable APT packages cache tool, supports both Ubuntu and Debian.

You can safely use it instead of apt-cacher-ng.

(WIP) Usage

  • Binaries
  • Docker

Development

coverage:

# go test -cover ./...

?   	github.com/soulteary/apt-proxy	[no test files]
ok  	github.com/soulteary/apt-proxy/cli	2.492s	coverage: 68.4% of statements
ok  	github.com/soulteary/apt-proxy/linux	7.420s	coverage: 76.7% of statements
ok  	github.com/soulteary/apt-proxy/pkgs/httpcache	2.575s	coverage: 82.7% of statements
?   	github.com/soulteary/apt-proxy/pkgs/httplog	[no test files]
ok  	github.com/soulteary/apt-proxy/pkgs/stream.v1	1.238s	coverage: 100.0% of statements
ok  	github.com/soulteary/apt-proxy/pkgs/vfs	2.255s	coverage: 59.4% of statements
?   	github.com/soulteary/apt-proxy/proxy	[no test files]

View coverage report:

go test -coverprofile=coverage.out ./...
go tool cover -html=coverage.out

# go test -coverprofile=coverage.out ./...
PASS
coverage: 86.7% of statements
ok  	github.com/soulteary/apt-proxy	0.485s

# go tool cover -html=coverage.out
(WIP) Development
go run apt-proxy.go

Ubuntu / Debian Debugging

http_proxy=http://192.168.33.1:3142 apt-get -o Debug::pkgProblemResolver=true -o Debug::Acquire::http=true update
http_proxy=http://192.168.33.1:3142 apt-get -o Debug::pkgProblemResolver=true -o Debug::Acquire::http=true install apache2

Licenses, contains dependent software

This project is under the Apache License 2.0, and base on those software (or codebase).

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkgs
stream.v1
Package stream provides a way to read and write to a synchronous buffered pipe, with multiple reader support.
Package stream provides a way to read and write to a synchronous buffered pipe, with multiple reader support.
vfs
Package vfs implements Virtual File Systems with read-write support.
Package vfs implements Virtual File Systems with read-write support.

Jump to

Keyboard shortcuts

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