src/jetstream/repository/localusers/localusers.go
package localusers
import (
"time"
"github.com/cloudfoundry-incubator/stratos/src/jetstream/repository/interfaces"
)
// Repository is an application of the repository pattern for storing local users
type Repository interface {
AddLocalUser(user interfaces.LocalUser) error
UpdateLocalUser(user interfaces.LocalUser) error
FindPasswordHash(userGUID string) ([]byte, error)
FindUserGUID(username string) (string, error)
FindUserScope(userGUID string) (string, error)
FindUser(userGUID string) (interfaces.LocalUser, error)
UpdateLastLoginTime(userGUID string, loginTime time.Time) error
FindLastLoginTime(userGUID string) (time.Time, error)
}