Skip to content

Commit 28f36cf

Browse files
authored
Add context. (#29)
1 parent 1352905 commit 28f36cf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

orchestrator/orchestrator.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package orchestrator
22

33
import (
4+
"context"
5+
46
"github.com/strata-io/service-extension/app"
57
"github.com/strata-io/service-extension/cache"
68
"github.com/strata-io/service-extension/idfabric"
@@ -45,4 +47,9 @@ type Orchestrator interface {
4547

4648
// App gets the App associated with the Service Extension in use.
4749
App() (app.App, error)
50+
51+
// Context gets the context associated with the Service Extension in use.
52+
// This is an experimental feature and may not be available in all Service Extensions.
53+
// If context is unavailable, nil will be returned.
54+
Context() context.Context
4855
}

0 commit comments

Comments
 (0)