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 App

type App struct {
	mock.Mock
}

App is an autogenerated mock type for the App type

func (*App) AcceptDeviceAuth

func (_m *App) AcceptDeviceAuth(ctx context.Context, dev_id string, auth_id string) error

AcceptDeviceAuth provides a mock function with given fields: ctx, dev_id, auth_id

func (*App) DecommissionDevice

func (_m *App) DecommissionDevice(ctx context.Context, dev_id string) error

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

func (*App) DeleteAuthSet

func (_m *App) DeleteAuthSet(ctx context.Context, dev_id string, auth_id string) error

DeleteAuthSet provides a mock function with given fields: ctx, dev_id, auth_id

func (*App) DeleteTokens

func (_m *App) DeleteTokens(ctx context.Context, tenant_id string, device_id string) error

DeleteTokens provides a mock function with given fields: ctx, tenant_id, device_id

func (*App) GetDevCountByStatus

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

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

func (*App) GetDevice

func (_m *App) GetDevice(ctx context.Context, dev_id string) (*model.Device, error)

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

func (*App) GetDeviceToken

func (_m *App) GetDeviceToken(ctx context.Context, dev_id string) (*model.Token, error)

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

func (*App) GetDevices

func (_m *App) 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 (*App) GetLimit

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

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

func (*App) GetTenantDeviceStatus

func (_m *App) GetTenantDeviceStatus(ctx context.Context, tenantId string, deviceId string) (*model.Status, error)

GetTenantDeviceStatus provides a mock function with given fields: ctx, tenantId, deviceId

func (*App) GetTenantLimit

func (_m *App) GetTenantLimit(ctx context.Context, name string, tenant_id string) (*model.Limit, error)

GetTenantLimit provides a mock function with given fields: ctx, name, tenant_id

func (*App) PreauthorizeDevice

func (_m *App) PreauthorizeDevice(ctx context.Context, req *model.PreAuthReq) error

PreauthorizeDevice provides a mock function with given fields: ctx, req

func (*App) ProvisionTenant

func (_m *App) ProvisionTenant(ctx context.Context, tenant_id string) error

ProvisionTenant provides a mock function with given fields: ctx, tenant_id

func (*App) RejectDeviceAuth

func (_m *App) RejectDeviceAuth(ctx context.Context, dev_id string, auth_id string) error

RejectDeviceAuth provides a mock function with given fields: ctx, dev_id, auth_id

func (*App) ResetDeviceAuth

func (_m *App) ResetDeviceAuth(ctx context.Context, dev_id string, auth_id string) error

ResetDeviceAuth provides a mock function with given fields: ctx, dev_id, auth_id

func (*App) RevokeToken

func (_m *App) RevokeToken(ctx context.Context, token_id string) error

RevokeToken provides a mock function with given fields: ctx, token_id

func (*App) SetTenantLimit

func (_m *App) SetTenantLimit(ctx context.Context, tenant_id string, limit model.Limit) error

SetTenantLimit provides a mock function with given fields: ctx, tenant_id, limit

func (*App) SubmitAuthRequest

func (_m *App) SubmitAuthRequest(ctx context.Context, r *model.AuthReq) (string, error)

SubmitAuthRequest provides a mock function with given fields: ctx, r

func (*App) VerifyToken

func (_m *App) VerifyToken(ctx context.Context, token string) error

VerifyToken provides a mock function with given fields: ctx, token

Jump to

Keyboard shortcuts

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