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

Method DeleteGithubEndpoint

runner/github_endpoints.go:64–75  ·  view source on GitHub ↗
(ctx context.Context, name string)

Source from the content-addressed store, hash-verified

62}
63
64func (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
77func (r *Runner) UpdateGithubEndpoint(ctx context.Context, name string, param params.UpdateGithubEndpointParams) (params.ForgeEndpoint, error) {
78 if !auth.IsAdmin(ctx) {

Callers

nothing calls this directly

Calls 2

IsAdminFunction · 0.92
DeleteGithubEndpointMethod · 0.65

Tested by

no test coverage detected