Documentation ¶
Index ¶
- type Store
- func (s *Store) Create(ctx context.Context, id string, alg *entities2.Algorithm, ...) (*entities.Key, error)
- func (s *Store) Decrypt(_ context.Context, id string, data []byte) ([]byte, error)
- func (s *Store) Delete(ctx context.Context, id string) error
- func (s *Store) Destroy(_ context.Context, _ string) error
- func (s *Store) Encrypt(_ context.Context, id string, data []byte) ([]byte, error)
- func (s *Store) Get(ctx context.Context, id string) (*entities.Key, error)
- func (s *Store) GetDeleted(_ context.Context, _ string) (*entities.Key, error)
- func (s *Store) Import(_ context.Context, _ string, _ []byte, _ *entities2.Algorithm, ...) (*entities.Key, error)
- func (s *Store) Info(context.Context) (*entities.Store, error)
- func (s *Store) List(ctx context.Context, _, _ uint64) ([]string, error)
- func (s *Store) ListDeleted(_ context.Context, _, _ uint64) ([]string, error)
- func (s *Store) Restore(ctx context.Context, id string) error
- func (s *Store) Sign(ctx context.Context, id string, data []byte, _ *entities2.Algorithm) ([]byte, error)
- func (s *Store) Update(ctx context.Context, id string, attr *entities.Attributes) (*entities.Key, error)
- func (s *Store) Verify(_ context.Context, pubKey, data, sig []byte, algo *entities2.Algorithm) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) Destroy ¶
Destroy destroys an externally created key and stores it this feature is not supported by AWS kms always returns errors.ErrNotSupported
func (*Store) GetDeleted ¶
func (*Store) Import ¶
func (s *Store) Import(_ context.Context, _ string, _ []byte, _ *entities2.Algorithm, _ *entities.Attributes) (*entities.Key, error)
Import an externally created key and stores it this feature is not supported by AWS kms always returns errors.ErrNotSupported
func (*Store) ListDeleted ¶
Click to show internal directories.
Click to hide internal directories.