(ctx context.Context, name string)
| 62 | } |
| 63 | |
| 64 | func (r *Runner) DeleteGithubEndpoint(ctx context.Context, name string) error { |
| 65 | if !auth.IsAdmin(ctx) { |
| 66 | return runnerErrors.ErrUnauthorized |
| 67 | } |
| 68 | |
| 69 | err := r.store.DeleteGithubEndpoint(ctx, name) |
| 70 | if err != nil { |
| 71 | return fmt.Errorf("failed to delete github endpoint: %w", err) |
| 72 | } |
| 73 | |
| 74 | return nil |
| 75 | } |
| 76 | |
| 77 | func (r *Runner) UpdateGithubEndpoint(ctx context.Context, name string, param params.UpdateGithubEndpointParams) (params.ForgeEndpoint, error) { |
| 78 | if !auth.IsAdmin(ctx) { |
nothing calls this directly
no test coverage detected