Documentation ¶
Index ¶
- type Endpoints
- func (e *Endpoints) CollectLogs(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) CreateRunnerTask(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) FetchRunnerTask(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetRunnerTask(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) Info(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) Routes() []httpserver.Endpoint
- func (e *Endpoints) UpdateRunnerTask(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Endpoints ¶
type Endpoints struct {
// contains filtered or unexported fields
}
func (*Endpoints) CollectLogs ¶
func (*Endpoints) CreateRunnerTask ¶
func (*Endpoints) FetchRunnerTask ¶
func (*Endpoints) GetRunnerTask ¶
func (*Endpoints) Info ¶
func (e *Endpoints) Info(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
Info used for health check.
func (*Endpoints) Routes ¶
func (e *Endpoints) Routes() []httpserver.Endpoint
Routes return all endpoints methods, i.e. routes.
type Option ¶
type Option func(*Endpoints)
func WithRunnerTask ¶
func WithRunnerTask(runnerTask *runnertask.RunnerTask) Option
WithRunnerTask set runnerTask .
Click to show internal directories.
Click to hide internal directories.