Documentation
¶
Index ¶
- type Repository
- func (r *Repository) Create(_ context.Context, tenantID string, provider oidc.Provider) error
- func (r *Repository) Delete(_ context.Context, tenantID string) error
- func (r *Repository) Get(_ context.Context, tenantID string) (oidc.Provider, error)
- func (r *Repository) TAdd(tenantID string, provider oidc.Provider)
- func (r *Repository) TGet(tenantID string) oidc.Provider
- func (r *Repository) Update(_ context.Context, tenantID string, provider oidc.Provider) 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) TAdd ¶ added in v0.13.0
func (r *Repository) TAdd(tenantID string, provider oidc.Provider)
TAdd is a helper method for tests to add a trust relationship.
type RepositoryOption ¶ added in v0.13.0
type RepositoryOption func(*Repository)
func WithCreateError ¶ added in v0.13.0
func WithCreateError(err error) RepositoryOption
func WithDeleteError ¶ added in v0.13.0
func WithDeleteError(err error) RepositoryOption
func WithGetError ¶ added in v0.13.0
func WithGetError(err error) RepositoryOption
func WithTrust ¶ added in v0.13.0
func WithTrust(tenantID string, provider oidc.Provider) RepositoryOption
func WithUpdateError ¶ added in v0.13.0
func WithUpdateError(err error) RepositoryOption
Click to show internal directories.
Click to hide internal directories.