Browse Source

sysutils/docker-engine: Add FreeBSD stub

master
Bernhard Fröhlich 2 months ago
parent
commit
bb525e3784
Signed by: Bernhard Froehlich <decke@bluelife.at> GPG Key ID: 4DD88C3F9F3B8333

+ 30
- 0
sysutils/docker-engine/files/patch-libcontainerd_types_types__freebsd.go View File

@@ -0,0 +1,30 @@
--- libcontainerd/types/types_freebsd.go.orig 2019-06-24 11:36:48 UTC
+++ libcontainerd/types/types_freebsd.go
@@ -0,0 +1,27 @@
+package types // import "github.com/docker/docker/libcontainerd/types"
+
+import (
+ "time"
+
+ "github.com/opencontainers/runtime-spec/specs-go"
+)
+
+// Summary is not used on FreeBSD
+type Summary struct{}
+
+// Stats holds metrics properties as returned by containerd
+type Stats struct {
+ Read time.Time
+ Metrics *cgroups.Metrics
+}
+
+// InterfaceToStats returns a stats object from the platform-specific interface.
+func InterfaceToStats(read time.Time, v interface{}) *Stats {
+ return &Stats{}
+}
+
+// Resources defines updatable container resource values. TODO: it must match containerd upcoming API
+type Resources specs.LinuxResources
+
+// Checkpoints contains the details of a checkpoint
+type Checkpoints struct{}

Loading…
Cancel
Save