directive

package
v0.10.39 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2025 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizedDirective

type AuthorizedDirective struct {
	// contains filtered or unexported fields
}

func NewAuthorizedDirectiveWithFactory added in v0.9.1

func NewAuthorizedDirectiveWithFactory(oc openfgav1.OpenFGAServiceClient, air accountinfo.Retriever, storeTTL time.Duration, clientFactory WorkspaceClient) *AuthorizedDirective

NewAuthorizedDirectiveWithFactory creates a new AuthorizedDirective with a custom WorkspaceClient. This constructor is primarily intended for testing with mock implementations.

func (AuthorizedDirective) Authorized

func (a AuthorizedDirective) Authorized(ctx context.Context, _ any, next graphql.Resolver, permission string) (any, error)

type KCPClient added in v0.9.1

type KCPClient struct {
	// contains filtered or unexported fields
}

func NewDefaultWSClientFactory added in v0.9.1

func NewDefaultWSClientFactory(mgr mcmanager.Manager, log *logger.Logger) *KCPClient

func (*KCPClient) New added in v0.9.1

func (f *KCPClient) New(accountPath string) (client.Client, error)

type WorkspaceClient added in v0.9.1

type WorkspaceClient interface {
	New(accountPath string) (client.Client, error)
}

Jump to

Keyboard shortcuts

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