Skip to content

Commit 080d35b

Browse files
author
Maksym Pavlenko
authored
Merge pull request containerd#10279 from dmcgowan/api-type-alias-envelope
Add type alias for event Envelope
2 parents a5ba3b7 + 3e71cca commit 080d35b

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

api/services/events/v1/doc.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,8 @@
1616

1717
// Package events defines the event pushing and subscription service.
1818
package events
19+
20+
import types "github.com/containerd/containerd/api/types"
21+
22+
// Deprecated: Use [types.Envelope].
23+
type Envelope = types.Envelope

api/services/ttrpc/events/v1/doc.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,8 @@
1616

1717
// Package events defines the ttrpc event service.
1818
package events
19+
20+
import types "github.com/containerd/containerd/api/types"
21+
22+
// Deprecated: Use [types.Envelope].
23+
type Envelope = types.Envelope

0 commit comments

Comments
 (0)