Documentation ¶
Index ¶
- Variables
- func ConfigureAPI(api *operations.DlframeworkAPI) http.Handler
- func LoginHandler(params authentication.LoginParams, principal *models.User) middleware.Responder
- func LogoutHandler(params authentication.LogoutParams) middleware.Responder
- func RegistryFrameworkAgentsHandler(params registry.FrameworkAgentsParams) middleware.Responder
- func RegistryFrameworkManifestsHandler(params registry.FrameworkManifestsParams) middleware.Responder
- func RegistryModelAgentsHandler(params registry.ModelAgentsParams) middleware.Responder
- func RegistryModelManifestsHandler(params registry.ModelManifestsParams) middleware.Responder
- func ServeError(rw http.ResponseWriter, r *http.Request, err error)
- func SignupHandler(params authentication.SignupParams) middleware.Responder
- func UserInfoHandler(params authentication.UserInfoParams) middleware.Responder
- type Error
- func (e *Error) Code() int32
- func (e *Error) Error() string
- func (e *Error) MarshalJSON() ([]byte, error)
- func (e *Error) WithCode(code int) *Error
- func (e *Error) WithMessage(message error) *Error
- func (e *Error) WithName(name string) *Error
- func (e *Error) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type MemStorer
- func (m MemStorer) AddRememberToken(ctx context.Context, pid, token string) error
- func (m MemStorer) Create(ctx context.Context, user authboss.User) error
- func (m MemStorer) DelRememberTokens(ctx context.Context, pid string) error
- func (m MemStorer) Load(ctx context.Context, key string) (user authboss.User, err error)
- func (m MemStorer) New(ctx context.Context) authboss.User
- func (m MemStorer) Save(ctx context.Context, user authboss.User) error
- func (m MemStorer) UseRememberToken(ctx context.Context, pid, token string) error
- type PredictHandler
- func (p *PredictHandler) Close(params predict.CloseParams) middleware.Responder
- func (p *PredictHandler) Dataset(params predict.DatasetParams) middleware.Responder
- func (p *PredictHandler) Images(params predict.ImagesParams) middleware.Responder
- func (p *PredictHandler) Open(params predict.OpenParams) middleware.Responder
- func (p *PredictHandler) Reset(params predict.ResetParams) middleware.Responder
- func (p *PredictHandler) URLs(params predict.URLsParams) middleware.Responder
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Ab = ab
)
Functions ¶
func ConfigureAPI ¶
func ConfigureAPI(api *operations.DlframeworkAPI) http.Handler
func LoginHandler ¶ added in v0.3.0
func LoginHandler(params authentication.LoginParams, principal *models.User) middleware.Responder
func LogoutHandler ¶ added in v0.3.0
func LogoutHandler(params authentication.LogoutParams) middleware.Responder
func RegistryFrameworkAgentsHandler ¶
func RegistryFrameworkAgentsHandler(params registry.FrameworkAgentsParams) middleware.Responder
func RegistryFrameworkManifestsHandler ¶
func RegistryFrameworkManifestsHandler(params registry.FrameworkManifestsParams) middleware.Responder
func RegistryModelAgentsHandler ¶
func RegistryModelAgentsHandler(params registry.ModelAgentsParams) middleware.Responder
func RegistryModelManifestsHandler ¶
func RegistryModelManifestsHandler(params registry.ModelManifestsParams) middleware.Responder
func ServeError ¶
func ServeError(rw http.ResponseWriter, r *http.Request, err error)
ServeError the error handler interface implemenation
func SignupHandler ¶ added in v0.3.0
func SignupHandler(params authentication.SignupParams) middleware.Responder
func UserInfoHandler ¶ added in v0.3.0
func UserInfoHandler(params authentication.UserInfoParams) middleware.Responder
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
func (*Error) MarshalJSON ¶
func (*Error) WithMessage ¶
func (*Error) WriteResponse ¶
func (e *Error) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
type MemStorer ¶ added in v0.3.0
MemStorer stores users in memory Indexed by Username => must be unique TODO: verify that username is unique
func (MemStorer) AddRememberToken ¶ added in v0.3.0
AddRememberToken to a user
func (MemStorer) DelRememberTokens ¶ added in v0.3.0
DelRememberTokens removes all tokens for the given pid
type PredictHandler ¶ added in v0.2.16
type PredictHandler struct {
// contains filtered or unexported fields
}
func (*PredictHandler) Close ¶ added in v0.2.16
func (p *PredictHandler) Close(params predict.CloseParams) middleware.Responder
func (*PredictHandler) Dataset ¶ added in v0.2.16
func (p *PredictHandler) Dataset(params predict.DatasetParams) middleware.Responder
func (*PredictHandler) Images ¶ added in v0.2.16
func (p *PredictHandler) Images(params predict.ImagesParams) middleware.Responder
func (*PredictHandler) Open ¶ added in v0.2.16
func (p *PredictHandler) Open(params predict.OpenParams) middleware.Responder
func (*PredictHandler) Reset ¶ added in v0.2.16
func (p *PredictHandler) Reset(params predict.ResetParams) middleware.Responder
func (*PredictHandler) URLs ¶ added in v0.2.16
func (p *PredictHandler) URLs(params predict.URLsParams) middleware.Responder
type User ¶ added in v0.3.0
type User struct { ID int // Non-authboss related field FirstName string LastName string Affiliation string // Auth Email string Username string Password string }
User struct for authboss
func (*User) PutPassword ¶ added in v0.3.0
PutPassword into user
func (*User) PutUsername ¶ added in v0.3.0
PutUsername into user
Click to show internal directories.
Click to hide internal directories.