Documentation
¶
Index ¶
- type CanaryStore
- func (s *CanaryStore) Create(ctx context.Context, canary *model.EncryptionCanary) error
- func (s *CanaryStore) CreateOrUpdate(ctx context.Context, canary *model.EncryptionCanary) error
- func (s *CanaryStore) Delete(ctx context.Context, strategy, keyID string) (bool, error)
- func (s *CanaryStore) Get(ctx context.Context, strategy, keyID string) (*model.EncryptionCanary, error)
- func (s *CanaryStore) InitialMigration(ctx context.Context) error
- func (s *CanaryStore) List(ctx context.Context) ([]model.EncryptionCanary, error)
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CanaryStore ¶
type CanaryStore struct {
// contains filtered or unexported fields
}
func (*CanaryStore) Create ¶
func (s *CanaryStore) Create(ctx context.Context, canary *model.EncryptionCanary) error
func (*CanaryStore) CreateOrUpdate ¶
func (s *CanaryStore) CreateOrUpdate(ctx context.Context, canary *model.EncryptionCanary) error
func (*CanaryStore) Get ¶
func (s *CanaryStore) Get(ctx context.Context, strategy, keyID string) (*model.EncryptionCanary, error)
func (*CanaryStore) InitialMigration ¶
func (s *CanaryStore) InitialMigration(ctx context.Context) error
func (*CanaryStore) List ¶
func (s *CanaryStore) List(ctx context.Context) ([]model.EncryptionCanary, error)
type Store ¶
type Store interface {
InitialMigration(ctx context.Context) error
Get(ctx context.Context, strategy, keyID string) (*model.EncryptionCanary, error)
Create(ctx context.Context, canary *model.EncryptionCanary) error
CreateOrUpdate(ctx context.Context, canary *model.EncryptionCanary) error
Delete(ctx context.Context, strategy, keyID string) (bool, error)
List(ctx context.Context) ([]model.EncryptionCanary, error)
}
func NewCanaryStore ¶
func NewCanaryStore(db *gorm.DB, log logrus.FieldLogger) Store
Click to show internal directories.
Click to hide internal directories.