Skip to content

Commit 9df7a81

Browse files
authored
add WithContext to enable setting the context (#32)
1 parent 79fdbe2 commit 9df7a81

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

orchestrator/orchestrator.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ type Orchestrator interface {
5454
// If context is unavailable, nil will be returned.
5555
Context() context.Context
5656

57+
// WithContext returns a shallow copy of an Orchestrator with the provided
58+
// context.
59+
WithContext(ctx context.Context) Orchestrator
60+
5761
// ServiceExtensionAssets exposes any assets that may have been bundled with the
5862
// service extension.
5963
ServiceExtensionAssets() bundle.SEAssets

0 commit comments

Comments
 (0)