catalogue

package
v0.0.0-...-6c5c701 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BulkUpsert

func BulkUpsert(c *gin.Context)

BulkUpsert ... bulk upsert

func GetAssetByID

func GetAssetByID(c *gin.Context)

GetAssetByID ... retrieves an asset description by its Unique Name ID

func GetAssetByName

func GetAssetByName(c *gin.Context)

GetAssetByName ... retrieves an asset description by its Unique Name

func ListAllAssets

func ListAllAssets(c *gin.Context)

ListAllAssets ... returns all assets

func Ping

func Ping(c *gin.Context)

Ping ... replies to a ping message for healthcheck purposes

func SearchAssetsByTags

func SearchAssetsByTags(c *gin.Context)

SearchAssetsByTags ... retrieves any asset matching all specified tags or error if empty

func StartEndpoint

func StartEndpoint(cfg *conf.Config)

StartEndpoint ... starts the service endpoint

func UpsertAsset

func UpsertAsset(c *gin.Context)

UpsertAsset ... creates an asset description entry

Types

type Service

type Service interface {
	Init(cfg *conf.Config) *errors.RestErr
	UpsertAssets(assets *[]abstract.Asset) (*[]abstract.Asset, *errors.RestErr)
	GetAssetByID(assetID string) (*abstract.Asset, *errors.RestErr)
	GetAssetByName(name string) (*abstract.Asset, *errors.RestErr)
	SearchAssetsByTags(tags []string) (*[]abstract.Asset, *errors.RestErr)
	ListAllAssets() (*[]abstract.Asset, *errors.RestErr)
}

Service ... Service Interface listing implemented methods

Directories

Path Synopsis
s3
daos

Jump to

Keyboard shortcuts

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