loader

package
v0.0.0-...-bea0022 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type AuditLogLoader

type AuditLogLoader struct {
	*graphqlutil.DataLoader `wire:"-"`

	AuditDatabase *auditdb.ReadHandle
	Query         AuditLogQuery
}

func NewAuditLogLoader

func NewAuditLogLoader(query AuditLogQuery, handle *auditdb.ReadHandle) *AuditLogLoader

func (*AuditLogLoader) LoadFunc

func (l *AuditLogLoader) LoadFunc(ctx context.Context, keys []interface{}) ([]interface{}, error)

type AuditLogQuery

type AuditLogQuery interface {
	GetByIDs(ctx context.Context, ids []string) ([]*audit.Log, error)
}

type AuthenticatorLoader

type AuthenticatorLoader struct {
	*graphqlutil.DataLoader `wire:"-"`

	Authenticators AuthenticatorLoaderAuthenticatorService
}

func NewAuthenticatorLoader

func NewAuthenticatorLoader(authenticators AuthenticatorLoaderAuthenticatorService) *AuthenticatorLoader

func (*AuthenticatorLoader) LoadFunc

func (l *AuthenticatorLoader) LoadFunc(ctx context.Context, keys []interface{}) ([]interface{}, error)

type AuthenticatorLoaderAuthenticatorService

type AuthenticatorLoaderAuthenticatorService interface {
	GetMany(ctx context.Context, ids []string) ([]*authenticator.Info, error)
}

type GroupLoader

type GroupLoader struct {
	*graphqlutil.DataLoader `wire:"-"`

	Groups GroupLoaderGroups
}

func NewGroupLoader

func NewGroupLoader(groups GroupLoaderGroups) *GroupLoader

func (*GroupLoader) LoadFunc

func (l *GroupLoader) LoadFunc(ctx context.Context, keys []interface{}) ([]interface{}, error)

type GroupLoaderGroups

type GroupLoaderGroups interface {
	GetManyGroups(ctx context.Context, ids []string) ([]*model.Group, error)
}

type IdentityLoader

type IdentityLoader struct {
	*graphqlutil.DataLoader `wire:"-"`

	Identities IdentityLoaderIdentityService
}

func NewIdentityLoader

func NewIdentityLoader(identities IdentityLoaderIdentityService) *IdentityLoader

func (*IdentityLoader) LoadFunc

func (l *IdentityLoader) LoadFunc(ctx context.Context, keys []interface{}) ([]interface{}, error)

type IdentityLoaderIdentityService

type IdentityLoaderIdentityService interface {
	GetMany(ctx context.Context, ids []string) ([]*identity.Info, error)
}

type ResourceClientLoader

type ResourceClientLoader struct {
	*graphqlutil.DataLoader `wire:"-"`

	Resources ResourceClientLoaderResources
}

func NewResourceClientLoader

func NewResourceClientLoader(resources ResourceClientLoaderResources) *ResourceClientLoader

func (*ResourceClientLoader) LoadFunc

func (l *ResourceClientLoader) LoadFunc(ctx context.Context, keys []interface{}) ([]interface{}, error)

type ResourceClientLoaderResources

type ResourceClientLoaderResources interface {
	GetManyResourceClientIDs(ctx context.Context, resourceIDs []string) (map[string][]string, error)
}

type ResourceLoader

type ResourceLoader struct {
	*graphqlutil.DataLoader `wire:"-"`

	Resources ResourceLoaderResources
}

func NewResourceLoader

func NewResourceLoader(resources ResourceLoaderResources) *ResourceLoader

func (*ResourceLoader) LoadFunc

func (l *ResourceLoader) LoadFunc(ctx context.Context, keys []interface{}) ([]interface{}, error)

type ResourceLoaderResources

type ResourceLoaderResources interface {
	GetManyResources(ctx context.Context, ids []string) ([]*model.Resource, error)
}

type RoleLoader

type RoleLoader struct {
	*graphqlutil.DataLoader `wire:"-"`

	Roles RoleLoaderRoles
}

func NewRoleLoader

func NewRoleLoader(roles RoleLoaderRoles) *RoleLoader

func (*RoleLoader) LoadFunc

func (l *RoleLoader) LoadFunc(ctx context.Context, keys []interface{}) ([]interface{}, error)

type RoleLoaderRoles

type RoleLoaderRoles interface {
	GetManyRoles(ctx context.Context, ids []string) ([]*model.Role, error)
}

type ScopeLoader

type ScopeLoader struct {
	*graphqlutil.DataLoader `wire:"-"`

	Scopes ScopeLoaderScopes
}

func NewScopeLoader

func NewScopeLoader(scopes ScopeLoaderScopes) *ScopeLoader

func (*ScopeLoader) LoadFunc

func (l *ScopeLoader) LoadFunc(ctx context.Context, keys []interface{}) ([]interface{}, error)

type ScopeLoaderScopes

type ScopeLoaderScopes interface {
	GetManyScopes(ctx context.Context, ids []string) ([]*model.Scope, error)
}

type UserLoader

type UserLoader struct {
	*graphqlutil.DataLoader `wire:"-"`

	Users UserLoaderUserService
}

func NewUserLoader

func NewUserLoader(users UserLoaderUserService) *UserLoader

func (*UserLoader) LoadFunc

func (l *UserLoader) LoadFunc(ctx context.Context, keys []interface{}) ([]interface{}, error)

type UserLoaderUserService

type UserLoaderUserService interface {
	GetMany(ctx context.Context, ids []string, role accesscontrol.Role) ([]*model.User, error)
}

Jump to

Keyboard shortcuts

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