From 3e71ccafc48bc87a054f4ce3a67ecf2df91932c5 Mon Sep 17 00:00:00 2001 From: Derek McGowan Date: Tue, 28 May 2024 14:41:35 -0700 Subject: [PATCH] Add type alias for event Envelope Signed-off-by: Derek McGowan --- api/services/events/v1/doc.go | 5 +++++ api/services/ttrpc/events/v1/doc.go | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/api/services/events/v1/doc.go b/api/services/events/v1/doc.go index b7f86da86..4470a663e 100644 --- a/api/services/events/v1/doc.go +++ b/api/services/events/v1/doc.go @@ -16,3 +16,8 @@ // Package events defines the event pushing and subscription service. package events + +import types "github.com/containerd/containerd/api/types" + +// Deprecated: Use [types.Envelope]. +type Envelope = types.Envelope diff --git a/api/services/ttrpc/events/v1/doc.go b/api/services/ttrpc/events/v1/doc.go index d3d9839d6..b374dde26 100644 --- a/api/services/ttrpc/events/v1/doc.go +++ b/api/services/ttrpc/events/v1/doc.go @@ -16,3 +16,8 @@ // Package events defines the ttrpc event service. package events + +import types "github.com/containerd/containerd/api/types" + +// Deprecated: Use [types.Envelope]. +type Envelope = types.Envelope