Documentation ¶
Index ¶
- func MakeDeleteDeviceEndpoint(s service.Service) endpoint.Endpoint
- func MakeDeleteRevokeEndpoint(s service.Service) endpoint.Endpoint
- func MakeGetDeviceByIdEndpoint(s service.Service) endpoint.Endpoint
- func MakeGetDeviceCertEndpoint(s service.Service) endpoint.Endpoint
- func MakeGetDeviceCertHistoryEndpoint(s service.Service) endpoint.Endpoint
- func MakeGetDeviceLogsEndpoint(s service.Service) endpoint.Endpoint
- func MakeGetDevicesByDMSEndpoint(s service.Service) endpoint.Endpoint
- func MakeGetDevicesEndpoint(s service.Service) endpoint.Endpoint
- func MakeGetDmsCertHistoryThirtyDaysEndpoint(s service.Service) endpoint.Endpoint
- func MakeGetDmsLastIssueCertEndpoint(s service.Service) endpoint.Endpoint
- func MakeHealthEndpoint(s service.Service) endpoint.Endpoint
- func MakePostDeviceEndpoint(s service.Service) endpoint.Endpoint
- func ValidateCreatrCARequest(request CreateDeviceRequest) error
- type CreateDeviceRequest
- type DeleteDeviceRequest
- type DeleteRevokeRequest
- type Endpoints
- type GetDeviceCertHistoryRequest
- type GetDeviceCertRequest
- type GetDeviceLogsRequest
- type GetDevicesByDMSRequest
- type GetDevicesByIdRequest
- type GetDevicesResponse
- type HealthRequest
- type HealthResponse
- type PostDeviceResponse
- type PostIssueCertResponse
- type PostIssueCertUsingDefaultResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateCreatrCARequest ¶
func ValidateCreatrCARequest(request CreateDeviceRequest) error
Types ¶
type CreateDeviceRequest ¶
type CreateDeviceRequest struct { DeviceID string `json:"id" validate:"required"` Alias string `json:"alias" validate:"required"` DmsId int `json:"dms_id" validate:"required"` Subject struct { CN string `json:"common_name" validate:"required"` O string `json:"organization"` OU string `json:"organization_unit"` C string `json:"country"` ST string `json:"state"` L string `json:"locality"` } `json:"subject"` KeyMetadata struct { KeyType string `json:"type" validate:"oneof='rsa' 'ecdsa'"` KeyBits int `json:"bits" validate:"required"` } `json:"key_metadata" validate:"required"` }
type DeleteDeviceRequest ¶
type DeleteDeviceRequest struct {
Id string
}
type DeleteRevokeRequest ¶
type DeleteRevokeRequest struct {
Id string
}
type Endpoints ¶
type Endpoints struct { HealthEndpoint endpoint.Endpoint PostDeviceEndpoint endpoint.Endpoint GetDevices endpoint.Endpoint GetDeviceById endpoint.Endpoint GetDevicesByDMS endpoint.Endpoint DeleteDevice endpoint.Endpoint DeleteRevoke endpoint.Endpoint GetDeviceLogs endpoint.Endpoint GetDeviceCert endpoint.Endpoint GetDeviceCertHistory endpoint.Endpoint GetDmsCertHistoryThirtyDays endpoint.Endpoint GetDmsLastIssueCert endpoint.Endpoint }
func MakeServerEndpoints ¶
func MakeServerEndpoints(s service.Service, otTracer stdopentracing.Tracer) Endpoints
type GetDeviceCertHistoryRequest ¶
type GetDeviceCertHistoryRequest struct {
Id string
}
type GetDeviceCertRequest ¶
type GetDeviceCertRequest struct {
Id string
}
type GetDeviceLogsRequest ¶
type GetDeviceLogsRequest struct {
Id string
}
type GetDevicesByDMSRequest ¶
type GetDevicesByDMSRequest struct {
Id string
}
type GetDevicesByIdRequest ¶
type GetDevicesByIdRequest struct {
Id string
}
type GetDevicesResponse ¶
type HealthRequest ¶
type HealthRequest struct{}
type HealthResponse ¶
type PostDeviceResponse ¶
type PostIssueCertResponse ¶
Click to show internal directories.
Click to hide internal directories.