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

Method ListGithubEndpoints

runner/github_endpoints.go:102–113  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

100}
101
102func (r *Runner) ListGithubEndpoints(ctx context.Context) ([]params.ForgeEndpoint, error) {
103 if !auth.IsAdmin(ctx) {
104 return nil, runnerErrors.ErrUnauthorized
105 }
106
107 endpoints, err := r.store.ListGithubEndpoints(ctx)
108 if err != nil {
109 return nil, fmt.Errorf("failed to list github endpoints: %w", err)
110 }
111
112 return endpoints, nil
113}

Callers

nothing calls this directly

Calls 2

IsAdminFunction · 0.92
ListGithubEndpointsMethod · 0.65

Tested by

no test coverage detected