github.com/kubeshop/testkube@v1.17.23/pkg/logs/state/nats.go (about) 1 package state 2 3 import ( 4 "context" 5 6 "github.com/nats-io/nats.go/jetstream" 7 ) 8 9 // KV is type implicitly interfaced from NATS 10 type NatsKV interface { 11 Get(ctx context.Context, key string) (jetstream.KeyValueEntry, error) 12 Put(ctx context.Context, key string, value []byte) (uint64, error) 13 }