Documentation ¶
Index ¶
- Constants
- type HardwareSecurityModuleCreateDB
- type HardwareSecurityModuleDB
- type HardwareSecurityModuleDBFilter
- func (filter *HardwareSecurityModuleDBFilter) AppendFilter(theFilter persistence.Filter)
- func (filter *HardwareSecurityModuleDBFilter) Paged(limit, offset int) *HardwareSecurityModuleDBFilter
- func (filter *HardwareSecurityModuleDBFilter) Sort(orderBy string, orderDirection persistence.OrderDirection) *HardwareSecurityModuleDBFilter
- type HardwareSecurityModuleExistsDB
- type HardwareSecurityModuleRepositoryInfra
- func (repository *HardwareSecurityModuleRepositoryInfra) Add(ctx context.Context, db HardwareSecurityModuleCreateDB) (*HardwareSecurityModuleDB, error)
- func (repository *HardwareSecurityModuleRepositoryInfra) All(ctx context.Context, filters HardwareSecurityModuleDBFilter) ([]HardwareSecurityModuleDB, error)
- func (repository *HardwareSecurityModuleRepositoryInfra) Edit(ctx context.Context, db HardwareSecurityModuleUpdateDB) (*persistence.ExecuteStmtWithStorageResultOutput, error)
- func (repository *HardwareSecurityModuleRepositoryInfra) Exists(ctx context.Context, id entities.StandardID) ([]HardwareSecurityModuleExistsDB, error)
- func (repository *HardwareSecurityModuleRepositoryInfra) Get(ctx context.Context, input entities.StandardID) ([]HardwareSecurityModuleDB, error)
- func (repository *HardwareSecurityModuleRepositoryInfra) Remove(ctx context.Context, input entities.StandardID) (*persistence.ExecuteStmtWithStorageResultOutput, error)
- type HardwareSecurityModuleRepositoryInfraOptions
- type HardwareSecurityModuleUpdateDB
Constants ¶
View Source
const (
SoftHSMModuleKind = "SoftHSM"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HardwareSecurityModuleCreateDB ¶
type HardwareSecurityModuleCreateDB struct { // HardwareSecurityModuleDB is the data struct of the resource in the database HardwareSecurityModuleDB }
HardwareSecurityModuleCreateDB is the data struct of the creation of a resource in the database
type HardwareSecurityModuleDB ¶
type HardwareSecurityModuleDB struct { // StandardID is the ID of the resource entities.StandardID // InternalResourceID is the ID used to reference a resource internally in the application InternalResourceID string `storage:"internal_resource_id"` // Kind of the HSM Kind string `storage:"kind"` // Configuration of the HSM Configuration string `storage:"configuration"` // Description of the resource Description string `storage:"description"` // ResourceVersion is the identifier of the current version of the resource ResourceVersion string `storage:"resource_version"` // CreationDate is the timestamp of the moment of the creation of the resource CreationDate int64 `storage:"creation_date"` // LastUpdate is the timestamp of the moment of the last edition of the resource LastUpdate int64 `storage:"last_update"` }
HardwareSecurityModuleDB is the data struct of the resource in the database
type HardwareSecurityModuleDBFilter ¶
type HardwareSecurityModuleDBFilter struct { // HardwareSecurityModuleDB is the data struct of the resource in the database HardwareSecurityModuleDB // Order is the order of the list based on an attribute Order *persistence.Order `valid:"optional"` // FilterGroup is a collection of filters FilterGroup *persistence.FilterGroup `valid:"optional"` // Pagination is the page info of the list Pagination *persistence.Pagination `valid:"optional"` }
HardwareSecurityModuleDBFilter to filter lists of resources from the database
func (*HardwareSecurityModuleDBFilter) AppendFilter ¶
func (filter *HardwareSecurityModuleDBFilter) AppendFilter(theFilter persistence.Filter)
AppendFilter Append filter.
func (*HardwareSecurityModuleDBFilter) Paged ¶
func (filter *HardwareSecurityModuleDBFilter) Paged(limit, offset int) *HardwareSecurityModuleDBFilter
Paged creates a pagination filter.
func (*HardwareSecurityModuleDBFilter) Sort ¶
func (filter *HardwareSecurityModuleDBFilter) Sort(orderBy string, orderDirection persistence.OrderDirection) *HardwareSecurityModuleDBFilter
Sort creates a sorting filter.
type HardwareSecurityModuleExistsDB ¶
type HardwareSecurityModuleExistsDB struct { // Exists is true if the resource exists Exists bool `storage:"exists_result" valid:"required"` }
HardwareSecurityModuleExistsDB is the data struct to check if a resource exists in the database
type HardwareSecurityModuleRepositoryInfra ¶
type HardwareSecurityModuleRepositoryInfra struct {
// contains filtered or unexported fields
}
func ProvideHardwareSecurityModuleRepositoryInfra ¶
func ProvideHardwareSecurityModuleRepositoryInfra(options HardwareSecurityModuleRepositoryInfraOptions) (*HardwareSecurityModuleRepositoryInfra, error)
func (*HardwareSecurityModuleRepositoryInfra) Add ¶
func (repository *HardwareSecurityModuleRepositoryInfra) Add(ctx context.Context, db HardwareSecurityModuleCreateDB) (*HardwareSecurityModuleDB, error)
func (*HardwareSecurityModuleRepositoryInfra) All ¶
func (repository *HardwareSecurityModuleRepositoryInfra) All(ctx context.Context, filters HardwareSecurityModuleDBFilter) ([]HardwareSecurityModuleDB, error)
func (*HardwareSecurityModuleRepositoryInfra) Edit ¶
func (repository *HardwareSecurityModuleRepositoryInfra) Edit(ctx context.Context, db HardwareSecurityModuleUpdateDB) (*persistence.ExecuteStmtWithStorageResultOutput, error)
func (*HardwareSecurityModuleRepositoryInfra) Exists ¶
func (repository *HardwareSecurityModuleRepositoryInfra) Exists(ctx context.Context, id entities.StandardID) ([]HardwareSecurityModuleExistsDB, error)
func (*HardwareSecurityModuleRepositoryInfra) Get ¶
func (repository *HardwareSecurityModuleRepositoryInfra) Get(ctx context.Context, input entities.StandardID) ([]HardwareSecurityModuleDB, error)
func (*HardwareSecurityModuleRepositoryInfra) Remove ¶
func (repository *HardwareSecurityModuleRepositoryInfra) Remove(ctx context.Context, input entities.StandardID) (*persistence.ExecuteStmtWithStorageResultOutput, error)
type HardwareSecurityModuleRepositoryInfraOptions ¶
type HardwareSecurityModuleRepositoryInfraOptions struct {
GenericStorage persistence.Storage
}
type HardwareSecurityModuleUpdateDB ¶
type HardwareSecurityModuleUpdateDB struct { // HardwareSecurityModuleDB is the data struct of the resource in the database HardwareSecurityModuleDB // NewResourceVersion is the new resource version after the edition NewResourceVersion string `storage:"new_resource_version"` }
HardwareSecurityModuleUpdateDB is the data struct of the update of a resource in the database
Click to show internal directories.
Click to hide internal directories.