mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-08 12:41:58 +00:00
Update to use api.Context
This commit is contained in:
@@ -20,7 +20,12 @@ import (
|
||||
"code.google.com/p/go.net/context"
|
||||
)
|
||||
|
||||
// NewContext instantiates a base context object for request flows
|
||||
func NewContext() context.Context {
|
||||
return context.Background()
|
||||
// Context carries values across API boundaries.
|
||||
type Context interface {
|
||||
Value(key interface{}) interface{}
|
||||
}
|
||||
|
||||
// NewContext instantiates a base context object for request flows
|
||||
func NewContext() Context {
|
||||
return context.TODO()
|
||||
}
|
||||
|
Reference in New Issue
Block a user