mocks

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SDK

type SDK struct {
	mock.Mock
}

SDK is an autogenerated mock type for the SDK type

func NewSDK

func NewSDK(t interface {
	mock.TestingT
	Cleanup(func())
}) *SDK

NewSDK creates a new instance of SDK. 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 (*SDK) AcceptInvitation

func (_m *SDK) AcceptInvitation(domainID string, token string) error

AcceptInvitation provides a mock function with given fields: domainID, token

func (*SDK) AddBootstrap

func (_m *SDK) AddBootstrap(cfg sdk.BootstrapConfig, token string) (string, errors.SDKError)

AddBootstrap provides a mock function with given fields: cfg, token

func (*SDK) AddUserGroupToChannel

func (_m *SDK) AddUserGroupToChannel(channelID string, req sdk.UserGroupsRequest, token string) errors.SDKError

AddUserGroupToChannel provides a mock function with given fields: channelID, req, token

func (*SDK) AddUserToChannel

func (_m *SDK) AddUserToChannel(channelID string, req sdk.UsersRelationRequest, token string) errors.SDKError

AddUserToChannel provides a mock function with given fields: channelID, req, token

func (*SDK) AddUserToDomain

func (_m *SDK) AddUserToDomain(domainID string, req sdk.UsersRelationRequest, token string) errors.SDKError

AddUserToDomain provides a mock function with given fields: domainID, req, token

func (*SDK) AddUserToGroup

func (_m *SDK) AddUserToGroup(groupID string, req sdk.UsersRelationRequest, token string) errors.SDKError

AddUserToGroup provides a mock function with given fields: groupID, req, token

func (*SDK) Bootstrap

func (_m *SDK) Bootstrap(externalID string, externalKey string) (sdk.BootstrapConfig, errors.SDKError)

Bootstrap provides a mock function with given fields: externalID, externalKey

func (*SDK) BootstrapSecure

func (_m *SDK) BootstrapSecure(externalID string, externalKey string) (sdk.BootstrapConfig, errors.SDKError)

BootstrapSecure provides a mock function with given fields: externalID, externalKey

func (*SDK) Bootstraps

func (_m *SDK) Bootstraps(pm sdk.PageMetadata, token string) (sdk.BootstrapPage, errors.SDKError)

Bootstraps provides a mock function with given fields: pm, token

func (*SDK) Channel

func (_m *SDK) Channel(id string, token string) (sdk.Channel, errors.SDKError)

Channel provides a mock function with given fields: id, token

func (*SDK) ChannelPermissions

func (_m *SDK) ChannelPermissions(id string, token string) (sdk.Channel, errors.SDKError)

ChannelPermissions provides a mock function with given fields: id, token

func (*SDK) Channels

func (_m *SDK) Channels(pm sdk.PageMetadata, token string) (sdk.ChannelsPage, errors.SDKError)

Channels provides a mock function with given fields: pm, token

func (*SDK) ChannelsByThing

func (_m *SDK) ChannelsByThing(thingID string, pm sdk.PageMetadata, token string) (sdk.ChannelsPage, errors.SDKError)

ChannelsByThing provides a mock function with given fields: thingID, pm, token

func (*SDK) Children

func (_m *SDK) Children(id string, pm sdk.PageMetadata, token string) (sdk.GroupsPage, errors.SDKError)

Children provides a mock function with given fields: id, pm, token

func (*SDK) Connect

func (_m *SDK) Connect(conns sdk.Connection, token string) errors.SDKError

Connect provides a mock function with given fields: conns, token

func (*SDK) ConnectThing

func (_m *SDK) ConnectThing(thingID string, chanID string, token string) errors.SDKError

ConnectThing provides a mock function with given fields: thingID, chanID, token

func (*SDK) CreateChannel

func (_m *SDK) CreateChannel(channel sdk.Channel, token string) (sdk.Channel, errors.SDKError)

CreateChannel provides a mock function with given fields: channel, token

func (*SDK) CreateChannels

func (_m *SDK) CreateChannels(channels []sdk.Channel, token string) ([]sdk.Channel, errors.SDKError)

CreateChannels provides a mock function with given fields: channels, token

func (*SDK) CreateDomain

func (_m *SDK) CreateDomain(d sdk.Domain, token string) (sdk.Domain, errors.SDKError)

CreateDomain provides a mock function with given fields: d, token

func (*SDK) CreateGroup

func (_m *SDK) CreateGroup(group sdk.Group, token string) (sdk.Group, errors.SDKError)

CreateGroup provides a mock function with given fields: group, token

func (*SDK) CreateSubscription

func (_m *SDK) CreateSubscription(topic string, contact string, token string) (string, errors.SDKError)

CreateSubscription provides a mock function with given fields: topic, contact, token

func (*SDK) CreateThing

func (_m *SDK) CreateThing(thing sdk.Thing, token string) (sdk.Thing, errors.SDKError)

CreateThing provides a mock function with given fields: thing, token

func (*SDK) CreateThings

func (_m *SDK) CreateThings(things []sdk.Thing, token string) ([]sdk.Thing, errors.SDKError)

CreateThings provides a mock function with given fields: things, token

func (*SDK) CreateToken

func (_m *SDK) CreateToken(lt sdk.Login) (sdk.Token, errors.SDKError)

CreateToken provides a mock function with given fields: lt

func (*SDK) CreateUser

func (_m *SDK) CreateUser(user sdk.User, token string) (sdk.User, errors.SDKError)

CreateUser provides a mock function with given fields: user, token

func (*SDK) DeleteChannel

func (_m *SDK) DeleteChannel(id string, token string) errors.SDKError

DeleteChannel provides a mock function with given fields: id, token

func (*SDK) DeleteGroup

func (_m *SDK) DeleteGroup(id string, token string) errors.SDKError

DeleteGroup provides a mock function with given fields: id, token

func (*SDK) DeleteInvitation

func (_m *SDK) DeleteInvitation(userID string, domainID string, token string) error

DeleteInvitation provides a mock function with given fields: userID, domainID, token

func (*SDK) DeleteSubscription

func (_m *SDK) DeleteSubscription(id string, token string) errors.SDKError

DeleteSubscription provides a mock function with given fields: id, token

func (*SDK) DeleteThing

func (_m *SDK) DeleteThing(id string, token string) errors.SDKError

DeleteThing provides a mock function with given fields: id, token

func (*SDK) DisableChannel

func (_m *SDK) DisableChannel(id string, token string) (sdk.Channel, errors.SDKError)

DisableChannel provides a mock function with given fields: id, token

func (*SDK) DisableDomain

func (_m *SDK) DisableDomain(domainID string, token string) errors.SDKError

DisableDomain provides a mock function with given fields: domainID, token

func (*SDK) DisableGroup

func (_m *SDK) DisableGroup(id string, token string) (sdk.Group, errors.SDKError)

DisableGroup provides a mock function with given fields: id, token

func (*SDK) DisableThing

func (_m *SDK) DisableThing(id string, token string) (sdk.Thing, errors.SDKError)

DisableThing provides a mock function with given fields: id, token

func (*SDK) DisableUser

func (_m *SDK) DisableUser(id string, token string) (sdk.User, errors.SDKError)

DisableUser provides a mock function with given fields: id, token

func (*SDK) Disconnect

func (_m *SDK) Disconnect(connIDs sdk.Connection, token string) errors.SDKError

Disconnect provides a mock function with given fields: connIDs, token

func (*SDK) DisconnectThing

func (_m *SDK) DisconnectThing(thingID string, chanID string, token string) errors.SDKError

DisconnectThing provides a mock function with given fields: thingID, chanID, token

func (*SDK) Domain

func (_m *SDK) Domain(domainID string, token string) (sdk.Domain, errors.SDKError)

Domain provides a mock function with given fields: domainID, token

func (*SDK) DomainPermissions

func (_m *SDK) DomainPermissions(domainID string, token string) (sdk.Domain, errors.SDKError)

DomainPermissions provides a mock function with given fields: domainID, token

func (*SDK) Domains

func (_m *SDK) Domains(pm sdk.PageMetadata, token string) (sdk.DomainsPage, errors.SDKError)

Domains provides a mock function with given fields: pm, token

func (*SDK) EnableChannel

func (_m *SDK) EnableChannel(id string, token string) (sdk.Channel, errors.SDKError)

EnableChannel provides a mock function with given fields: id, token

func (*SDK) EnableDomain

func (_m *SDK) EnableDomain(domainID string, token string) errors.SDKError

EnableDomain provides a mock function with given fields: domainID, token

func (*SDK) EnableGroup

func (_m *SDK) EnableGroup(id string, token string) (sdk.Group, errors.SDKError)

EnableGroup provides a mock function with given fields: id, token

func (*SDK) EnableThing

func (_m *SDK) EnableThing(id string, token string) (sdk.Thing, errors.SDKError)

EnableThing provides a mock function with given fields: id, token

func (*SDK) EnableUser

func (_m *SDK) EnableUser(id string, token string) (sdk.User, errors.SDKError)

EnableUser provides a mock function with given fields: id, token

func (*SDK) Group

func (_m *SDK) Group(id string, token string) (sdk.Group, errors.SDKError)

Group provides a mock function with given fields: id, token

func (*SDK) GroupPermissions

func (_m *SDK) GroupPermissions(id string, token string) (sdk.Group, errors.SDKError)

GroupPermissions provides a mock function with given fields: id, token

func (*SDK) Groups

func (_m *SDK) Groups(pm sdk.PageMetadata, token string) (sdk.GroupsPage, errors.SDKError)

Groups provides a mock function with given fields: pm, token

func (*SDK) Health

func (_m *SDK) Health(service string) (sdk.HealthInfo, errors.SDKError)

Health provides a mock function with given fields: service

func (*SDK) IdentifyThing

func (_m *SDK) IdentifyThing(key string) (string, errors.SDKError)

IdentifyThing provides a mock function with given fields: key

func (*SDK) Invitation

func (_m *SDK) Invitation(userID string, domainID string, token string) (sdk.Invitation, error)

Invitation provides a mock function with given fields: userID, domainID, token

func (*SDK) Invitations

func (_m *SDK) Invitations(pm sdk.PageMetadata, token string) (sdk.InvitationPage, error)

Invitations provides a mock function with given fields: pm, token

func (*SDK) IssueCert

func (_m *SDK) IssueCert(thingID string, valid string, token string) (sdk.Cert, errors.SDKError)

IssueCert provides a mock function with given fields: thingID, valid, token

func (*SDK) ListChannelUserGroups

func (_m *SDK) ListChannelUserGroups(channelID string, pm sdk.PageMetadata, token string) (sdk.GroupsPage, errors.SDKError)

ListChannelUserGroups provides a mock function with given fields: channelID, pm, token

func (*SDK) ListChannelUsers

func (_m *SDK) ListChannelUsers(channelID string, pm sdk.PageMetadata, token string) (sdk.UsersPage, errors.SDKError)

ListChannelUsers provides a mock function with given fields: channelID, pm, token

func (*SDK) ListDomainUsers

func (_m *SDK) ListDomainUsers(domainID string, pm sdk.PageMetadata, token string) (sdk.UsersPage, errors.SDKError)

ListDomainUsers provides a mock function with given fields: domainID, pm, token

func (*SDK) ListGroupChannels

func (_m *SDK) ListGroupChannels(groupID string, pm sdk.PageMetadata, token string) (sdk.GroupsPage, errors.SDKError)

ListGroupChannels provides a mock function with given fields: groupID, pm, token

func (*SDK) ListGroupUsers

func (_m *SDK) ListGroupUsers(groupID string, pm sdk.PageMetadata, token string) (sdk.UsersPage, errors.SDKError)

ListGroupUsers provides a mock function with given fields: groupID, pm, token

func (*SDK) ListSubscriptions

func (_m *SDK) ListSubscriptions(pm sdk.PageMetadata, token string) (sdk.SubscriptionPage, errors.SDKError)

ListSubscriptions provides a mock function with given fields: pm, token

func (*SDK) ListThingUsers

func (_m *SDK) ListThingUsers(thingID string, pm sdk.PageMetadata, token string) (sdk.UsersPage, errors.SDKError)

ListThingUsers provides a mock function with given fields: thingID, pm, token

func (*SDK) ListUserChannels

func (_m *SDK) ListUserChannels(userID string, pm sdk.PageMetadata, token string) (sdk.ChannelsPage, errors.SDKError)

ListUserChannels provides a mock function with given fields: userID, pm, token

func (*SDK) ListUserDomains

func (_m *SDK) ListUserDomains(userID string, pm sdk.PageMetadata, token string) (sdk.DomainsPage, errors.SDKError)

ListUserDomains provides a mock function with given fields: userID, pm, token

func (*SDK) ListUserGroups

func (_m *SDK) ListUserGroups(userID string, pm sdk.PageMetadata, token string) (sdk.GroupsPage, errors.SDKError)

ListUserGroups provides a mock function with given fields: userID, pm, token

func (*SDK) ListUserThings

func (_m *SDK) ListUserThings(userID string, pm sdk.PageMetadata, token string) (sdk.ThingsPage, errors.SDKError)

ListUserThings provides a mock function with given fields: userID, pm, token

func (*SDK) Parents

func (_m *SDK) Parents(id string, pm sdk.PageMetadata, token string) (sdk.GroupsPage, errors.SDKError)

Parents provides a mock function with given fields: id, pm, token

func (*SDK) ReadMessages

func (_m *SDK) ReadMessages(pm sdk.PageMetadata, chanID string, token string) (sdk.MessagesPage, errors.SDKError)

ReadMessages provides a mock function with given fields: pm, chanID, token

func (*SDK) RefreshToken

func (_m *SDK) RefreshToken(lt sdk.Login, token string) (sdk.Token, errors.SDKError)

RefreshToken provides a mock function with given fields: lt, token

func (*SDK) RemoveBootstrap

func (_m *SDK) RemoveBootstrap(id string, token string) errors.SDKError

RemoveBootstrap provides a mock function with given fields: id, token

func (*SDK) RemoveUserFromChannel

func (_m *SDK) RemoveUserFromChannel(channelID string, req sdk.UsersRelationRequest, token string) errors.SDKError

RemoveUserFromChannel provides a mock function with given fields: channelID, req, token

func (*SDK) RemoveUserFromDomain

func (_m *SDK) RemoveUserFromDomain(domainID string, req sdk.UsersRelationRequest, token string) errors.SDKError

RemoveUserFromDomain provides a mock function with given fields: domainID, req, token

func (*SDK) RemoveUserFromGroup

func (_m *SDK) RemoveUserFromGroup(groupID string, req sdk.UsersRelationRequest, token string) errors.SDKError

RemoveUserFromGroup provides a mock function with given fields: groupID, req, token

func (*SDK) RemoveUserGroupFromChannel

func (_m *SDK) RemoveUserGroupFromChannel(channelID string, req sdk.UserGroupsRequest, token string) errors.SDKError

RemoveUserGroupFromChannel provides a mock function with given fields: channelID, req, token

func (*SDK) ResetPassword

func (_m *SDK) ResetPassword(password string, confPass string, token string) errors.SDKError

ResetPassword provides a mock function with given fields: password, confPass, token

func (*SDK) ResetPasswordRequest

func (_m *SDK) ResetPasswordRequest(email string) errors.SDKError

ResetPasswordRequest provides a mock function with given fields: email

func (*SDK) RevokeCert

func (_m *SDK) RevokeCert(thingID string, token string) (time.Time, errors.SDKError)

RevokeCert provides a mock function with given fields: thingID, token

func (*SDK) SendInvitation

func (_m *SDK) SendInvitation(invitation sdk.Invitation, token string) error

SendInvitation provides a mock function with given fields: invitation, token

func (*SDK) SendMessage

func (_m *SDK) SendMessage(chanID string, msg string, key string) errors.SDKError

SendMessage provides a mock function with given fields: chanID, msg, key

func (*SDK) SetContentType

func (_m *SDK) SetContentType(ct sdk.ContentType) errors.SDKError

SetContentType provides a mock function with given fields: ct

func (*SDK) ShareThing

func (_m *SDK) ShareThing(thingID string, req sdk.UsersRelationRequest, token string) errors.SDKError

ShareThing provides a mock function with given fields: thingID, req, token

func (*SDK) Thing

func (_m *SDK) Thing(id string, token string) (sdk.Thing, errors.SDKError)

Thing provides a mock function with given fields: id, token

func (*SDK) ThingPermissions

func (_m *SDK) ThingPermissions(id string, token string) (sdk.Thing, errors.SDKError)

ThingPermissions provides a mock function with given fields: id, token

func (*SDK) Things

func (_m *SDK) Things(pm sdk.PageMetadata, token string) (sdk.ThingsPage, errors.SDKError)

Things provides a mock function with given fields: pm, token

func (*SDK) ThingsByChannel

func (_m *SDK) ThingsByChannel(chanID string, pm sdk.PageMetadata, token string) (sdk.ThingsPage, errors.SDKError)

ThingsByChannel provides a mock function with given fields: chanID, pm, token

func (*SDK) UnshareThing

func (_m *SDK) UnshareThing(thingID string, req sdk.UsersRelationRequest, token string) errors.SDKError

UnshareThing provides a mock function with given fields: thingID, req, token

func (*SDK) UpdateBootstrap

func (_m *SDK) UpdateBootstrap(cfg sdk.BootstrapConfig, token string) errors.SDKError

UpdateBootstrap provides a mock function with given fields: cfg, token

func (*SDK) UpdateBootstrapCerts

func (_m *SDK) UpdateBootstrapCerts(id string, clientCert string, clientKey string, ca string, token string) (sdk.BootstrapConfig, errors.SDKError)

UpdateBootstrapCerts provides a mock function with given fields: id, clientCert, clientKey, ca, token

func (*SDK) UpdateBootstrapConnection

func (_m *SDK) UpdateBootstrapConnection(id string, channels []string, token string) errors.SDKError

UpdateBootstrapConnection provides a mock function with given fields: id, channels, token

func (*SDK) UpdateChannel

func (_m *SDK) UpdateChannel(channel sdk.Channel, token string) (sdk.Channel, errors.SDKError)

UpdateChannel provides a mock function with given fields: channel, token

func (*SDK) UpdateDomain

func (_m *SDK) UpdateDomain(d sdk.Domain, token string) (sdk.Domain, errors.SDKError)

UpdateDomain provides a mock function with given fields: d, token

func (*SDK) UpdateGroup

func (_m *SDK) UpdateGroup(group sdk.Group, token string) (sdk.Group, errors.SDKError)

UpdateGroup provides a mock function with given fields: group, token

func (*SDK) UpdatePassword

func (_m *SDK) UpdatePassword(oldPass string, newPass string, token string) (sdk.User, errors.SDKError)

UpdatePassword provides a mock function with given fields: oldPass, newPass, token

func (*SDK) UpdateThing

func (_m *SDK) UpdateThing(thing sdk.Thing, token string) (sdk.Thing, errors.SDKError)

UpdateThing provides a mock function with given fields: thing, token

func (*SDK) UpdateThingSecret

func (_m *SDK) UpdateThingSecret(id string, secret string, token string) (sdk.Thing, errors.SDKError)

UpdateThingSecret provides a mock function with given fields: id, secret, token

func (*SDK) UpdateThingTags

func (_m *SDK) UpdateThingTags(thing sdk.Thing, token string) (sdk.Thing, errors.SDKError)

UpdateThingTags provides a mock function with given fields: thing, token

func (*SDK) UpdateUser

func (_m *SDK) UpdateUser(user sdk.User, token string) (sdk.User, errors.SDKError)

UpdateUser provides a mock function with given fields: user, token

func (*SDK) UpdateUserIdentity

func (_m *SDK) UpdateUserIdentity(user sdk.User, token string) (sdk.User, errors.SDKError)

UpdateUserIdentity provides a mock function with given fields: user, token

func (*SDK) UpdateUserRole

func (_m *SDK) UpdateUserRole(user sdk.User, token string) (sdk.User, errors.SDKError)

UpdateUserRole provides a mock function with given fields: user, token

func (*SDK) UpdateUserTags

func (_m *SDK) UpdateUserTags(user sdk.User, token string) (sdk.User, errors.SDKError)

UpdateUserTags provides a mock function with given fields: user, token

func (*SDK) User

func (_m *SDK) User(id string, token string) (sdk.User, errors.SDKError)

User provides a mock function with given fields: id, token

func (*SDK) UserProfile

func (_m *SDK) UserProfile(token string) (sdk.User, errors.SDKError)

UserProfile provides a mock function with given fields: token

func (*SDK) Users

func (_m *SDK) Users(pm sdk.PageMetadata, token string) (sdk.UsersPage, errors.SDKError)

Users provides a mock function with given fields: pm, token

func (*SDK) ViewBootstrap

func (_m *SDK) ViewBootstrap(id string, token string) (sdk.BootstrapConfig, errors.SDKError)

ViewBootstrap provides a mock function with given fields: id, token

func (*SDK) ViewCert

func (_m *SDK) ViewCert(certID string, token string) (sdk.Cert, errors.SDKError)

ViewCert provides a mock function with given fields: certID, token

func (*SDK) ViewCertByThing

func (_m *SDK) ViewCertByThing(thingID string, token string) (sdk.CertSerials, errors.SDKError)

ViewCertByThing provides a mock function with given fields: thingID, token

func (*SDK) ViewSubscription

func (_m *SDK) ViewSubscription(id string, token string) (sdk.Subscription, errors.SDKError)

ViewSubscription provides a mock function with given fields: id, token

func (*SDK) Whitelist

func (_m *SDK) Whitelist(cfg sdk.BootstrapConfig, token string) errors.SDKError

Whitelist provides a mock function with given fields: cfg, token

Jump to

Keyboard shortcuts

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