access.go
1package access
2
3import (
4 "context"
5
6 "github.com/charmbracelet/soft-serve/server/auth"
7)
8
9// Access is an interface that represents repository access.
10type Access interface {
11 // AccessLevel returns the access level for the given repo.
12 AccessLevel(ctx context.Context, repo string, user auth.User) (AccessLevel, error)
13}