Versions in this module Expand all Collapse all v0 v0.0.1 Oct 16, 2020 Changes in this version + var ErrMalformedEntity = errors.New("malformed entity specification") + var ErrNotFound = errors.New("non-existent entity") + var ErrUnauthorizedAccess = errors.New("missing or invalid credentials provided") + type Cert struct + CAChain []string + ClientCert string + ClientKey string + Expire time.Time + IssuingCA string + OwnerID string + PrivateKeyType string + Serial string + ThingID string + type Config struct + AuthnTimeout time.Duration + AuthnURL string + BaseURL string + CaCerts string + ClientTLS bool + HTTPPort string + JaegerURL string + LogLevel string + PKIHost string + PKIPath string + PKIRole string + PKIToken string + ServerCert string + ServerKey string + SignHoursValid string + SignRSABits int + SignTLSCert tls.Certificate + SignX509Cert *x509.Certificate + ThingsPrefix string + type Page struct + Certs []Cert + Limit uint64 + Offset uint64 + Total uint64 + type Repository interface + Remove func(ctx context.Context, thingID string) error + RetrieveAll func(ctx context.Context, ownerID string, offset, limit uint64) (Page, error) + RetrieveByThing func(ctx context.Context, thingID string) (Cert, error) + Save func(ctx context.Context, cert Cert) (string, error) + type Revoke struct + RevocationTime time.Time + type Service interface + IssueCert func(ctx context.Context, token, thingID, daysValid string, keyBits int, ...) (Cert, error) + ListCerts func(ctx context.Context, token string, offset, limit uint64) (Page, error) + RevokeCert func(ctx context.Context, token, thingID string) (Revoke, error) + func New(auth mainflux.AuthNServiceClient, certs Repository, sdk mfsdk.SDK, ...) Service