Documentation ¶
Index ¶
- type AsyncPort
- type CredentialMS
- func (_m *CredentialMS) CreateCredential(ctx context.Context, actor string, emulator string, ...) error
- func (_m *CredentialMS) DeleteCredential(ctx context.Context, actor string, emulator string, ID string) error
- func (_m *CredentialMS) GetCredential(ctx context.Context, actor string, emulator string, ID string) (*types.Credential, error)
- func (_m *CredentialMS) ListCredentials(ctx context.Context, actor string, emulator string) ([]service.CredentialModel, error)
- func (_m *CredentialMS) ListCredentialsByTag(ctx context.Context, actor string, emulator string, tagName string) ([]types.Credential, error)
- func (_m *CredentialMS) TagCredential(ctx context.Context, actor string, emulator string, ID string, ...) error
- type IncomingEventPort
- type IncomingQueryPort
- type OpenStack
- func (_m *OpenStack) AuthenticationTest(ctx context.Context, credential types.Environment) error
- func (_m *OpenStack) CreateApplicationCredential(ctx context.Context, credential types.Credential, scope providers.ProjectScope, ...) (types.ApplicationCredential, error)
- func (_m *OpenStack) DeleteApplicationCredential(ctx context.Context, credential types.Credential, idOrName string) error
- func (_m *OpenStack) GetApplicationCredential(ctx context.Context, credential types.Credential, id string) (*providers.ApplicationCredential, error)
- func (_m *OpenStack) GetFlavor(ctx context.Context, credential types.Credential, id string, region string) (*providers.Flavor, error)
- func (_m *OpenStack) GetImage(ctx context.Context, credential types.Credential, id string, region string) (*providers.OpenStackImage, error)
- func (_m *OpenStack) GetProject(ctx context.Context, credential types.Credential, id string) (*providers.Project, error)
- func (_m *OpenStack) GetToken(ctx context.Context, credential types.Credential) (*providers.Token, error)
- func (_m *OpenStack) InspectCredential(ctx context.Context, credential types.Credential) (types.CredentialMetadata, error)
- func (_m *OpenStack) ListApplicationCredentials(ctx context.Context, credential types.Credential) ([]providers.ApplicationCredential, error)
- func (_m *OpenStack) ListCatalog(ctx context.Context, credential types.Credential) ([]providers.CatalogEntry, error)
- func (_m *OpenStack) ListFlavors(ctx context.Context, credential types.Credential, region string) ([]providers.Flavor, error)
- func (_m *OpenStack) ListImages(ctx context.Context, credential types.Credential, region string) ([]providers.OpenStackImage, error)
- func (_m *OpenStack) ListProjects(ctx context.Context, credential types.Credential) ([]providers.Project, error)
- func (_m *OpenStack) ListRecordset(ctx context.Context, credential types.Credential, zone string) ([]providers.DNSRecordset, error)
- func (_m *OpenStack) ListRegions(ctx context.Context, credential types.Credential) ([]providers.Region, error)
- func (_m *OpenStack) ListZone(ctx context.Context, credential types.Credential) ([]providers.DNSZone, error)
- type OutgoingEventPort
- type OutgoingEvents
- func (_m *OutgoingEvents) EventApplicationCredentialsCreateFailed(_a0 providers.CreateApplicationCredentialResponse)
- func (_m *OutgoingEvents) EventApplicationCredentialsCreated(_a0 providers.CreateApplicationCredentialResponse)
- func (_m *OutgoingEvents) EventApplicationCredentialsDeleteFailed(_a0 providers.DeleteApplicationCredentialResponse)
- func (_m *OutgoingEvents) EventApplicationCredentialsDeleted(_a0 providers.DeleteApplicationCredentialResponse)
- func (_m *OutgoingEvents) Nothing()
- type Port
- type ProviderMetadataMS
- type TimeSrc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AsyncPort ¶
AsyncPort is an autogenerated mock type for the AsyncPort type
func NewAsyncPort ¶
func NewAsyncPort(t mockConstructorTestingTNewAsyncPort) *AsyncPort
NewAsyncPort creates a new instance of AsyncPort. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*AsyncPort) Init ¶
func (_m *AsyncPort) Init(config types.Configuration)
Init provides a mock function with given fields: config
type CredentialMS ¶
CredentialMS is an autogenerated mock type for the CredentialMS type
func NewCredentialMS ¶
func NewCredentialMS(t interface { mock.TestingT Cleanup(func()) }) *CredentialMS
NewCredentialMS creates a new instance of CredentialMS. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*CredentialMS) CreateCredential ¶
func (_m *CredentialMS) CreateCredential(ctx context.Context, actor string, emulator string, cred service.CredentialModel) error
CreateCredential provides a mock function with given fields: ctx, actor, emulator, cred
func (*CredentialMS) DeleteCredential ¶
func (_m *CredentialMS) DeleteCredential(ctx context.Context, actor string, emulator string, ID string) error
DeleteCredential provides a mock function with given fields: ctx, actor, emulator, ID
func (*CredentialMS) GetCredential ¶
func (_m *CredentialMS) GetCredential(ctx context.Context, actor string, emulator string, ID string) (*types.Credential, error)
GetCredential provides a mock function with given fields: ctx, actor, emulator, ID
func (*CredentialMS) ListCredentials ¶
func (_m *CredentialMS) ListCredentials(ctx context.Context, actor string, emulator string) ([]service.CredentialModel, error)
ListCredentials provides a mock function with given fields: ctx, actor, emulator
func (*CredentialMS) ListCredentialsByTag ¶
func (_m *CredentialMS) ListCredentialsByTag(ctx context.Context, actor string, emulator string, tagName string) ([]types.Credential, error)
ListCredentialsByTag provides a mock function with given fields: ctx, actor, emulator, tagName
type IncomingEventPort ¶
IncomingEventPort is an autogenerated mock type for the IncomingEventPort type
func NewIncomingEventPort ¶
func NewIncomingEventPort(t mockConstructorTestingTNewIncomingEventPort) *IncomingEventPort
NewIncomingEventPort creates a new instance of IncomingEventPort. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*IncomingEventPort) Finalize ¶
func (_m *IncomingEventPort) Finalize()
Finalize provides a mock function with given fields:
func (*IncomingEventPort) Init ¶
func (_m *IncomingEventPort) Init(config types.Configuration)
Init provides a mock function with given fields: config
func (*IncomingEventPort) SetHandlers ¶
func (_m *IncomingEventPort) SetHandlers(_a0 []messaging.StreamingEventHandlerMapping)
SetHandlers provides a mock function with given fields: _a0
func (*IncomingEventPort) Start ¶
func (_m *IncomingEventPort) Start()
Start provides a mock function with given fields:
type IncomingQueryPort ¶
IncomingQueryPort is an autogenerated mock type for the IncomingQueryPort type
func NewIncomingQueryPort ¶
func NewIncomingQueryPort(t mockConstructorTestingTNewIncomingQueryPort) *IncomingQueryPort
NewIncomingQueryPort creates a new instance of IncomingQueryPort. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*IncomingQueryPort) Init ¶
func (_m *IncomingQueryPort) Init(config types.Configuration)
Init provides a mock function with given fields: config
func (*IncomingQueryPort) InitChannel ¶
func (_m *IncomingQueryPort) InitChannel(data chan types.CloudEventRequest)
InitChannel provides a mock function with given fields: data
func (*IncomingQueryPort) Start ¶
func (_m *IncomingQueryPort) Start()
Start provides a mock function with given fields:
type OpenStack ¶
OpenStack is an autogenerated mock type for the OpenStack type
func NewOpenStack ¶
NewOpenStack creates a new instance of OpenStack. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*OpenStack) AuthenticationTest ¶
AuthenticationTest provides a mock function with given fields: ctx, credential
func (*OpenStack) CreateApplicationCredential ¶
func (_m *OpenStack) CreateApplicationCredential(ctx context.Context, credential types.Credential, scope providers.ProjectScope, name string) (types.ApplicationCredential, error)
CreateApplicationCredential provides a mock function with given fields: ctx, credential, scope, name
func (*OpenStack) DeleteApplicationCredential ¶
func (_m *OpenStack) DeleteApplicationCredential(ctx context.Context, credential types.Credential, idOrName string) error
DeleteApplicationCredential provides a mock function with given fields: ctx, credential, idOrName
func (*OpenStack) GetApplicationCredential ¶
func (_m *OpenStack) GetApplicationCredential(ctx context.Context, credential types.Credential, id string) (*providers.ApplicationCredential, error)
GetApplicationCredential provides a mock function with given fields: ctx, credential, id
func (*OpenStack) GetFlavor ¶
func (_m *OpenStack) GetFlavor(ctx context.Context, credential types.Credential, id string, region string) (*providers.Flavor, error)
GetFlavor provides a mock function with given fields: ctx, credential, id, region
func (*OpenStack) GetImage ¶
func (_m *OpenStack) GetImage(ctx context.Context, credential types.Credential, id string, region string) (*providers.OpenStackImage, error)
GetImage provides a mock function with given fields: ctx, credential, id, region
func (*OpenStack) GetProject ¶
func (_m *OpenStack) GetProject(ctx context.Context, credential types.Credential, id string) (*providers.Project, error)
GetProject provides a mock function with given fields: ctx, credential, id
func (*OpenStack) GetToken ¶
func (_m *OpenStack) GetToken(ctx context.Context, credential types.Credential) (*providers.Token, error)
GetToken provides a mock function with given fields: ctx, credential
func (*OpenStack) InspectCredential ¶
func (_m *OpenStack) InspectCredential(ctx context.Context, credential types.Credential) (types.CredentialMetadata, error)
InspectCredential provides a mock function with given fields: ctx, credential
func (*OpenStack) ListApplicationCredentials ¶
func (_m *OpenStack) ListApplicationCredentials(ctx context.Context, credential types.Credential) ([]providers.ApplicationCredential, error)
ListApplicationCredentials provides a mock function with given fields: ctx, credential
func (*OpenStack) ListCatalog ¶
func (_m *OpenStack) ListCatalog(ctx context.Context, credential types.Credential) ([]providers.CatalogEntry, error)
ListCatalog provides a mock function with given fields: ctx, credential
func (*OpenStack) ListFlavors ¶
func (_m *OpenStack) ListFlavors(ctx context.Context, credential types.Credential, region string) ([]providers.Flavor, error)
ListFlavors provides a mock function with given fields: ctx, credential, region
func (*OpenStack) ListImages ¶
func (_m *OpenStack) ListImages(ctx context.Context, credential types.Credential, region string) ([]providers.OpenStackImage, error)
ListImages provides a mock function with given fields: ctx, credential, region
func (*OpenStack) ListProjects ¶
func (_m *OpenStack) ListProjects(ctx context.Context, credential types.Credential) ([]providers.Project, error)
ListProjects provides a mock function with given fields: ctx, credential
func (*OpenStack) ListRecordset ¶
func (_m *OpenStack) ListRecordset(ctx context.Context, credential types.Credential, zone string) ([]providers.DNSRecordset, error)
ListRecordset provides a mock function with given fields: ctx, credential, zone
func (*OpenStack) ListRegions ¶
func (_m *OpenStack) ListRegions(ctx context.Context, credential types.Credential) ([]providers.Region, error)
ListRegions provides a mock function with given fields: ctx, credential
type OutgoingEventPort ¶
OutgoingEventPort is an autogenerated mock type for the OutgoingEventPort type
func NewOutgoingEventPort ¶
func NewOutgoingEventPort(t mockConstructorTestingTNewOutgoingEventPort) *OutgoingEventPort
NewOutgoingEventPort creates a new instance of OutgoingEventPort. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type OutgoingEvents ¶
OutgoingEvents is an autogenerated mock type for the OutgoingEvents type
func NewOutgoingEvents ¶
func NewOutgoingEvents(t mockConstructorTestingTNewOutgoingEvents) *OutgoingEvents
NewOutgoingEvents creates a new instance of OutgoingEvents. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*OutgoingEvents) EventApplicationCredentialsCreateFailed ¶
func (_m *OutgoingEvents) EventApplicationCredentialsCreateFailed(_a0 providers.CreateApplicationCredentialResponse)
EventApplicationCredentialsCreateFailed provides a mock function with given fields: _a0
func (*OutgoingEvents) EventApplicationCredentialsCreated ¶
func (_m *OutgoingEvents) EventApplicationCredentialsCreated(_a0 providers.CreateApplicationCredentialResponse)
EventApplicationCredentialsCreated provides a mock function with given fields: _a0
func (*OutgoingEvents) EventApplicationCredentialsDeleteFailed ¶
func (_m *OutgoingEvents) EventApplicationCredentialsDeleteFailed(_a0 providers.DeleteApplicationCredentialResponse)
EventApplicationCredentialsDeleteFailed provides a mock function with given fields: _a0
func (*OutgoingEvents) EventApplicationCredentialsDeleted ¶
func (_m *OutgoingEvents) EventApplicationCredentialsDeleted(_a0 providers.DeleteApplicationCredentialResponse)
EventApplicationCredentialsDeleted provides a mock function with given fields: _a0
func (*OutgoingEvents) Nothing ¶
func (_m *OutgoingEvents) Nothing()
Nothing provides a mock function with given fields:
type Port ¶
Port is an autogenerated mock type for the Port type
func NewPort ¶
func NewPort(t mockConstructorTestingTNewPort) *Port
NewPort creates a new instance of Port. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Port) Init ¶
func (_m *Port) Init(config types.Configuration)
Init provides a mock function with given fields: config
type ProviderMetadataMS ¶
ProviderMetadataMS is an autogenerated mock type for the ProviderMetadataMS type
func NewProviderMetadataMS ¶
func NewProviderMetadataMS(t interface { mock.TestingT Cleanup(func()) }) *ProviderMetadataMS
NewProviderMetadataMS creates a new instance of ProviderMetadataMS. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ProviderMetadataMS) GetMetadata ¶
func (_m *ProviderMetadataMS) GetMetadata(ctx context.Context, actor string, emulator string, providerID common.ID) (map[string]interface{}, error)
GetMetadata provides a mock function with given fields: ctx, actor, emulator, providerID
func (*ProviderMetadataMS) ListOpenStackProvider ¶
func (_m *ProviderMetadataMS) ListOpenStackProvider(ctx context.Context, actor string, emulator string) ([]service.ProviderModel, error)
ListOpenStackProvider provides a mock function with given fields: ctx, actor, emulator
type TimeSrc ¶
TimeSrc is an autogenerated mock type for the TimeSrc type
func NewTimeSrc ¶
func NewTimeSrc(t mockConstructorTestingTNewTimeSrc) *TimeSrc
NewTimeSrc creates a new instance of TimeSrc. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.