controllers

package
v0.0.0-...-07c265d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

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

type ErrProblemEnvironmentNotFound

type ErrProblemEnvironmentNotFound struct {
	// contains filtered or unexported fields
}

func AsErrProblemEnvironmentNotFound

func AsErrProblemEnvironmentNotFound(err error) (*ErrProblemEnvironmentNotFound, bool)

func (ErrProblemEnvironmentNotFound) Error

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 (g *Gateway) AcquireProblemEnvironment(ctx context.Context, problemName string) (*ProblemEnvironment, error)

func (*Gateway) AcquireProblemEnvironmentHandler

func (g *Gateway) AcquireProblemEnvironmentHandler(w http.ResponseWriter, r *http.Request)

func (*Gateway) GetProblemEnvironment

func (g *Gateway) GetProblemEnvironment(ctx context.Context, name string) (*ProblemEnvironment, error)

func (*Gateway) GetProblemEnvironmentController

func (g *Gateway) GetProblemEnvironmentController(w http.ResponseWriter, r *http.Request)

func (*Gateway) ReleaseProblemEnvironment

func (g *Gateway) ReleaseProblemEnvironment(ctx context.Context, name string) error

func (*Gateway) ReleaseProblemEnvironmentHandler

func (g *Gateway) ReleaseProblemEnvironmentHandler(w http.ResponseWriter, r *http.Request)

func (*Gateway) Start

func (g *Gateway) Start(ctx context.Context) error

type GetProblemEnvironmentResponse

type GetProblemEnvironmentResponse ProblemEnvironment

type ProblemEnvironment

type ProblemEnvironment struct {
	Name     string `json:"name"`
	Host     string `json:"host"`
	Port     uint16 `json:"port"`
	User     string `json:"user"`
	Password string `json:"password"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL