Philip Dubé
522934d5cf
Replace strings.SplitN with strings.Cut
...
Cut is a cleaner & more performant api relative to SplitN(_, _, 2) added in go 1.18
Previously applied this refactoring to buildah:
https://github.com/containers/buildah/pull/5239
Signed-off-by: Philip Dubé <philip@peerdb.io >
2024-01-11 13:50:15 +00:00
Oleksandr Redko
2a2d0b0e18
chore: delete obsolete // +build lines
...
Signed-off-by: Oleksandr Redko <Oleksandr_Redko@epam.com >
2024-01-04 11:53:38 +02:00
Doug Rabson
3279342ffe
pkg/rctl: Remove unused cgo dependency
...
The cross build targets build without cgo.
[NO NEW TESTS NEEDED]
Signed-off-by: Doug Rabson <dfr@rabson.org >
2022-10-31 15:13:48 +00:00
Doug Rabson
1e6da11155
pkg/rctl: Add a simple FreeBSD RCTL library
...
Initially just supporting just rctl_get_racct for
(*Container).GetContainerStats.
[NO NEW TESTS NEEDED] we are not running any FreeBSD tests in CI
Signed-off-by: Doug Rabson <dfr@rabson.org >
2022-09-14 08:29:26 +01:00