github.com/kyma-project/kyma-environment-broker@v0.0.1/internal/middleware/export.go (about)

     1  package middleware
     2  
     3  import (
     4  	"context"
     5  
     6  	"github.com/kyma-project/kyma-environment-broker/internal"
     7  )
     8  
     9  func AddRegionToCtx(ctx context.Context, region string) context.Context {
    10  	return context.WithValue(ctx, requestRegionKey, region)
    11  }
    12  
    13  func AddProviderToCtx(ctx context.Context, provider internal.CloudProvider) context.Context {
    14  	return context.WithValue(ctx, requestProviderKey, provider)
    15  }