Add a new generic container registry client via a new `container` package. Use this to create a command line utility as well as a new upload target for container registries. The code uses the github.com/containers/* project and packages to interact with container registires that is also used by skopeo, podman et al. One if the dependencies is `proglottis/gpgme` that is using cgo to bind libgpgme, so we have to add the corresponding devel package to the BuildRequires as well as installing it on CI. Checks will follow later via an integration test.
12 lines
274 B
Go
12 lines
274 B
Go
package metrics
|
|
|
|
// Unit represents the type or precision of a metric that is appended to
|
|
// the metrics fully qualified name
|
|
type Unit string
|
|
|
|
const (
|
|
Nanoseconds Unit = "nanoseconds"
|
|
Seconds Unit = "seconds"
|
|
Bytes Unit = "bytes"
|
|
Total Unit = "total"
|
|
)
|