github.com/kubeshop/testkube@v1.17.23/pkg/logs/adapter/interface.go (about) 1 package adapter 2 3 import ( 4 "context" 5 6 "github.com/kubeshop/testkube/pkg/logs/events" 7 ) 8 9 // Adapter will listen to log chunks, and handle them based on log id (execution Id) 10 type Adapter interface { 11 // Init will init for given id 12 Init(ctx context.Context, id string) error 13 // Notify will send data log events for particaular execution id 14 Notify(ctx context.Context, id string, event events.Log) error 15 // Stop will stop listening subscriber from sending data 16 Stop(ctx context.Context, id string) error 17 // Name subscriber name 18 Name() string 19 }