worker

package
v2.7.3 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package worker provides the worker for FaaSController.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Worker

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

Worker stores the worker information

func NewWorker

func NewWorker(superSpec *supervisor.Spec) *Worker

NewWorker return a worker

func (*Worker) Close

func (worker *Worker) Close()

Close closes the Egress HTTPServer and Pipelines

func (*Worker) Create

func (worker *Worker) Create(w http.ResponseWriter, r *http.Request)

Create deals with HTTP POST method

func (*Worker) Delete

func (worker *Worker) Delete(w http.ResponseWriter, r *http.Request)

Delete deals with HTTP DELETE

func (*Worker) Get

func (worker *Worker) Get(w http.ResponseWriter, r *http.Request)

Get deals with HTTP GET method request

func (*Worker) List

func (worker *Worker) List(w http.ResponseWriter, r *http.Request)

List deals with HTTP GET method

func (*Worker) Lock

func (worker *Worker) Lock() error

Lock locks the cluster store.

func (*Worker) Start

func (worker *Worker) Start(w http.ResponseWriter, r *http.Request)

Start is a start API which deals with HTTP PUT method

func (*Worker) Stop

func (worker *Worker) Stop(w http.ResponseWriter, r *http.Request)

Stop is a stop API which deals with HTTP PUT method

func (*Worker) Unlock

func (worker *Worker) Unlock()

Unlock unlocks the cluster store.

func (*Worker) UnregisterAPIs

func (worker *Worker) UnregisterAPIs()

UnregisterAPIs unregister APIs

func (*Worker) Update

func (worker *Worker) Update(w http.ResponseWriter, r *http.Request)

Update deals with HTTP PUT method

Jump to

Keyboard shortcuts

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