Documentation
¶
Index ¶
- type AcquireProblemEnvironmentRequest
- type AcquireProblemEnvironmentResponse
- type ErrNoAvailableProblemEnvironment
- type ErrProblemEnvironmentNotFound
- type ErrProblemNotFound
- type ErrWorkerNotFound
- type Gateway
- func (g *Gateway) AcquireProblemEnvironment(ctx context.Context, problemName string) (*ProblemEnvironment, error)
- func (g *Gateway) AcquireProblemEnvironmentHandler(w http.ResponseWriter, r *http.Request)
- func (g *Gateway) GetProblemEnvironment(ctx context.Context, name string) (*ProblemEnvironment, error)
- func (g *Gateway) GetProblemEnvironmentController(w http.ResponseWriter, r *http.Request)
- func (g *Gateway) ReleaseProblemEnvironment(ctx context.Context, name string) error
- func (g *Gateway) ReleaseProblemEnvironmentHandler(w http.ResponseWriter, r *http.Request)
- func (g *Gateway) Start(ctx context.Context) error
- type GetProblemEnvironmentResponse
- type ProblemEnvironment
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AcquireProblemEnvironmentRequest ¶
type AcquireProblemEnvironmentRequest struct {
ProblemName string `json:"problemName"`
}
type AcquireProblemEnvironmentResponse ¶
type AcquireProblemEnvironmentResponse ProblemEnvironment
type ErrNoAvailableProblemEnvironment ¶
type ErrNoAvailableProblemEnvironment struct {
// contains filtered or unexported fields
}
func AsErrNoAvailableProblemEnvironment ¶
func AsErrNoAvailableProblemEnvironment(err error) (*ErrNoAvailableProblemEnvironment, bool)
func (ErrNoAvailableProblemEnvironment) Error ¶
func (e ErrNoAvailableProblemEnvironment) Error() string
type ErrProblemEnvironmentNotFound ¶
type ErrProblemEnvironmentNotFound struct {
// contains filtered or unexported fields
}
func AsErrProblemEnvironmentNotFound ¶
func AsErrProblemEnvironmentNotFound(err error) (*ErrProblemEnvironmentNotFound, bool)
func (ErrProblemEnvironmentNotFound) Error ¶
func (e ErrProblemEnvironmentNotFound) Error() string
type ErrProblemNotFound ¶
type ErrProblemNotFound struct {
// contains filtered or unexported fields
}
func AsErrProblemNotFound ¶
func AsErrProblemNotFound(err error) (*ErrProblemNotFound, bool)
func (ErrProblemNotFound) Error ¶
func (e ErrProblemNotFound) Error() string
type ErrWorkerNotFound ¶
type ErrWorkerNotFound struct {
// contains filtered or unexported fields
}
func AsErrWorkerNotFound ¶
func AsErrWorkerNotFound(err error) (*ErrWorkerNotFound, bool)
func (ErrWorkerNotFound) Error ¶
func (e ErrWorkerNotFound) Error() string
type Gateway ¶
type Gateway struct { client.Client Recorder record.EventRecorder }
func (*Gateway) AcquireProblemEnvironment ¶
func (*Gateway) AcquireProblemEnvironmentHandler ¶
func (g *Gateway) AcquireProblemEnvironmentHandler(w http.ResponseWriter, r *http.Request)
func (*Gateway) GetProblemEnvironment ¶
func (*Gateway) GetProblemEnvironmentController ¶
func (g *Gateway) GetProblemEnvironmentController(w http.ResponseWriter, r *http.Request)
func (*Gateway) ReleaseProblemEnvironment ¶
func (*Gateway) ReleaseProblemEnvironmentHandler ¶
func (g *Gateway) ReleaseProblemEnvironmentHandler(w http.ResponseWriter, r *http.Request)
type GetProblemEnvironmentResponse ¶
type GetProblemEnvironmentResponse ProblemEnvironment
Click to show internal directories.
Click to hide internal directories.