Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterProvider ¶
func RegisterProvider(name string, constructor ProviderConstructor) error
RegisterProvider adds a team provider constructor.
Types ¶
type Provider ¶
type Provider interface {
// Query discovers teams by name/tags/scope.
Query(ctx context.Context, query schema.TeamQuery) ([]schema.Team, error)
// Get returns a single team by its canonical ID.
Get(ctx context.Context, id string) (schema.Team, error)
// Members returns a best-effort snapshot of members for a given team.
// Callers pass the canonical team ID (schema.Team.ID).
Members(ctx context.Context, teamID string) ([]schema.TeamMember, error)
}
Provider defines the capability surface a team adapter must satisfy.
type ProviderConstructor ¶
ProviderConstructor builds a team provider from decrypted configuration.
func LookupProvider ¶
func LookupProvider(name string) (ProviderConstructor, bool)
LookupProvider returns a named provider constructor if registered.
Click to show internal directories.
Click to hide internal directories.