github.com/pf-qiu/concourse/v6@v6.7.3-0.20201207032516-1f455d73275f/worker/tsa_client_iface.go (about) 1 package worker 2 3 import ( 4 "context" 5 6 "github.com/pf-qiu/concourse/v6/tsa" 7 ) 8 9 //go:generate counterfeiter . TSAClient 10 11 type TSAClient interface { 12 Register(context.Context, tsa.RegisterOptions) error 13 14 Land(context.Context) error 15 Retire(context.Context) error 16 Delete(context.Context) error 17 18 ReportContainers(context.Context, []string) error 19 ContainersToDestroy(context.Context) ([]string, error) 20 21 ReportVolumes(context.Context, []string) error 22 VolumesToDestroy(context.Context) ([]string, error) 23 }