hsmmoduledb

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: 5 Imported by: 0

Documentation

Index

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

Paged creates a pagination filter.

func (*HardwareSecurityModuleDBFilter) Sort

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 (*HardwareSecurityModuleRepositoryInfra) Add

func (*HardwareSecurityModuleRepositoryInfra) All

func (*HardwareSecurityModuleRepositoryInfra) Edit

func (*HardwareSecurityModuleRepositoryInfra) Exists

func (*HardwareSecurityModuleRepositoryInfra) Get

func (*HardwareSecurityModuleRepositoryInfra) Remove

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

Jump to

Keyboard shortcuts

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