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 ¶
- Variables
- type ApiClientGetter
- type App
- type DevAdm
- func (d *DevAdm) AcceptDeviceAuth(ctx context.Context, id model.AuthID) error
- func (d *DevAdm) AcceptDevicePreAuth(ctx context.Context, id model.AuthID) error
- func (d *DevAdm) DeleteDeviceAuth(ctx context.Context, id model.AuthID) error
- func (d *DevAdm) DeleteDeviceAuthPropagate(ctx context.Context, id model.AuthID, authorizationHeader string) error
- func (d *DevAdm) DeleteDeviceData(ctx context.Context, devid model.DeviceID) error
- func (d *DevAdm) GetDeviceAuth(ctx context.Context, id model.AuthID) (*model.DeviceAuth, error)
- func (d *DevAdm) ListDeviceAuths(ctx context.Context, skip int, limit int, filter store.Filter) ([]model.DeviceAuth, error)
- func (d *DevAdm) PreauthorizeDevice(ctx context.Context, authSet model.AuthSet, authorizationHeader string) error
- func (d *DevAdm) ProvisionTenant(ctx context.Context, tenant_id string) error
- func (d *DevAdm) RejectDeviceAuth(ctx context.Context, id model.AuthID) error
- func (d *DevAdm) SubmitDeviceAuth(ctx context.Context, dev model.DeviceAuth) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAuthNotFound = errors.New("device auth set not found") )
View Source
var AuthSetConflictError = errors.New("device already exists")
Functions ¶
This section is empty.
Types ¶
type ApiClientGetter ¶
type ApiClientGetter func() client.HttpRunner
helper for obtaining API clients
type App ¶
type App interface { ListDeviceAuths(ctx context.Context, skip int, limit int, filter store.Filter) ([]model.DeviceAuth, error) SubmitDeviceAuth(ctx context.Context, d model.DeviceAuth) error GetDeviceAuth(ctx context.Context, id model.AuthID) (*model.DeviceAuth, error) AcceptDeviceAuth(ctx context.Context, id model.AuthID) error RejectDeviceAuth(ctx context.Context, id model.AuthID) error DeleteDeviceAuth(ctx context.Context, id model.AuthID) error DeleteDeviceAuthPropagate(ctx context.Context, id model.AuthID, authorizationHeader string) error AcceptDevicePreAuth(ctx context.Context, id model.AuthID) error DeleteDeviceData(ctx context.Context, id model.DeviceID) error ProvisionTenant(ctx context.Context, tenant_id string) error }
this device admission service interface
type DevAdm ¶
type DevAdm struct {
// contains filtered or unexported fields
}
func (*DevAdm) AcceptDeviceAuth ¶
func (*DevAdm) AcceptDevicePreAuth ¶
func (*DevAdm) DeleteDeviceAuth ¶
func (*DevAdm) DeleteDeviceAuthPropagate ¶
func (*DevAdm) DeleteDeviceData ¶
func (*DevAdm) GetDeviceAuth ¶
func (*DevAdm) ListDeviceAuths ¶
func (*DevAdm) PreauthorizeDevice ¶
func (*DevAdm) ProvisionTenant ¶
func (*DevAdm) RejectDeviceAuth ¶
func (*DevAdm) SubmitDeviceAuth ¶
Click to show internal directories.
Click to hide internal directories.