dboperations

package
v0.0.0-...-5328375 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 28, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DbOperationsService

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

func NewDbOperationsService

func NewDbOperationsService(dbConnection dbconnection.DbConnection, config config.ServiceConfig) *DbOperationsService

func (*DbOperationsService) GetMetaData

func (dbo *DbOperationsService) GetMetaData(partitionValue string, sortValue string, platform string, platformVersion string, architecture string) (*models.MetaData, error)

func (*DbOperationsService) GetPackages

func (dbo *DbOperationsService) GetPackages(partitionValue string, sortValue string) (*models.ProductDetails, error)

func (*DbOperationsService) GetRelatedProducts

func (dbo *DbOperationsService) GetRelatedProducts(partitionValue string) (*models.RelatedProducts, error)

func (*DbOperationsService) GetVersionAll

func (dbo *DbOperationsService) GetVersionAll(partitionValue string) ([]string, error)

func (*DbOperationsService) GetVersionLatest

func (dbo *DbOperationsService) GetVersionLatest(partitionValue string) (string, error)

type IDbOperations

type IDbOperations interface {
	GetPackages(partitionValue string, sortValue string) (*models.ProductDetails, error)
	GetVersionAll(partitionValue string) ([]string, error)
	GetMetaData(partitionValue string, sortValue string, platform string, platformVersion string, architecture string) (*models.MetaData, error)
	GetVersionLatest(partitionValue string) (string, error)
	GetRelatedProducts(partitionValue string) (*models.RelatedProducts, error)
}

type IDynamoDBOps

type IDynamoDBOps interface {
	GetItem(input *dynamodb.GetItemInput) (*dynamodb.GetItemOutput, error)
	Scan(input *dynamodb.ScanInput) (*dynamodb.ScanOutput, error)
}

type MockIDbOperations

type MockIDbOperations struct {
	GetPackagesfunc        func(partitionValue string, sortValue string) (*models.ProductDetails, error)
	GetVersionAllfunc      func(partitionValue string) ([]string, error)
	GetMetaDatafunc        func(partitionValue string, sortValue string, platform string, platformVersion string, architecture string) (*models.MetaData, error)
	GetVersionLatestfunc   func(partitionValue string) (string, error)
	GetRelatedProductsfunc func(partitionValue string) (*models.RelatedProducts, error)
}

func (*MockIDbOperations) GetMetaData

func (mdbop *MockIDbOperations) GetMetaData(partitionValue string, sortValue string, platform string, platformVersion string, architecture string) (*models.MetaData, error)

func (*MockIDbOperations) GetPackages

func (mdbop *MockIDbOperations) GetPackages(partitionValue string, sortValue string) (*models.ProductDetails, error)

func (*MockIDbOperations) GetRelatedProducts

func (mdbop *MockIDbOperations) GetRelatedProducts(partitionValue string) (*models.RelatedProducts, error)

func (*MockIDbOperations) GetVersionAll

func (mdbop *MockIDbOperations) GetVersionAll(partitionValue string) ([]string, error)

func (*MockIDbOperations) GetVersionLatest

func (mdbop *MockIDbOperations) GetVersionLatest(partitionValue string) (string, error)

Jump to

Keyboard shortcuts

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