bruxisma / go-apt-transport

Go library for writing apt transport methods

Repository from Github https://github.combruxisma/go-apt-transportRepository from Github https://github.combruxisma/go-apt-transport

Overview

Go Reference Coverage

This library provides a common set of operations for writing apt transport methods in golang. It does not handle the exact logic that covers every possible transport protocol, but does allow for an easy to use interface when communicating with apt or apt-get.

In addition to providing a simple interface for acquiring resources in custom transport methods, this API also exports all pieces necessary to recreate the common interfaces. This is done to provide users with more granular support over Message deserialization, Method acquisition, and introspection.

Usage

To add this as a go module simply do

$ go get occult.work/apt/transport@latest

NOTE: There is no occult.work/apt package.

Testing

To run unit tests, simply run go test ./.... All mocking, testing data, etc. is taken care of. For more "fun" output, users can use gotestfmt

$ go test -v ./... -json -cover ${PWD} 2>&1 | gotestfmt

About

Go library for writing apt transport methods

License:MIT License


Languages

Language:Go 100.0%