Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlueprintFetcher ¶
type BlueprintFetcher struct {
// contains filtered or unexported fields
}
func NewBlueprintFetcher ¶
func NewBlueprintFetcher(target string) *BlueprintFetcher
func (*BlueprintFetcher) NewBlueprintRequest ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) HandleRequest ¶
func (h *Handler) HandleRequest(req *http.Request) (*WorkerResponse, error)
type ScriptFetcher ¶
type ScriptFetcher struct {
// contains filtered or unexported fields
}
func InitScriptFetcher ¶
func InitScriptFetcher() (*ScriptFetcher, error)
func NewScriptFetcher ¶
func NewScriptFetcher(s3Client *s3.Client, bucket string) *ScriptFetcher
func (*ScriptFetcher) FetchScript ¶
type WorkerClient ¶
type WorkerClient struct { Client workerapi.WorkerClient // contains filtered or unexported fields }
func NewWorkerClient ¶
func NewWorkerClient(target string, isInsecure bool) (*WorkerClient, error)
func (*WorkerClient) Close ¶
func (c *WorkerClient) Close()
func (*WorkerClient) NewWorkerRequest ¶
func (c *WorkerClient) NewWorkerRequest(ctx context.Context, req *http.Request) (*WorkerRequest, error)
type WorkerRequest ¶
type WorkerRequest struct { Client *WorkerClient Vmid string Ctx context.Context }
func (*WorkerRequest) Compile ¶
func (w *WorkerRequest) Compile(script string) error
func (*WorkerRequest) Run ¶
func (w *WorkerRequest) Run(req *http.Request, res *http.Response) (*WorkerResponse, error)
type WorkerResponse ¶
type WorkerResponse struct {
*workerapi.RunResponse
}
func (*WorkerResponse) WriteTo ¶
func (w *WorkerResponse) WriteTo(rw http.ResponseWriter)
Click to show internal directories.
Click to hide internal directories.