hsmdbout

package
v0.0.0-...-29e199f Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package hsmdbout defines the output database adapters for the HSMModule resource.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	// contains filtered or unexported fields
}

Repository implementation of hsmmodule.HSMModuleStorage

func NewRepository

func NewRepository(options RepositoryOptions) (*Repository, error)

NewRepository creates a Repository with the given options

func (*Repository) Add

func (repository *Repository) Add(ctx context.Context, data hsmmodule.HSMModule) (*hsmmodule.HSMModule, error)

Add an HSM to the database

func (*Repository) All

All HSM from storage according to the provided filters

func (*Repository) Edit

func (repository *Repository) Edit(ctx context.Context, data hsmmodule.HSMModule) (*hsmmodule.HSMModule, error)

Edit an HSM in storage

func (*Repository) Exists

func (repository *Repository) Exists(ctx context.Context, id entities.StandardID) error

Exists checks if the HSM is present in storage

func (*Repository) Filter

func (repository *Repository) Filter() hsmmodule.HSMModuleFilters

func (*Repository) Get

func (repository *Repository) Get(ctx context.Context, id entities.StandardID) (*hsmmodule.HSMModule, error)

Get an HSM from storages

func (*Repository) Remove

func (repository *Repository) Remove(ctx context.Context, id entities.StandardID) (*hsmmodule.HSMModule, error)

Remove removes an HSM from storage

type RepositoryOptions

type RepositoryOptions struct {
	Infra *hsmmoduledb.HardwareSecurityModuleRepositoryInfra
}

RepositoryOptions configures a Repository

Jump to

Keyboard shortcuts

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