Documentation ¶
Index ¶
- func NewFakeHyperscalerProvider(client azure.Interface) azure.HyperscalerProvider
- func NewFakeHyperscalerProviderError() azure.HyperscalerProvider
- func NewFakeNamespaceAccessKeysNil() azure.Interface
- func NewFakeNamespaceClientCreationError() azure.Interface
- func NewFakeNamespaceClientListError() azure.Interface
- func NewFakeNamespaceResourceGroupError() azure.Interface
- type FakeHyperscalerProvider
- type FakeNamespaceClient
- func NewFakeNamespaceClientHappyPath() *FakeNamespaceClient
- func NewFakeNamespaceClientResourceGroupConnectionError() *FakeNamespaceClient
- func NewFakeNamespaceClientResourceGroupDeleteError() *FakeNamespaceClient
- func NewFakeNamespaceClientResourceGroupDoesNotExist() *FakeNamespaceClient
- func NewFakeNamespaceClientResourceGroupExists() *FakeNamespaceClient
- func NewFakeNamespaceClientResourceGroupInDeletionMode() *FakeNamespaceClient
- func NewFakeNamespaceClientResourceGroupPropertiesError() *FakeNamespaceClient
- func (nc *FakeNamespaceClient) CreateNamespace(ctx context.Context, azureCfg *azure.Config, groupName, namespace string, ...) (*eventhub.EHNamespace, error)
- func (nc *FakeNamespaceClient) CreateResourceGroup(ctx context.Context, config *azure.Config, name string, tags azure.Tags) (resources.Group, error)
- func (nc *FakeNamespaceClient) DeleteResourceGroup(context.Context, azure.Tags) (resources.GroupsDeleteFuture, error)
- func (nc *FakeNamespaceClient) GetEventhubAccessKeys(context.Context, string, string, string) (result eventhub.AccessKeys, err error)
- func (nc *FakeNamespaceClient) GetResourceGroup(context.Context, azure.Tags) (resources.Group, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFakeHyperscalerProvider ¶
func NewFakeHyperscalerProvider(client azure.Interface) azure.HyperscalerProvider
func NewFakeHyperscalerProviderError ¶
func NewFakeHyperscalerProviderError() azure.HyperscalerProvider
Types ¶
type FakeHyperscalerProvider ¶
func (*FakeHyperscalerProvider) GetClient ¶
func (ac *FakeHyperscalerProvider) GetClient(config *azure.Config, logger logrus.FieldLogger) (azure.Interface, error)
type FakeNamespaceClient ¶
type FakeNamespaceClient struct { PersistEventhubsNamespaceError error ResourceGroupError error AccessKeysError error AccessKeys *eventhub.AccessKeys Tags azure.Tags GetResourceGroupError error GetResourceGroupReturnValue resources.Group DeleteResourceGroupCalled bool DeleteResourceGroupError error }
/ A fake Client for Azure EventHubs Namespace handling
func NewFakeNamespaceClientHappyPath ¶
func NewFakeNamespaceClientHappyPath() *FakeNamespaceClient
func NewFakeNamespaceClientResourceGroupConnectionError ¶
func NewFakeNamespaceClientResourceGroupConnectionError() *FakeNamespaceClient
func NewFakeNamespaceClientResourceGroupDeleteError ¶
func NewFakeNamespaceClientResourceGroupDeleteError() *FakeNamespaceClient
func NewFakeNamespaceClientResourceGroupDoesNotExist ¶
func NewFakeNamespaceClientResourceGroupDoesNotExist() *FakeNamespaceClient
func NewFakeNamespaceClientResourceGroupExists ¶
func NewFakeNamespaceClientResourceGroupExists() *FakeNamespaceClient
func NewFakeNamespaceClientResourceGroupInDeletionMode ¶
func NewFakeNamespaceClientResourceGroupInDeletionMode() *FakeNamespaceClient
func NewFakeNamespaceClientResourceGroupPropertiesError ¶
func NewFakeNamespaceClientResourceGroupPropertiesError() *FakeNamespaceClient
func (*FakeNamespaceClient) CreateNamespace ¶
func (*FakeNamespaceClient) CreateResourceGroup ¶
func (*FakeNamespaceClient) DeleteResourceGroup ¶
func (nc *FakeNamespaceClient) DeleteResourceGroup(context.Context, azure.Tags) (resources.GroupsDeleteFuture, error)
func (*FakeNamespaceClient) GetEventhubAccessKeys ¶
func (nc *FakeNamespaceClient) GetEventhubAccessKeys(context.Context, string, string, string) (result eventhub.AccessKeys, err error)
func (*FakeNamespaceClient) GetResourceGroup ¶
Click to show internal directories.
Click to hide internal directories.