carlos / platform Public

Clone
git clone https://amadan.net/carlos/platform

Plain git — no account needed to clone.

Download

Download this file

1package hostbox
2
3import (
4 "context"
5 "github.com/carlosframework/platform/internal/hostguard"
6)
7
8type InstallationCleanup struct {
9 Guard hostguard.Guard
10 Verify hostguard.CleanupVerify
11}
12
13func (a InstallationCleanup) WithCleanup(ctx context.Context, target hostguard.FenceTarget, write func() error) error {
14 return a.Guard.CleanupRetireInstallationWith(ctx, target, a.Verify, write)
15}
16