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 ¶
- type App
- func (_m *App) AcceptDeviceAuth(ctx context.Context, dev_id string, auth_id string) error
- func (_m *App) DecommissionDevice(ctx context.Context, dev_id string) error
- func (_m *App) DeleteAuthSet(ctx context.Context, dev_id string, auth_id string) error
- func (_m *App) DeleteTokens(ctx context.Context, tenant_id string, device_id string) error
- func (_m *App) GetDevCountByStatus(ctx context.Context, status string) (int, error)
- func (_m *App) GetDevice(ctx context.Context, dev_id string) (*model.Device, error)
- func (_m *App) GetDeviceToken(ctx context.Context, dev_id string) (*model.Token, error)
- func (_m *App) GetDevices(ctx context.Context, skip uint, limit uint, filter store.DeviceFilter) ([]model.Device, error)
- func (_m *App) GetLimit(ctx context.Context, name string) (*model.Limit, error)
- func (_m *App) GetTenantDeviceStatus(ctx context.Context, tenantId string, deviceId string) (*model.Status, error)
- func (_m *App) GetTenantLimit(ctx context.Context, name string, tenant_id string) (*model.Limit, error)
- func (_m *App) PreauthorizeDevice(ctx context.Context, req *model.PreAuthReq) error
- func (_m *App) ProvisionTenant(ctx context.Context, tenant_id string) error
- func (_m *App) RejectDeviceAuth(ctx context.Context, dev_id string, auth_id string) error
- func (_m *App) ResetDeviceAuth(ctx context.Context, dev_id string, auth_id string) error
- func (_m *App) RevokeToken(ctx context.Context, token_id string) error
- func (_m *App) SetTenantLimit(ctx context.Context, tenant_id string, limit model.Limit) error
- func (_m *App) SubmitAuthRequest(ctx context.Context, r *model.AuthReq) (string, error)
- func (_m *App) VerifyToken(ctx context.Context, token string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
App is an autogenerated mock type for the App type
func (*App) AcceptDeviceAuth ¶
AcceptDeviceAuth provides a mock function with given fields: ctx, dev_id, auth_id
func (*App) DecommissionDevice ¶
DecommissionDevice provides a mock function with given fields: ctx, dev_id
func (*App) DeleteAuthSet ¶
DeleteAuthSet provides a mock function with given fields: ctx, dev_id, auth_id
func (*App) DeleteTokens ¶
DeleteTokens provides a mock function with given fields: ctx, tenant_id, device_id
func (*App) GetDevCountByStatus ¶
GetDevCountByStatus provides a mock function with given fields: ctx, status
func (*App) GetDeviceToken ¶
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) 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 ¶
PreauthorizeDevice provides a mock function with given fields: ctx, req
func (*App) ProvisionTenant ¶
ProvisionTenant provides a mock function with given fields: ctx, tenant_id
func (*App) RejectDeviceAuth ¶
RejectDeviceAuth provides a mock function with given fields: ctx, dev_id, auth_id
func (*App) ResetDeviceAuth ¶
ResetDeviceAuth provides a mock function with given fields: ctx, dev_id, auth_id
func (*App) RevokeToken ¶
RevokeToken provides a mock function with given fields: ctx, token_id
func (*App) SetTenantLimit ¶
SetTenantLimit provides a mock function with given fields: ctx, tenant_id, limit
func (*App) SubmitAuthRequest ¶
SubmitAuthRequest provides a mock function with given fields: ctx, r