Versions in this module Expand all Collapse all v0 v0.14.0 Jan 29, 2024 Changes in this version + const WrongID + type Cache struct + func NewCache(t interface{ ... }) *Cache + func (_m *Cache) ID(ctx context.Context, thingSecret string) (string, error) + func (_m *Cache) Remove(ctx context.Context, thingID string) error + func (_m *Cache) Save(ctx context.Context, thingSecret string, thingID string) error + type Repository struct + func NewRepository(t interface{ ... }) *Repository + func (_m *Repository) ChangeStatus(ctx context.Context, client clients.Client) (clients.Client, error) + func (_m *Repository) Delete(ctx context.Context, id string) error + func (_m *Repository) RetrieveAll(ctx context.Context, pm clients.Page) (clients.ClientsPage, error) + func (_m *Repository) RetrieveAllBasicInfo(ctx context.Context, pm clients.Page) (clients.ClientsPage, error) + func (_m *Repository) RetrieveAllByIDs(ctx context.Context, pm clients.Page) (clients.ClientsPage, error) + func (_m *Repository) RetrieveByID(ctx context.Context, id string) (clients.Client, error) + func (_m *Repository) RetrieveByIdentity(ctx context.Context, identity string) (clients.Client, error) + func (_m *Repository) RetrieveBySecret(ctx context.Context, key string) (clients.Client, error) + func (_m *Repository) Save(ctx context.Context, client ...clients.Client) ([]clients.Client, error) + func (_m *Repository) Update(ctx context.Context, client clients.Client) (clients.Client, error) + func (_m *Repository) UpdateIdentity(ctx context.Context, client clients.Client) (clients.Client, error) + func (_m *Repository) UpdateRole(ctx context.Context, client clients.Client) (clients.Client, error) + func (_m *Repository) UpdateSecret(ctx context.Context, client clients.Client) (clients.Client, error) + func (_m *Repository) UpdateTags(ctx context.Context, client clients.Client) (clients.Client, error) + type Service struct + func NewService(t interface{ ... }) *Service + func (_m *Service) Authorize(ctx context.Context, req *magistrala.AuthorizeReq) (string, error) + func (_m *Service) CreateThings(ctx context.Context, token string, client ...clients.Client) ([]clients.Client, error) + func (_m *Service) DeleteClient(ctx context.Context, token string, id string) error + func (_m *Service) DisableClient(ctx context.Context, token string, id string) (clients.Client, error) + func (_m *Service) EnableClient(ctx context.Context, token string, id string) (clients.Client, error) + func (_m *Service) Identify(ctx context.Context, key string) (string, error) + func (_m *Service) ListClients(ctx context.Context, token string, reqUserID string, pm clients.Page) (clients.ClientsPage, error) + func (_m *Service) ListClientsByGroup(ctx context.Context, token string, groupID string, pm clients.Page) (clients.MembersPage, error) + func (_m *Service) Share(ctx context.Context, token string, id string, relation string, ...) error + func (_m *Service) Unshare(ctx context.Context, token string, id string, relation string, ...) error + func (_m *Service) UpdateClient(ctx context.Context, token string, client clients.Client) (clients.Client, error) + func (_m *Service) UpdateClientSecret(ctx context.Context, token string, id string, key string) (clients.Client, error) + func (_m *Service) UpdateClientTags(ctx context.Context, token string, client clients.Client) (clients.Client, error) + func (_m *Service) ViewClient(ctx context.Context, token string, id string) (clients.Client, error) + func (_m *Service) ViewClientPerms(ctx context.Context, token string, id string) ([]string, error) + type ThingAuthzService struct + func (m *ThingAuthzService) Authorize(ctx context.Context, in *magistrala.AuthorizeReq, opts ...grpc.CallOption) (*magistrala.AuthorizeRes, error)