applicationdbout

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 applicationdbout defines the output database adapters for the Application 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 application.ApplicationStorage

func NewRepository

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

NewRepository creates a Repository with the given options

func (*Repository) Add

Add an Application to the database

func (*Repository) All

All Application from storage according to the provided filters

func (*Repository) Edit

Edit an Application in storage

func (*Repository) Exists

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

Exists returns whether the specified Application exists in storage. It returns an error if the operation fails.

func (*Repository) Filter

func (repository *Repository) Filter() application.ApplicationFilters

func (*Repository) Get

Get an Application from storages

func (*Repository) Remove

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

Remove removes an Application from storage

type RepositoryOptions

type RepositoryOptions struct {
	Infra *applicationdb.ApplicationRepositoryInfra
}

RepositoryOptions configures a Repository

Jump to

Keyboard shortcuts

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