Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrStore = errors.New("store error")
)
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface { // Kind returns the repository store kind. Kind() model.StoreKind // AssetByID returns one asset from the inventory identified by its identifier. AssetByID(ctx context.Context, assetID string, fetchBmcCredentials bool) (*model.Asset, error) AssetsByOffsetLimit(ctx context.Context, offset, limit int) (assets []*model.Asset, totalAssets int, err error) // AssetUpdate inserts and updates collected data for the asset in the store. AssetUpdate(ctx context.Context, asset *model.Asset) error }
func NewRepository ¶
Click to show internal directories.
Click to hide internal directories.