lamassudevmanager

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: 8 Imported by: 0

Documentation

Index

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)
}

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 (c *LamassuDeviceManagerClientConfig) CreateDevice(ctx context.Context, alias string, deviceID string, dmsID string, description string, tags []string, iconName string, iconColor string) (dto.Device, error)

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 (c *LamassuDeviceManagerClientConfig) GetDeviceById(ctx context.Context, deviceId string) (dto.Device, error)

func (*LamassuDeviceManagerClientConfig) GetDeviceCert

func (*LamassuDeviceManagerClientConfig) GetDeviceCertHistory

func (c *LamassuDeviceManagerClientConfig) GetDeviceCertHistory(ctx context.Context, id string) ([]dto.DeviceCertHistory, error)

func (*LamassuDeviceManagerClientConfig) GetDeviceLogs

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 (*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 (c *LamassuDeviceManagerClientConfig) RevokeDeviceCert(ctx context.Context, id string, revocationReason string) error

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)

func (*LamassuDeviceManagerClientConfig) UpdateDeviceById

func (c *LamassuDeviceManagerClientConfig) UpdateDeviceById(ctx context.Context, alias string, deviceID string, dmsID string, description string, tags []string, iconName string, iconColor string) (dto.Device, error)

Jump to

Keyboard shortcuts

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