package
0.0.0-20230203053511-a9e947c2086e
Repository: https://github.com/sparcs-kaist/whale.git
Documentation: pkg.go.dev

# Functions

Error writes an API error message to the response and logger.
NewAuthHandler returns a new instance of AuthHandler.
NewDockerHandler returns a new instance of DockerHandler.
NewEndpointHandler returns a new instance of EndpointHandler.
NewSettingsHandler returns a new instance of SettingsHandler.
No description provided by the author
NewTemplatesHandler returns a new instance of TemplatesHandler.
NewUploadHandler returns a new instance of UploadHandler.
NewUserHandler returns a new instance of UserHandler.
NewWebSocketHandler returns a new instance of WebSocketHandler.

# Constants

No description provided by the author
ErrAuthDisabled is an error raised when trying to access the authentication endpoints when the server has been started with the --no-auth flag.
ErrEmptyResponseBody defines an error raised when whale excepts to parse the body of a HTTP response and there is nothing to parse.
ErrEndpointManagementDisabled is an error raised when trying to access the endpoints management endpoints when the server has been started with the --external-endpoints flag.
ErrInvalidCredentials is an error raised when credentials for a user are invalid.
ErrInvalidCredentialsFormat is an error raised when credentials format is not valid.
ErrInvalidJSON defines an error raised the app is unable to parse request data.
ErrInvalidQueryFormat defines an error raised when the data sent in the query or the URL is invalid.
ErrInvalidRequestFormat defines an error raised when the format of the data sent in a request is not valid.

# Structs

AuthHandler represents an HTTP API handler for managing authentication.
DockerHandler represents an HTTP API handler for proxying requests to the Docker API.
EndpointHandler represents an HTTP API handler for managing Docker endpoints.
FileHandler represents an HTTP API handler for managing static files.
Handler is a collection of all the service handlers.
ProxyFactory is a factory to create reverse proxies to Docker endpoints.
Server implements the whale.Server interface.
SettingsHandler represents an HTTP API handler for managing settings.
No description provided by the author
No description provided by the author
TemplatesHandler represents an HTTP API handler for managing templates.
UploadHandler represents an HTTP API handler for managing file uploads.
UserHandler represents an HTTP API handler for managing users.
WebSocketHandler represents an HTTP API handler for proxying requests to a web socket.