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

Method CreateUser

database/common/store.go:89–89  ·  view source on GitHub ↗
(ctx context.Context, user params.NewUserParams)

Source from the content-addressed store, hash-verified

87 GetAdminUser(ctx context.Context) (params.User, error)
88
89 CreateUser(ctx context.Context, user params.NewUserParams) (params.User, error)
90 UpdateUser(ctx context.Context, user string, param params.UpdateUserParams) (params.User, error)
91 HasAdminUser(ctx context.Context) bool
92}

Callers 10

SetupTestMethod · 0.65
TestCreateUserMethod · 0.65
TestHasAdminUserMethod · 0.65
InitControllerMethod · 0.65
ImpersonateAdminContextFunction · 0.65
CreateGARMTestUserFunction · 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 7

SetupTestMethod · 0.52
TestCreateUserMethod · 0.52
TestHasAdminUserMethod · 0.52