Documentation ¶
Index ¶
- type AnonDeviceService
- func (a *AnonDeviceService) CountDevices(ctx context.Context, from time.Time, to time.Time) (int64, error)
- func (a *AnonDeviceService) ListDevices(ctx context.Context, from *time.Time, to *time.Time) ([]*anonstore.Device, error)
- func (a *AnonDeviceService) Run(ctx context.Context) error
- func (a *AnonDeviceService) SearchDevices(ctx context.Context, query *anonstore.SearchDeviceQuery) (*anonstore.SearchDeviceQueryResult, error)
- func (a *AnonDeviceService) TagDevice(ctx context.Context, httpReq *http.Request, kind anonymous.DeviceKind) error
- type Anonymous
- func (a *Anonymous) Authenticate(ctx context.Context, r *authn.Request) (*authn.Identity, error)
- func (a *Anonymous) IsEnabled() bool
- func (a *Anonymous) Name() string
- func (a *Anonymous) Namespace() string
- func (a *Anonymous) Priority() uint
- func (a *Anonymous) ResolveIdentity(ctx context.Context, orgID int64, namespaceID identity.NamespaceID) (*authn.Identity, error)
- func (a *Anonymous) Test(ctx context.Context, r *authn.Request) bool
- func (a *Anonymous) UsageStatFn(ctx context.Context) (map[string]any, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnonDeviceService ¶
type AnonDeviceService struct {
// contains filtered or unexported fields
}
func ProvideAnonymousDeviceService ¶
func ProvideAnonymousDeviceService(usageStats usagestats.Service, authBroker authn.Service, sqlStore db.DB, cfg *setting.Cfg, orgService org.Service, serverLockService *serverlock.ServerLockService, accesscontrol accesscontrol.AccessControl, routeRegister routing.RouteRegister, ) *AnonDeviceService
func (*AnonDeviceService) CountDevices ¶
func (a *AnonDeviceService) CountDevices(ctx context.Context, from time.Time, to time.Time) (int64, error)
CountDevices returns the number of devices that have been updated between the given times.
func (*AnonDeviceService) ListDevices ¶
func (a *AnonDeviceService) ListDevices(ctx context.Context, from *time.Time, to *time.Time) ([]*anonstore.Device, error)
ListDevices returns all devices that have been updated between the given times.
func (*AnonDeviceService) SearchDevices ¶
func (a *AnonDeviceService) SearchDevices(ctx context.Context, query *anonstore.SearchDeviceQuery) (*anonstore.SearchDeviceQueryResult, error)
func (*AnonDeviceService) TagDevice ¶
func (a *AnonDeviceService) TagDevice(ctx context.Context, httpReq *http.Request, kind anonymous.DeviceKind) error
type Anonymous ¶
type Anonymous struct {
// contains filtered or unexported fields
}
func (*Anonymous) Authenticate ¶
func (*Anonymous) ResolveIdentity ¶
Click to show internal directories.
Click to hide internal directories.