MCPcopy Create free account
hub / github.com/cloudbase/garm / getClientOrStub

Method getClientOrStub

runner/pool/watcher.go:40–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38}
39
40func (r *basePoolManager) getClientOrStub() runnerCommon.GithubClient {
41 var err error
42 var ghc runnerCommon.GithubClient
43 ghc, err = ghClient.Client(r.ctx, r.entity)
44 if err != nil {
45 slog.WarnContext(r.ctx, "failed to create github client", "error", err)
46 ghc = &stubGithubClient{
47 err: runnerErrors.NewUnauthorizedError("failed to create github client; please update credentials"),
48 }
49 }
50 return ghc
51}
52
53func (r *basePoolManager) handleEntityUpdate(entity params.ForgeEntity, operation common.OperationType) {
54 slog.DebugContext(r.ctx, "received entity operation", "entity", entity.ID, "operation", operation)

Callers 2

handleEntityUpdateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected