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.
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.
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 ¶
View Source
const ( DevStatusAccepted = "accepted" DevStatusRejected = "rejected" DevStatusPending = "pending" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthSet ¶
type AuthSet struct { DeviceId string `json:"device_identity" valid:"required"` Key string `json:"key" valid:"required"` //decoded, human-readable identity attribute set Attributes DeviceAuthAttributes `json:"-"` }
type DeviceAuth ¶
type DeviceAuth struct { //system-generated authentication data set ID ID AuthID `json:"id" bson:",omitempty"` //device ID DeviceId DeviceID `json:"device_id" bson:",omitempty"` //blob of encrypted identity attributes DeviceIdentity string `json:"device_identity" bson:",omitempty"` //public key passed in authentication request Key string `json:"key" bson:",omitempty"` //admission status('accepted', 'rejected', 'pending') Status string `json:"status" bson:",omitempty"` //decoded, human-readable identity attribute set Attributes DeviceAuthAttributes `json:"attributes" bson:",omitempty"` //admission request reception time RequestTime *time.Time `json:"request_time" bson:"request_time,omitempty"` }
Device authentication data set wrapper
type DeviceAuthAttributes ¶
wrapper for device attributes data in authentication data set
Click to show internal directories.
Click to hide internal directories.