Documentation
¶
Index ¶
- Variables
- type SecretMeta
- type Store
- func (s *Store) Cleanup() (int, error)
- func (s *Store) Close()
- func (s *Store) Create(id string, encrypted, iv []byte, viewsLeft int, expiresAt time.Time, ...) error
- func (s *Store) Delete(id string, deleteToken string) error
- func (s *Store) Get(id string) (encrypted, iv []byte, err error)
- func (s *Store) List() ([]SecretMeta, error)
- func (s *Store) Ping() error
- func (s *Store) Status(id string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrExpired = errors.New("secret expired or consumed")
View Source
var ErrNotFound = errors.New("secret not found")
Functions ¶
This section is empty.
Types ¶
type SecretMeta ¶
SecretMeta is the return type for List(), used by the MCP list_secrets tool.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) Create ¶
func (s *Store) Create(id string, encrypted, iv []byte, viewsLeft int, expiresAt time.Time, deleteToken string) error
Create stores a new secret.
func (*Store) List ¶
func (s *Store) List() ([]SecretMeta, error)
Click to show internal directories.
Click to hide internal directories.