Skip to content
Permalink
Browse files

sysutils/docker-engine: Add FreeBSD stub

  • Loading branch information
decke committed Jun 24, 2019
1 parent 26d79d8 commit bb525e3784949406f8a68724e2687097d44c6c06
Showing with 30 additions and 0 deletions.
  1. +30 −0 sysutils/docker-engine/files/patch-libcontainerd_types_types__freebsd.go
@@ -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{}

0 comments on commit bb525e3

Please sign in to comment.
You can’t perform that action at this time.