MCPcopy Create free account
hub / github.com/cloudbase/garm / GetUserByID

Method GetUserByID

database/common/store.go:86–86  ·  view source on GitHub ↗
(ctx context.Context, userID string)

Source from the content-addressed store, hash-verified

84type UserStore interface {
85 GetUser(ctx context.Context, user string) (params.User, error)
86 GetUserByID(ctx context.Context, userID string) (params.User, error)
87 GetAdminUser(ctx context.Context) (params.User, error)
88
89 CreateUser(ctx context.Context, user params.NewUserParams) (params.User, error)

Callers 5

TestCreateUserMethod · 0.65
TestGetUserMethod · 0.65
TestGetUserByIDMethod · 0.65
claimsToContextMethod · 0.65

Implementers 3

sqlDatabasedatabase/sql/sql.go
Storedatabase/common/mocks/Store.go
Store_Expecterdatabase/common/mocks/Store.go

Calls

no outgoing calls

Tested by 4

TestCreateUserMethod · 0.52
TestGetUserMethod · 0.52
TestGetUserByIDMethod · 0.52