anonimpl

package
v11.1.4-modfix Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2024 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

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

func (a *AnonDeviceService) Run(ctx context.Context) error

func (*AnonDeviceService) SearchDevices

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 (a *Anonymous) Authenticate(ctx context.Context, r *authn.Request) (*authn.Identity, error)

func (*Anonymous) IsEnabled

func (a *Anonymous) IsEnabled() bool

func (*Anonymous) Name

func (a *Anonymous) Name() string

func (*Anonymous) Namespace

func (a *Anonymous) Namespace() string

func (*Anonymous) Priority

func (a *Anonymous) Priority() uint

func (*Anonymous) ResolveIdentity

func (a *Anonymous) ResolveIdentity(ctx context.Context, orgID int64, namespaceID identity.NamespaceID) (*authn.Identity, error)

func (*Anonymous) Test

func (a *Anonymous) Test(ctx context.Context, r *authn.Request) bool

func (*Anonymous) UsageStatFn

func (a *Anonymous) UsageStatFn(ctx context.Context) (map[string]any, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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