Documentation
¶
Index ¶
- Variables
- func NewUserObject(userService UserService, email string) (*UserObject, *DBError)
- type DBError
- type DBResult
- type DBService
- type IDE
- type IDERepo
- type IDERuntimeInstall
- type RuntimeInstall
- type User
- type UserIDE
- type UserObject
- func (uo *UserObject) DoesUserHaveIDE(ideName string) (bool, *DBError)
- func (uo *UserObject) DoesUserHaveRuntimeInstallFor(ide IDE, runtimeInstallName string) (bool, *DBError)
- func (uo *UserObject) GetIDE(ideName string) (*IDE, *DBError)
- func (uo *UserObject) IDEs() ([]IDE, *DBError)
- func (uo *UserObject) RuntimeInstallsFor(ide IDE) ([]RuntimeInstall, *DBError)
- func (uo *UserObject) UserIDE(ide IDE) (UserIDE, *DBError)
- type UserRepo
- type UserService
- func (u UserService) Add(user User) (sql.Result, *DBError)
- func (u UserService) AddIDERepo(ideRepo IDERepo) (sql.Result, *DBError)
- func (u UserService) AddIDERuntimeInstall(ideRuntimeInstall IDERuntimeInstall) (sql.Result, *DBError)
- func (u UserService) AddUserIDE(userIDE UserIDE) (sql.Result, *DBError)
- func (u UserService) AddUserRepo(userRepo UserRepo) (sql.Result, *DBError)
- func (u UserService) Delete(id int64) *DBError
- func (u UserService) DeleteALLIDEReposForUser(userID int64) *DBError
- func (u UserService) DeleteALLIDERuntimeInstallsForUser(userID int64) *DBError
- func (u UserService) DeleteALLUserIDEsForUser(userID int64) *DBError
- func (u UserService) DeleteALLUserReposForUser(userID int64) *DBError
- func (u UserService) FindIDEByID(id int64) (IDE, *DBError)
- func (u UserService) FindIDEByName(name string) (IDE, *DBError)
- func (u UserService) FindIDEReposByUserID(userID int64) ([]int64, *DBError)
- func (u UserService) FindIDERuntimeInstallsByUserIDE(userIDE UserIDE) ([]IDERuntimeInstall, *DBError)
- func (u UserService) FindRuntimeInstallByID(id int64) (RuntimeInstall, *DBError)
- func (u UserService) FindRuntimeInstallByName(name string) (RuntimeInstall, *DBError)
- func (u UserService) FindUserByEmail(email string) (User, *DBError)
- func (u UserService) FindUserByGoogleID(googleIDHashed string) (User, *DBError)
- func (u UserService) FindUserByHashedEmail(hashedEmail string) (User, *DBError)
- func (u UserService) FindUserByUsername(username string) (User, *DBError)
- func (u UserService) FindUserIDEReroURIsByUserAndIDE(username string, ide string) ([]string, *DBError)
- func (u UserService) FindUserIDERuntimeInstallNamesByUserAndIDE(username string, ide string) ([]string, *DBError)
- func (u UserService) FindUserIDERuntimeInstallsByUserAndIDE(username string, ide string) ([]string, *DBError)
- func (u UserService) FindUserIDEsByUser(user User) ([]UserIDE, *DBError)
- func (u UserService) FindUserIDEsByUserID(userID int64) ([]string, *DBError)
- func (u UserService) FindUserReposUserID(userID int64) ([]int64, *DBError)
- func (u UserService) Get(id int64) (User, *DBError)
- func (u UserService) List() ([]User, *DBError)
- func (u UserService) UpdateGoogleID(user User) (sql.Result, *DBError)
- func (u UserService) UpdateProfile(user User) (sql.Result, *DBError)
Constants ¶
This section is empty.
Variables ¶
View Source
var CreateSchema = `` /* 2726-byte string literal not displayed */
View Source
var DropSchema = `` /* 292-byte string literal not displayed */
Functions ¶
func NewUserObject ¶ added in v0.1.15
func NewUserObject(userService UserService, email string) (*UserObject, *DBError)
Types ¶
type DBError ¶
type DBResult ¶
type DBResult struct {
// contains filtered or unexported fields
}
func (DBResult) LastInsertId ¶
func (DBResult) RowsAffected ¶
type IDERuntimeInstall ¶
type RuntimeInstall ¶
type User ¶
type User struct { ID int64 `db:"id"` GoogleID string `db:"google_id"` Username string `db:"username"` Password string `db:"password"` Email string `db:"email"` HashedEmail string `db:"hashed_email"` IsActive bool `db:"is_active"` PrivateKey string `db:"private_key"` PublicKey string `db:"public_key"` PublicKeyID int64 `db:"public_key_id"` DockerTag string }
type UserObject ¶ added in v0.1.15
type UserObject struct { User UserService UserService }
func (*UserObject) DoesUserHaveIDE ¶ added in v0.1.15
func (uo *UserObject) DoesUserHaveIDE(ideName string) (bool, *DBError)
func (*UserObject) DoesUserHaveRuntimeInstallFor ¶ added in v0.1.15
func (uo *UserObject) DoesUserHaveRuntimeInstallFor(ide IDE, runtimeInstallName string) (bool, *DBError)
func (*UserObject) GetIDE ¶ added in v0.1.15
func (uo *UserObject) GetIDE(ideName string) (*IDE, *DBError)
func (*UserObject) IDEs ¶ added in v0.1.15
func (uo *UserObject) IDEs() ([]IDE, *DBError)
func (*UserObject) RuntimeInstallsFor ¶ added in v0.1.15
func (uo *UserObject) RuntimeInstallsFor(ide IDE) ([]RuntimeInstall, *DBError)
type UserService ¶
type UserService struct {
*DBService
}
func NewUserService ¶
func NewUserService(db *sqlx.DB) UserService
func (UserService) AddIDERepo ¶
func (u UserService) AddIDERepo(ideRepo IDERepo) (sql.Result, *DBError)
func (UserService) AddIDERuntimeInstall ¶
func (u UserService) AddIDERuntimeInstall(ideRuntimeInstall IDERuntimeInstall) (sql.Result, *DBError)
func (UserService) AddUserIDE ¶
func (u UserService) AddUserIDE(userIDE UserIDE) (sql.Result, *DBError)
func (UserService) AddUserRepo ¶
func (u UserService) AddUserRepo(userRepo UserRepo) (sql.Result, *DBError)
func (UserService) Delete ¶
func (u UserService) Delete(id int64) *DBError
func (UserService) DeleteALLIDEReposForUser ¶
func (u UserService) DeleteALLIDEReposForUser(userID int64) *DBError
func (UserService) DeleteALLIDERuntimeInstallsForUser ¶
func (u UserService) DeleteALLIDERuntimeInstallsForUser(userID int64) *DBError
func (UserService) DeleteALLUserIDEsForUser ¶
func (u UserService) DeleteALLUserIDEsForUser(userID int64) *DBError
func (UserService) DeleteALLUserReposForUser ¶
func (u UserService) DeleteALLUserReposForUser(userID int64) *DBError
func (UserService) FindIDEByID ¶ added in v0.1.15
func (u UserService) FindIDEByID(id int64) (IDE, *DBError)
func (UserService) FindIDEByName ¶
func (u UserService) FindIDEByName(name string) (IDE, *DBError)
func (UserService) FindIDEReposByUserID ¶
func (u UserService) FindIDEReposByUserID(userID int64) ([]int64, *DBError)
func (UserService) FindIDERuntimeInstallsByUserIDE ¶ added in v0.1.15
func (u UserService) FindIDERuntimeInstallsByUserIDE(userIDE UserIDE) ([]IDERuntimeInstall, *DBError)
func (UserService) FindRuntimeInstallByID ¶ added in v0.1.15
func (u UserService) FindRuntimeInstallByID(id int64) (RuntimeInstall, *DBError)
func (UserService) FindRuntimeInstallByName ¶
func (u UserService) FindRuntimeInstallByName(name string) (RuntimeInstall, *DBError)
func (UserService) FindUserByEmail ¶
func (u UserService) FindUserByEmail(email string) (User, *DBError)
func (UserService) FindUserByGoogleID ¶
func (u UserService) FindUserByGoogleID(googleIDHashed string) (User, *DBError)
func (UserService) FindUserByHashedEmail ¶
func (u UserService) FindUserByHashedEmail(hashedEmail string) (User, *DBError)
func (UserService) FindUserByUsername ¶
func (u UserService) FindUserByUsername(username string) (User, *DBError)
func (UserService) FindUserIDEReroURIsByUserAndIDE ¶
func (u UserService) FindUserIDEReroURIsByUserAndIDE(username string, ide string) ([]string, *DBError)
func (UserService) FindUserIDERuntimeInstallNamesByUserAndIDE ¶ added in v0.1.14
func (u UserService) FindUserIDERuntimeInstallNamesByUserAndIDE(username string, ide string) ([]string, *DBError)
func (UserService) FindUserIDERuntimeInstallsByUserAndIDE ¶
func (u UserService) FindUserIDERuntimeInstallsByUserAndIDE(username string, ide string) ([]string, *DBError)
func (UserService) FindUserIDEsByUser ¶ added in v0.1.15
func (u UserService) FindUserIDEsByUser(user User) ([]UserIDE, *DBError)
FindUserIDEsByUser finds UserIDE by user
func (UserService) FindUserIDEsByUserID ¶
func (u UserService) FindUserIDEsByUserID(userID int64) ([]string, *DBError)
func (UserService) FindUserReposUserID ¶
func (u UserService) FindUserReposUserID(userID int64) ([]int64, *DBError)
func (UserService) List ¶
func (u UserService) List() ([]User, *DBError)
func (UserService) UpdateGoogleID ¶
func (u UserService) UpdateGoogleID(user User) (sql.Result, *DBError)
func (UserService) UpdateProfile ¶
func (u UserService) UpdateProfile(user User) (sql.Result, *DBError)
Click to show internal directories.
Click to hide internal directories.