Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
func NewService(repository Repository, config core.Config) core.KeyService
NewService creates a new auth service
Types ¶
type Repository ¶
type Repository interface { Enact(ctx context.Context, key core.Key) (core.Key, error) Revoke(ctx context.Context, keyID string, payload string, signature string, signedAt time.Time) (core.Key, error) Get(ctx context.Context, keyID string) (core.Key, error) GetAll(ctx context.Context, owner string) ([]core.Key, error) GetRemoteKeyResolution(ctx context.Context, remote string, keyID string) ([]core.Key, error) Clean(ctx context.Context, ccid string) error }
func NewRepository ¶
Click to show internal directories.
Click to hide internal directories.