]> git.immae.eu Git - github/fretlink/terraform-provider-statuscake.git/blobdiff - vendor/github.com/aws/aws-sdk-go/aws/context_background_1_5.go
Upgrade to 0.12
[github/fretlink/terraform-provider-statuscake.git] / vendor / github.com / aws / aws-sdk-go / aws / context_background_1_5.go
similarity index 59%
rename from vendor/github.com/aws/aws-sdk-go/aws/context_1_6.go
rename to vendor/github.com/aws/aws-sdk-go/aws/context_background_1_5.go
index 8fdda53033809a45dcf6449041b475b879266165..66c5945db15ea65ac07b4e9d9bf8445b3c919fab 100644 (file)
@@ -39,3 +39,18 @@ func (e *emptyCtx) String() string {
 var (
        backgroundCtx = new(emptyCtx)
 )
+
+// BackgroundContext returns a context that will never be canceled, has no
+// values, and no deadline. This context is used by the SDK to provide
+// backwards compatibility with non-context API operations and functionality.
+//
+// Go 1.6 and before:
+// This context function is equivalent to context.Background in the Go stdlib.
+//
+// Go 1.7 and later:
+// The context returned will be the value returned by context.Background()
+//
+// See https://golang.org/pkg/context for more information on Contexts.
+func BackgroundContext() Context {
+       return backgroundCtx
+}