File: service.go

package info (click to toggle)
golang-github-viant-toolbox 0.33.2-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 1,280 kB
  • sloc: makefile: 16
file content (14 lines) | stat: -rw-r--r-- 350 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package kms

import (
	"context"
	"github.com/viant/toolbox"
)

type Service interface {
	Encrypt(context.Context, *EncryptRequest) (*EncryptResponse, error)

	Decrypt(context.Context, *DecryptRequest) (*DecryptResponse, error)

	Decode(ctx context.Context, decryptRequest *DecryptRequest, factory toolbox.DecoderFactory, target interface{}) error
}