MCPcopy
hub / github.com/basecamp/once / VerifyHTTPOrRemove

Method VerifyHTTPOrRemove

internal/docker/application.go:201–210  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

199}
200
201func (a *Application) VerifyHTTPOrRemove(ctx context.Context) error {
202 if err := a.verifyHTTP(ctx); err != nil {
203 if cleanupErr := a.Remove(context.Background(), true); cleanupErr != nil {
204 slog.Error("Failed to clean up after verification failure", "app", a.Settings.Name, "error", cleanupErr)
205 }
206 return err
207 }
208
209 return nil
210}
211
212func (a *Application) Remove(ctx context.Context, removeData bool) error {
213 if err := a.namespace.Proxy().Remove(ctx, a.Settings.Name); err != nil {

Callers 3

runMethod · 0.95
runInstallMethod · 0.95

Calls 3

verifyHTTPMethod · 0.95
RemoveMethod · 0.95
ErrorMethod · 0.45