Go API Documentation

github.com/semaphoreui/semaphore/api/runners

No package summary is available.

Package

Files: 1. Third party imports: 2. Imports from organisation: 0. Tests: 0. Benchmarks: 0.

Functions

func GetRunner

Uses: context.Get, db.AccessKey, db.Runner, helpers.Store, helpers.TaskPool, helpers.WriteError, helpers.WriteJSON, http.StatusOK, json.Marshal, log.Fields, log.WithFields, runners.JobData, runners.JobState, runners.RunnerState.

func RegisterRunner

Uses: db.Runner, helpers.Bind, helpers.Store, helpers.WriteJSON, http.StatusBadRequest, http.StatusInternalServerError, http.StatusOK, runners.RunnerRegistration, util.Config.

func RunnerMiddleware

Uses: context.Set, helpers.Store, helpers.WriteJSON, http.HandlerFunc, http.Request, http.ResponseWriter, http.StatusNotFound, http.StatusUnauthorized.

func UnregisterRunner

Uses: context.Get, db.Runner, helpers.Store, helpers.WriteJSON, http.StatusInternalServerError, http.StatusNoContent.

func UpdateRunner

Uses: context.Get, db.Runner, helpers.Bind, helpers.TaskPool, helpers.WriteErrorStatus, helpers.WriteJSON, http.StatusBadRequest, http.StatusNoContent, runners.RunnerProgress.

Private functions

func chunkRSAEncrypt

References: bytes.Buffer, fmt.Errorf, rand.Reader, rsa.EncryptPKCS1v15.

func loadPublicKey

References: fmt.Errorf, pem.Decode, x509.ParsePKCS1PublicKey.