Documentation ¶
Index ¶
- type LamassuDeviceManagerClient
- type LamassuDeviceManagerClientConfig
- func (c *LamassuDeviceManagerClientConfig) CACerts(ctx context.Context, aps string, clientCert *x509.Certificate, ...) ([]*x509.Certificate, error)
- func (c *LamassuDeviceManagerClientConfig) CreateDevice(ctx context.Context, alias string, deviceID string, dmsID string, ...) (dto.Device, error)
- func (c *LamassuDeviceManagerClientConfig) DeleteDevice(ctx context.Context, id string) error
- func (c *LamassuDeviceManagerClientConfig) Enroll(ctx context.Context, csr *x509.CertificateRequest, aps string, ...) (dto.Enroll, error)
- func (c *LamassuDeviceManagerClientConfig) GetDeviceById(ctx context.Context, deviceId string) (dto.Device, error)
- func (c *LamassuDeviceManagerClientConfig) GetDeviceCert(ctx context.Context, id string) (dto.DeviceCert, error)
- func (c *LamassuDeviceManagerClientConfig) GetDeviceCertHistory(ctx context.Context, id string) ([]dto.DeviceCertHistory, error)
- func (c *LamassuDeviceManagerClientConfig) GetDeviceLogs(ctx context.Context, id string) (dto.GetLogsResponse, error)
- func (c *LamassuDeviceManagerClientConfig) GetDevices(ctx context.Context, queryParameters filters.QueryParameters) ([]dto.Device, int, error)
- func (c *LamassuDeviceManagerClientConfig) GetDevicesByDMS(ctx context.Context, dmsId string, queryParameters filters.QueryParameters) (dto.GetDevicesResponse, error)
- func (c *LamassuDeviceManagerClientConfig) GetDmsCertHistoryThirtyDays(ctx context.Context, queryParameters filters.QueryParameters) ([]dto.DMSCertHistory, error)
- func (c *LamassuDeviceManagerClientConfig) GetDmsLastIssuedCert(ctx context.Context, queryParameters filters.QueryParameters) (dto.GetLastIssuedCertResponse, error)
- func (c *LamassuDeviceManagerClientConfig) Reenroll(ctx context.Context, csr *x509.CertificateRequest, aps string, ...) (dto.Enroll, error)
- func (c *LamassuDeviceManagerClientConfig) RevokeDeviceCert(ctx context.Context, id string, revocationReason string) error
- func (c *LamassuDeviceManagerClientConfig) ServerKeyGen(ctx context.Context, csr *x509.CertificateRequest, aps string, ...) (dto.ServerKeyGen, error)
- func (c *LamassuDeviceManagerClientConfig) UpdateDeviceById(ctx context.Context, alias string, deviceID string, dmsID string, ...) (dto.Device, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LamassuDeviceManagerClient ¶
type LamassuDeviceManagerClient interface { CreateDevice(ctx context.Context, alias string, deviceID string, dmsID string, description string, tags []string, iconName string, iconColor string) (dto.Device, error) UpdateDeviceById(ctx context.Context, alias string, deviceID string, dmsID string, description string, tags []string, iconName string, iconColor string) (dto.Device, error) GetDevices(ctx context.Context, queryParameters filters.QueryParameters) ([]dto.Device, int, error) GetDeviceById(ctx context.Context, deviceId string) (dto.Device, error) GetDevicesByDMS(ctx context.Context, dmsId string, queryParameters filters.QueryParameters) (dto.GetDevicesResponse, error) DeleteDevice(ctx context.Context, id string) error RevokeDeviceCert(ctx context.Context, id string, revocationReason string) error GetDeviceLogs(ctx context.Context, id string) (dto.GetLogsResponse, error) GetDeviceCert(ctx context.Context, id string) (dto.DeviceCert, error) GetDeviceCertHistory(ctx context.Context, id string) ([]dto.DeviceCertHistory, error) GetDmsCertHistoryThirtyDays(ctx context.Context, queryParameters filters.QueryParameters) ([]dto.DMSCertHistory, error) GetDmsLastIssuedCert(ctx context.Context, queryParameters filters.QueryParameters) (dto.GetLastIssuedCertResponse, error) //EST Endpoints CACerts(ctx context.Context, aps string, clientCert *x509.Certificate, clientKey []byte, serverCert *x509.CertPool, estServerAddr string) ([]*x509.Certificate, error) Enroll(ctx context.Context, csr *x509.CertificateRequest, aps string, clientCert *x509.Certificate, clientKey []byte, serverCert *x509.CertPool, estServerAddr string) (dto.Enroll, error) Reenroll(ctx context.Context, csr *x509.CertificateRequest, aps string, clientCert *x509.Certificate, clientKey []byte, serverCert *x509.CertPool, estServerAddr string) (dto.Enroll, error) ServerKeyGen(ctx context.Context, csr *x509.CertificateRequest, aps string, clientCert *x509.Certificate, clientKey []byte, serverCert *x509.CertPool, estServerAddr string) (dto.ServerKeyGen, error) }
func NewLamassuDeviceManagerClient ¶
func NewLamassuDeviceManagerClient(config clientUtils.ClientConfiguration) (LamassuDeviceManagerClient, error)
type LamassuDeviceManagerClientConfig ¶
type LamassuDeviceManagerClientConfig struct {
// contains filtered or unexported fields
}
func (*LamassuDeviceManagerClientConfig) CACerts ¶
func (c *LamassuDeviceManagerClientConfig) CACerts(ctx context.Context, aps string, clientCert *x509.Certificate, clientKey []byte, serverCert *x509.CertPool, estServerAddr string) ([]*x509.Certificate, error)
func (*LamassuDeviceManagerClientConfig) CreateDevice ¶
func (*LamassuDeviceManagerClientConfig) DeleteDevice ¶
func (c *LamassuDeviceManagerClientConfig) DeleteDevice(ctx context.Context, id string) error
func (*LamassuDeviceManagerClientConfig) Enroll ¶
func (c *LamassuDeviceManagerClientConfig) Enroll(ctx context.Context, csr *x509.CertificateRequest, aps string, clientCert *x509.Certificate, clientKey []byte, serverCert *x509.CertPool, estServerAddr string) (dto.Enroll, error)
func (*LamassuDeviceManagerClientConfig) GetDeviceById ¶
func (*LamassuDeviceManagerClientConfig) GetDeviceCert ¶
func (c *LamassuDeviceManagerClientConfig) GetDeviceCert(ctx context.Context, id string) (dto.DeviceCert, error)
func (*LamassuDeviceManagerClientConfig) GetDeviceCertHistory ¶
func (c *LamassuDeviceManagerClientConfig) GetDeviceCertHistory(ctx context.Context, id string) ([]dto.DeviceCertHistory, error)
func (*LamassuDeviceManagerClientConfig) GetDeviceLogs ¶
func (c *LamassuDeviceManagerClientConfig) GetDeviceLogs(ctx context.Context, id string) (dto.GetLogsResponse, error)
func (*LamassuDeviceManagerClientConfig) GetDevices ¶
func (c *LamassuDeviceManagerClientConfig) GetDevices(ctx context.Context, queryParameters filters.QueryParameters) ([]dto.Device, int, error)
func (*LamassuDeviceManagerClientConfig) GetDevicesByDMS ¶
func (c *LamassuDeviceManagerClientConfig) GetDevicesByDMS(ctx context.Context, dmsId string, queryParameters filters.QueryParameters) (dto.GetDevicesResponse, error)
func (*LamassuDeviceManagerClientConfig) GetDmsCertHistoryThirtyDays ¶
func (c *LamassuDeviceManagerClientConfig) GetDmsCertHistoryThirtyDays(ctx context.Context, queryParameters filters.QueryParameters) ([]dto.DMSCertHistory, error)
func (*LamassuDeviceManagerClientConfig) GetDmsLastIssuedCert ¶
func (c *LamassuDeviceManagerClientConfig) GetDmsLastIssuedCert(ctx context.Context, queryParameters filters.QueryParameters) (dto.GetLastIssuedCertResponse, error)
func (*LamassuDeviceManagerClientConfig) Reenroll ¶
func (c *LamassuDeviceManagerClientConfig) Reenroll(ctx context.Context, csr *x509.CertificateRequest, aps string, clientCert *x509.Certificate, clientKey []byte, serverCert *x509.CertPool, estServerAddr string) (dto.Enroll, error)
func (*LamassuDeviceManagerClientConfig) RevokeDeviceCert ¶
func (*LamassuDeviceManagerClientConfig) ServerKeyGen ¶
func (c *LamassuDeviceManagerClientConfig) ServerKeyGen(ctx context.Context, csr *x509.CertificateRequest, aps string, clientCert *x509.Certificate, clientKey []byte, serverCert *x509.CertPool, estServerAddr string) (dto.ServerKeyGen, error)
Click to show internal directories.
Click to hide internal directories.