add AsyncClient methods to namespace interface to ease transition
@@ -17,8 +17,11 @@ package eventhubs
import (
"context"
+
"github.com/Azure/azure-sdk-for-go/services/eventhub/mgmt/2017-04-01/eventhub"
+ "github.com/Azure/azure-service-operator/pkg/helpers"
"github.com/Azure/go-autorest/autorest"
+ "k8s.io/apimachinery/pkg/runtime"
)
type EventHubNamespaceManager interface {
@@ -41,4 +44,7 @@ type EventHubNamespaceManager interface {
// namespaceName - the Namespace name
// location - azure region
CreateNamespaceAndWait(ctx context.Context, resourceGroupName string, namespaceName string, location string) (*eventhub.EHNamespace, error)
+ Ensure(context.Context, runtime.Object) (bool, error)
+ Delete(context.Context, runtime.Object) (bool, error)
+ Parents(runtime.Object) ([]helpers.KubeParent, error)
}
