canary

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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) Delete

func (s *CanaryStore) Delete(ctx context.Context, strategy, keyID string) (bool, 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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL