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 ¶
func LoginHandler(params authentication.LoginParams, principal *models.User) middleware.Responder
func LogoutHandler ¶
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 ¶
func SignupHandler(params authentication.SignupParams) middleware.Responder
func UserInfoHandler ¶
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 ¶
MemStorer stores users in memory Indexed by Username => must be unique TODO: verify that username is unique
func (MemStorer) AddRememberToken ¶
AddRememberToken to a user
func (MemStorer) DelRememberTokens ¶
DelRememberTokens removes all tokens for the given pid
type PredictHandler ¶
type PredictHandler struct {
// contains filtered or unexported fields
}
func (*PredictHandler) Close ¶
func (p *PredictHandler) Close(params predict.CloseParams) middleware.Responder
func (*PredictHandler) Dataset ¶
func (p *PredictHandler) Dataset(params predict.DatasetParams) middleware.Responder
func (*PredictHandler) Images ¶
func (p *PredictHandler) Images(params predict.ImagesParams) middleware.Responder
func (*PredictHandler) Open ¶
func (p *PredictHandler) Open(params predict.OpenParams) middleware.Responder
func (*PredictHandler) Reset ¶
func (p *PredictHandler) Reset(params predict.ResetParams) middleware.Responder
func (*PredictHandler) URLs ¶
func (p *PredictHandler) URLs(params predict.URLsParams) middleware.Responder
Click to show internal directories.
Click to hide internal directories.