referentialintegritydb

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

Documentation

Index

Constants

View Source
const (
	KindAccount     = "account"
	KindApplication = "application"
	KindHSMModule   = "hardware_security_module"
	KindHSMSlot     = "hardware_security_module_slot"
	KindUser        = "user"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ReferentialIntegrityEntryCreateDB

type ReferentialIntegrityEntryCreateDB struct {
	// ReferentialIntegrityEntryDB is the data struct of the resource in the database
	ReferentialIntegrityEntryDB
}

ReferentialIntegrityEntryCreateDB is the data struct of the creation of a resource in the database

type ReferentialIntegrityEntryDB

type ReferentialIntegrityEntryDB struct {
	// StandardID is the ID of the resource
	entities.StandardID
	// ResourceID is the ID of the resource depending on the ParentResourceID
	ResourceID string `storage:"resource_id"`
	// ResourceKind is the kind of the resource depending on the ParentResourceID
	ResourceKind string `storage:"resource_kind"`
	// ResourceID is the ID of the parent resource
	ParentResourceID string `storage:"parent_resource_id"`
	// ParentResourceKind is the kind of the parent resource
	ParentResourceKind string `storage:"parent_resource_kind"`
	// 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"`
}

ReferentialIntegrityEntryDB is the data struct of the resource in the database

type ReferentialIntegrityEntryDBFilter

type ReferentialIntegrityEntryDBFilter struct {
	// ReferentialIntegrityEntryDB is the data struct of the resource in the database
	ReferentialIntegrityEntryDB
	// 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"`
}

ReferentialIntegrityEntryDBFilter to filter lists of resources from the database

func (*ReferentialIntegrityEntryDBFilter) AppendFilter

func (filter *ReferentialIntegrityEntryDBFilter) AppendFilter(theFilter persistence.Filter)

AppendFilter Append filter.

func (*ReferentialIntegrityEntryDBFilter) Paged

Paged creates a pagination filter.

func (*ReferentialIntegrityEntryDBFilter) Sort

Sort creates a sorting filter.

type ReferentialIntegrityEntryRepositoryInfra

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

func (*ReferentialIntegrityEntryRepositoryInfra) Add

func (*ReferentialIntegrityEntryRepositoryInfra) All

func (*ReferentialIntegrityEntryRepositoryInfra) Get

func (*ReferentialIntegrityEntryRepositoryInfra) Remove

func (*ReferentialIntegrityEntryRepositoryInfra) RemoveAllFromResource

func (repository *ReferentialIntegrityEntryRepositoryInfra) RemoveAllFromResource(ctx context.Context, resourceID, resourceKind string) (*persistence.ExecuteStmtWithStorageResultOutput, error)

type ReferentialIntegrityEntryRepositoryInfraOptions

type ReferentialIntegrityEntryRepositoryInfraOptions struct {
	GenericStorage persistence.Storage
}

Jump to

Keyboard shortcuts

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