mocks

package
v0.0.0-...-2e0ac8a Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Copyright 2018 Northern.tech AS

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataStore

type DataStore struct {
	mock.Mock
}

DataStore is an autogenerated mock type for the DataStore type

func (*DataStore) AddAuthSet

func (_m *DataStore) AddAuthSet(ctx context.Context, set model.AuthSet) error

AddAuthSet provides a mock function with given fields: ctx, set

func (*DataStore) AddDevice

func (_m *DataStore) AddDevice(ctx context.Context, d model.Device) error

AddDevice provides a mock function with given fields: ctx, d

func (*DataStore) AddToken

func (_m *DataStore) AddToken(ctx context.Context, t model.Token) error

AddToken provides a mock function with given fields: ctx, t

func (*DataStore) DeleteAuthSetForDevice

func (_m *DataStore) DeleteAuthSetForDevice(ctx context.Context, devId string, authId string) error

DeleteAuthSetForDevice provides a mock function with given fields: ctx, devId, authId

func (*DataStore) DeleteAuthSetsForDevice

func (_m *DataStore) DeleteAuthSetsForDevice(ctx context.Context, devid string) error

DeleteAuthSetsForDevice provides a mock function with given fields: ctx, devid

func (*DataStore) DeleteDevice

func (_m *DataStore) DeleteDevice(ctx context.Context, id string) error

DeleteDevice provides a mock function with given fields: ctx, id

func (*DataStore) DeleteToken

func (_m *DataStore) DeleteToken(ctx context.Context, jti string) error

DeleteToken provides a mock function with given fields: ctx, jti

func (*DataStore) DeleteTokenByDevId

func (_m *DataStore) DeleteTokenByDevId(ctx context.Context, dev_id string) error

DeleteTokenByDevId provides a mock function with given fields: ctx, dev_id

func (*DataStore) DeleteTokens

func (_m *DataStore) DeleteTokens(ctx context.Context) error

DeleteTokens provides a mock function with given fields: ctx

func (*DataStore) GetAuthSetById

func (_m *DataStore) GetAuthSetById(ctx context.Context, id string) (*model.AuthSet, error)

GetAuthSetById provides a mock function with given fields: ctx, id

func (*DataStore) GetAuthSetByIdDataHashKey

func (_m *DataStore) GetAuthSetByIdDataHashKey(ctx context.Context, idDataHash []byte, key string) (*model.AuthSet, error)

GetAuthSetByIdDataHashKey provides a mock function with given fields: ctx, idDataHash, key

func (*DataStore) GetAuthSets

func (_m *DataStore) GetAuthSets(ctx context.Context, skip int, limit int, filter store.AuthSetFilter) ([]model.DevAdmAuthSet, error)

GetAuthSets provides a mock function with given fields: ctx, skip, limit, filter

func (*DataStore) GetAuthSetsForDevice

func (_m *DataStore) GetAuthSetsForDevice(ctx context.Context, devid string) ([]model.AuthSet, error)

GetAuthSetsForDevice provides a mock function with given fields: ctx, devid

func (*DataStore) GetDevCountByStatus

func (_m *DataStore) GetDevCountByStatus(ctx context.Context, status string) (int, error)

GetDevCountByStatus provides a mock function with given fields: ctx, status

func (*DataStore) GetDeviceById

func (_m *DataStore) GetDeviceById(ctx context.Context, id string) (*model.Device, error)

GetDeviceById provides a mock function with given fields: ctx, id

func (*DataStore) GetDeviceByIdentityDataHash

func (_m *DataStore) GetDeviceByIdentityDataHash(ctx context.Context, idataHash []byte) (*model.Device, error)

GetDeviceByIdentityDataHash provides a mock function with given fields: ctx, idataHash

func (*DataStore) GetDeviceStatus

func (_m *DataStore) GetDeviceStatus(ctx context.Context, dev_id string) (string, error)

GetDeviceStatus provides a mock function with given fields: ctx, dev_id

func (*DataStore) GetDevices

func (_m *DataStore) GetDevices(ctx context.Context, skip uint, limit uint, filter store.DeviceFilter) ([]model.Device, error)

GetDevices provides a mock function with given fields: ctx, skip, limit, filter

func (*DataStore) GetLimit

func (_m *DataStore) GetLimit(ctx context.Context, name string) (*model.Limit, error)

GetLimit provides a mock function with given fields: ctx, name

func (*DataStore) GetToken

func (_m *DataStore) GetToken(ctx context.Context, jti string) (*model.Token, error)

GetToken provides a mock function with given fields: ctx, jti

func (*DataStore) MigrateTenant

func (_m *DataStore) MigrateTenant(ctx context.Context, version string, tenant string) error

MigrateTenant provides a mock function with given fields: ctx, version, tenant

func (*DataStore) PutLimit

func (_m *DataStore) PutLimit(ctx context.Context, lim model.Limit) error

PutLimit provides a mock function with given fields: ctx, lim

func (*DataStore) UpdateAuthSet

func (_m *DataStore) UpdateAuthSet(ctx context.Context, filter interface{}, mod model.AuthSetUpdate) error

UpdateAuthSet provides a mock function with given fields: ctx, filter, mod

func (*DataStore) UpdateDevice

func (_m *DataStore) UpdateDevice(ctx context.Context, d model.Device, up model.DeviceUpdate) error

UpdateDevice provides a mock function with given fields: ctx, d, up

func (*DataStore) WithAutomigrate

func (_m *DataStore) WithAutomigrate() store.DataStore

WithAutomigrate 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