mocks

package
v0.0.0-...-f17446d Latest Latest
Warning

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

Go to latest
Published: May 14, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGroupRepository

func NewGroupRepository() auth.GroupRepository

NewGroupRepository creates in-memory user repository

func NewKetoMock

func NewKetoMock(db map[string][]MockSubjectSet) auth.PolicyAgent

NewKetoMock returns a mock service for Keto. This mock is not implemented yet.

func NewKeyRepository

func NewKeyRepository() auth.KeyRepository

NewKeyRepository creates in-memory user repository

Types

type MockSubjectSet

type MockSubjectSet struct {
	Object   string
	Relation string
}

Jump to

Keyboard shortcuts

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