dto

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2022 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateDeviceRequest

type CreateDeviceRequest struct {
	DeviceID    string   `json:"id" validate:"required"`
	Alias       string   `json:"alias"`
	Description string   `json:"description"`
	Tags        []string `json:"tags"`
	IconName    string   `json:"icon_name"`
	IconColor   string   `json:"icon_color"`
	DmsId       string   `json:"dms_id" validate:"required"`
}

type CurrentCertificate

type CurrentCertificate struct {
	SerialNumber string `json:"serial_number,omitempty"`
	Valid_to     string `json:"valid_to,omitempty"`
	Cert         string `json:"crt,omitempty"`
}

type DMSCertHistory

type DMSCertHistory struct {
	DmsId       string `json:"dms_id"`
	IssuedCerts int    `json:"issued_certs"`
}

type DMSLastIssued

type DMSLastIssued struct {
	DmsId             string `json:"dms_id"`
	CreationTimestamp string `json:"creation_timestamp"`
	SerialNumber      string `json:"serial_number"`
}

type Device

type Device struct {
	Id                    string                        `json:"id"`
	Alias                 string                        `json:"alias"`
	Description           string                        `json:"description"`
	Tags                  []string                      `json:"tags"`
	IconName              string                        `json:"icon_name"`
	IconColor             string                        `json:"icon_color"`
	Status                string                        `json:"status,omitempty"`
	DmsId                 string                        `json:"dms_id"`
	KeyMetadata           PrivateKeyMetadataWithStregth `json:"key_metadata,omitempty"`
	Subject               Subject                       `json:"subject,omitempty"`
	CreationTimestamp     string                        `json:"creation_timestamp,omitempty"`
	ModificationTimestamp string                        `json:"modification_timestamp,omitempty"`
	CurrentCertificate    CurrentCertificate            `json:"current_certificate,omitempty"`
}

type DeviceCert

type DeviceCert struct {
	DeviceId     string  `json:"device_id"`
	SerialNumber string  `json:"serial_number"`
	CAName       string  `json:"issuer_name"`
	Status       string  `json:"status"`
	CRT          string  `json:"crt"`
	Subject      Subject `json:"subject"`
	ValidFrom    string  `json:"valid_from"`
	ValidTo      string  `json:"valid_to"`
}

type DeviceCertHistory

type DeviceCertHistory struct {
	DeviceId            string `json:"device_id"`
	SerialNumber        string `json:"serial_number"`
	IsuuerName          string `json:"issuer_name"`
	Status              string `json:"status"`
	CreationTimestamp   string `json:"creation_timestamp"`
	RevocationTimestamp string `json:"revocation_timestamp,omitempty"`
}

type DeviceLog

type DeviceLog struct {
	Id             string `json:"id"`
	DeviceId       string `json:"device_id"`
	LogType        string `json:"log_type"`
	LogMessage     string `json:"log_message"`
	LogDescription string `json:"log_description"`
	Timestamp      string `json:"timestamp"`
}

type Enroll

type Enroll struct {
	Cert   *x509.Certificate `json:"crt"`
	CaCert *x509.Certificate `json:"cacrt"`
}

type GetDevicesResponse

type GetDevicesResponse struct {
	TotalDevices int      `json:"total_devices"`
	Devices      []Device `json:"devices,omitempty"`
}

type GetLastIssuedCertResponse added in v0.0.5

type GetLastIssuedCertResponse struct {
	TotalLastIssuedCert int             `json:"total_last_issued_cert"`
	IssuedCert          []DMSLastIssued `json:"dms_last_issued_cert,omitempty"`
}

type GetLogsResponse added in v0.0.5

type GetLogsResponse struct {
	TotalLogs int         `json:"total_logs"`
	Logs      []DeviceLog `json:"logs,omitempty"`
}

type PrivateKeyMetadataWithStregth

type PrivateKeyMetadataWithStregth struct {
	KeyType     string `json:"type,omitempty"`
	KeyBits     int    `json:"bits,omitempty"`
	KeyStrength string `json:"strength,omitempty"`
}

type ServerKeyGen

type ServerKeyGen struct {
	Cert   *x509.Certificate `json:"crt"`
	CaCert *x509.Certificate `json:"cacrt"`
	Key    []byte            `json:"key"`
}

type Stats

type Stats struct {
	PendingEnrollment int `json:"pending_enrollment"`
	Provisioned       int `json:"provisioned"`
	Decomissioned     int `json:"decommissioned"`
	AboutToExpire     int `json:"provisioned_devices"`
	Expired           int `json:"expired"`
	Revoked           int `json:"revoked"`
}

type Subject

type Subject struct {
	CommonName       string `json:"common_name,omitempty"`
	Organization     string `json:"organization,omitempty"`
	OrganizationUnit string `json:"organization_unit,omitempty"`
	Country          string `json:"country,omitempty"`
	State            string `json:"state,omitempty"`
	Locality         string `json:"locality,omitempty"`
}

type UpdateDevicesByIdRequest

type UpdateDevicesByIdRequest struct {
	DeviceID    string   `json:"id" validate:"required"`
	Alias       string   `json:"alias"`
	Description string   `json:"description"`
	Tags        []string `json:"tags"`
	IconName    string   `json:"icon_name"`
	IconColor   string   `json:"icon_color"`
	DmsId       string   `json:"dms_id" `
}

Jump to

Keyboard shortcuts

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