The highest tagged major version is
v2 .
Discover Packages
github.com/lamassuiot/lamassuiot
pkg
dms-enroller
common
dto
package
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: Jul 20, 2022
License: MPL-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type DMS struct {
Id string `json:"id"`
Name string `json:"name"`
SerialNumber string `json:"serial_number,omitempty"`
KeyMetadata PrivateKeyMetadataWithStregth `json:"key_metadata"`
Status string `json:"status"`
CsrBase64 string `json:"csr,omitempty"`
CerificateBase64 string `json:"crt,omitempty"`
Subject Subject `json:"subject,omitempty"`
AuthorizedCAs []string `json:"authorized_cas,omitempty"`
CreationTimestamp string `json:"creation_timestamp,omitempty"`
ModificationTimestamp string `json:"modification_timestamp,omitempty"`
EnrolledDevices int `json:"enrolled_devices"`
}
type DmsCreationResponse struct {
Dms DMS `json:"dms,omitempty"`
PrivKey string `json:"priv_key,omitempty"`
}
type GetDmsResponse struct {
TotalDmss int `json:"total_dmss"`
Dmss []DMS `json:"dmss,omitempty"`
}
type PostCSRRequest struct {
Csr string `json:"csr" validate:"base64"`
DmsName string `json:"name" validate:"required"`
}
type PostDmsCreationFormRequest struct {
DmsName string `json:"name" validate:"required"`
Subject Subject `json:"subject" validate:"required"`
KeyMetadata PrivateKeyMetadata `json:"key_metadata" validate:"required"`
}
type PrivateKeyMetadata struct {
KeyType string `json:"type" validate:"oneof='RSA' 'EC'"`
KeyBits int `json:"bits"`
}
type PrivateKeyMetadataWithStregth struct {
KeyType string `json:"type,omitempty"`
KeyBits int `json:"bits,omitempty"`
KeyStrength string `json:"strength,omitempty"`
}
type PutChangeDmsStatusRequest struct {
Status string `json:"status" validate:"oneof='PENDING_APPROVAL' 'APPROVED' 'DENIED' 'REVOKED'"`
CAs []string `json:"authorized_cas"`
ID string `validate:"required"`
}
type Subject struct {
CN string `json:"common_name" validate:"required"`
O string `json:"organization,omitempty"`
OU string `json:"organization_unit,omitempty"`
C string `json:"country,omitempty"`
ST string `json:"state,omitempty"`
L string `json:"locality,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.