Documentation
¶
Index ¶
- type Repository
- func (r *Repository) Create(_ context.Context, tenantID string, mapping trust.OIDCMapping) error
- func (r *Repository) Delete(_ context.Context, tenantID string) error
- func (r *Repository) Get(_ context.Context, tenantID string) (trust.OIDCMapping, error)
- func (r *Repository) TAdd(tenantID string, mapping trust.OIDCMapping)
- func (r *Repository) TGet(tenantID string) trust.OIDCMapping
- func (r *Repository) Update(_ context.Context, tenantID string, mapping trust.OIDCMapping) error
- type RepositoryOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewInMemRepository ¶
func NewInMemRepository(opts ...RepositoryOption) *Repository
func (*Repository) Create ¶
func (r *Repository) Create(_ context.Context, tenantID string, mapping trust.OIDCMapping) error
func (*Repository) Get ¶
func (r *Repository) Get(_ context.Context, tenantID string) (trust.OIDCMapping, error)
func (*Repository) TAdd ¶
func (r *Repository) TAdd(tenantID string, mapping trust.OIDCMapping)
TAdd is a helper method for tests to add a trust relationship.
func (*Repository) TGet ¶
func (r *Repository) TGet(tenantID string) trust.OIDCMapping
TGet is a helper method for tests to get a trust relationship.
func (*Repository) Update ¶
func (r *Repository) Update(_ context.Context, tenantID string, mapping trust.OIDCMapping) error
type RepositoryOption ¶
type RepositoryOption func(*Repository)
func WithCreateError ¶
func WithCreateError(err error) RepositoryOption
func WithDeleteError ¶
func WithDeleteError(err error) RepositoryOption
func WithGetError ¶
func WithGetError(err error) RepositoryOption
func WithTrust ¶
func WithTrust(tenantID string, mapping trust.OIDCMapping) RepositoryOption
func WithUpdateError ¶
func WithUpdateError(err error) RepositoryOption
Click to show internal directories.
Click to hide internal directories.