mocks

package
v0.0.0-...-04a9cd4 Latest Latest
Warning

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

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

Documentation

Overview

Copyright 2017 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) DeleteDeviceAuth

func (_m *DataStore) DeleteDeviceAuth(ctx context.Context, id model.AuthID) error

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

func (*DataStore) DeleteDeviceAuthByDevice

func (_m *DataStore) DeleteDeviceAuthByDevice(ctx context.Context, id model.DeviceID) error

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

func (*DataStore) GetDeviceAuth

func (_m *DataStore) GetDeviceAuth(ctx context.Context, id model.AuthID) (*model.DeviceAuth, error)

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

func (*DataStore) GetDeviceAuths

func (_m *DataStore) GetDeviceAuths(ctx context.Context, skip int, limit int, filter store.Filter) ([]model.DeviceAuth, error)

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

func (*DataStore) GetDeviceAuthsByIdentityData

func (_m *DataStore) GetDeviceAuthsByIdentityData(ctx context.Context, idata string) ([]model.DeviceAuth, error)

GetDeviceAuthsByIdentityData provides a mock function with given fields: ctx, idata

func (*DataStore) InsertDeviceAuth

func (_m *DataStore) InsertDeviceAuth(ctx context.Context, dev *model.DeviceAuth) error

InsertDeviceAuth provides a mock function with given fields: ctx, dev

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) PutDeviceAuth

func (_m *DataStore) PutDeviceAuth(ctx context.Context, dev *model.DeviceAuth) error

PutDeviceAuth provides a mock function with given fields: ctx, dev

func (*DataStore) UpdateDeviceAuth

func (_m *DataStore) UpdateDeviceAuth(ctx context.Context, dev *model.DeviceAuth) error

UpdateDeviceAuth provides a mock function with given fields: ctx, dev

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