Documentation ¶
Index ¶
- Constants
- type ReferentialIntegrityEntryCreateDB
- type ReferentialIntegrityEntryDB
- type ReferentialIntegrityEntryDBFilter
- func (filter *ReferentialIntegrityEntryDBFilter) AppendFilter(theFilter persistence.Filter)
- func (filter *ReferentialIntegrityEntryDBFilter) Paged(limit, offset int) *ReferentialIntegrityEntryDBFilter
- func (filter *ReferentialIntegrityEntryDBFilter) Sort(orderBy string, orderDirection persistence.OrderDirection) *ReferentialIntegrityEntryDBFilter
- type ReferentialIntegrityEntryRepositoryInfra
- func (repository *ReferentialIntegrityEntryRepositoryInfra) Add(ctx context.Context, db ReferentialIntegrityEntryCreateDB) (*ReferentialIntegrityEntryDB, error)
- func (repository *ReferentialIntegrityEntryRepositoryInfra) All(ctx context.Context, filters ReferentialIntegrityEntryDBFilter) ([]ReferentialIntegrityEntryDB, error)
- func (repository *ReferentialIntegrityEntryRepositoryInfra) Get(ctx context.Context, input entities.StandardID) ([]ReferentialIntegrityEntryDB, error)
- func (repository *ReferentialIntegrityEntryRepositoryInfra) Remove(ctx context.Context, input entities.StandardID) (*persistence.ExecuteStmtWithStorageResultOutput, error)
- func (repository *ReferentialIntegrityEntryRepositoryInfra) RemoveAllFromResource(ctx context.Context, resourceID, resourceKind string) (*persistence.ExecuteStmtWithStorageResultOutput, error)
- type ReferentialIntegrityEntryRepositoryInfraOptions
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 ¶
func (filter *ReferentialIntegrityEntryDBFilter) Paged(limit, offset int) *ReferentialIntegrityEntryDBFilter
Paged creates a pagination filter.
func (*ReferentialIntegrityEntryDBFilter) Sort ¶
func (filter *ReferentialIntegrityEntryDBFilter) Sort(orderBy string, orderDirection persistence.OrderDirection) *ReferentialIntegrityEntryDBFilter
Sort creates a sorting filter.
type ReferentialIntegrityEntryRepositoryInfra ¶
type ReferentialIntegrityEntryRepositoryInfra struct {
// contains filtered or unexported fields
}
func ProvideReferentialIntegrityEntryRepositoryInfra ¶
func ProvideReferentialIntegrityEntryRepositoryInfra(options ReferentialIntegrityEntryRepositoryInfraOptions) (*ReferentialIntegrityEntryRepositoryInfra, error)
func (*ReferentialIntegrityEntryRepositoryInfra) Add ¶
func (repository *ReferentialIntegrityEntryRepositoryInfra) Add(ctx context.Context, db ReferentialIntegrityEntryCreateDB) (*ReferentialIntegrityEntryDB, error)
func (*ReferentialIntegrityEntryRepositoryInfra) All ¶
func (repository *ReferentialIntegrityEntryRepositoryInfra) All(ctx context.Context, filters ReferentialIntegrityEntryDBFilter) ([]ReferentialIntegrityEntryDB, error)
func (*ReferentialIntegrityEntryRepositoryInfra) Get ¶
func (repository *ReferentialIntegrityEntryRepositoryInfra) Get(ctx context.Context, input entities.StandardID) ([]ReferentialIntegrityEntryDB, error)
func (*ReferentialIntegrityEntryRepositoryInfra) Remove ¶
func (repository *ReferentialIntegrityEntryRepositoryInfra) Remove(ctx context.Context, input entities.StandardID) (*persistence.ExecuteStmtWithStorageResultOutput, error)
func (*ReferentialIntegrityEntryRepositoryInfra) RemoveAllFromResource ¶
func (repository *ReferentialIntegrityEntryRepositoryInfra) RemoveAllFromResource(ctx context.Context, resourceID, resourceKind string) (*persistence.ExecuteStmtWithStorageResultOutput, error)
type ReferentialIntegrityEntryRepositoryInfraOptions ¶
type ReferentialIntegrityEntryRepositoryInfraOptions struct {
GenericStorage persistence.Storage
}
Click to show internal directories.
Click to hide internal directories.