mocks

package
v0.0.0-...-e28bd7b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AsyncPort

type AsyncPort struct {
	mock.Mock
}

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

func (*AsyncPort) Start

func (_m *AsyncPort) Start()

Start provides a mock function with given fields:

type CredentialMS

type CredentialMS struct {
	mock.Mock
}

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

func (*CredentialMS) TagCredential

func (_m *CredentialMS) TagCredential(ctx context.Context, actor string, emulator string, ID string, tags map[string]string) error

TagCredential provides a mock function with given fields: ctx, actor, emulator, ID, tags

type IncomingEventPort

type IncomingEventPort struct {
	mock.Mock
}

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

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

type IncomingQueryPort struct {
	mock.Mock
}

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

type OpenStack struct {
	mock.Mock
}

OpenStack is an autogenerated mock type for the OpenStack type

func NewOpenStack

func NewOpenStack(t interface {
	mock.TestingT
	Cleanup(func())
}) *OpenStack

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

func (_m *OpenStack) AuthenticationTest(ctx context.Context, credential types.Environment) error

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

func (*OpenStack) ListZone

func (_m *OpenStack) ListZone(ctx context.Context, credential types.Credential) ([]providers.DNSZone, error)

ListZone provides a mock function with given fields: ctx, credential

type OutgoingEventPort

type OutgoingEventPort struct {
	mock.Mock
}

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.

func (*OutgoingEventPort) Publish

func (_m *OutgoingEventPort) Publish(_a0 *event.Event) error

Publish provides a mock function with given fields: _a0

type OutgoingEvents

type OutgoingEvents struct {
	mock.Mock
}

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

type Port struct {
	mock.Mock
}

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

type ProviderMetadataMS struct {
	mock.Mock
}

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

type TimeSrc struct {
	mock.Mock
}

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.

func (*TimeSrc) Now

func (_m *TimeSrc) Now() time.Time

Now provides a mock function with given fields:

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL