Documentation ¶
Index ¶
- Constants
- Variables
- type Store
- func (c *Store) AssetByID(ctx context.Context, assetID string, _ bool) (*model.Asset, error)
- func (c *Store) AssetUpdate(_ context.Context, _ *model.Asset) error
- func (c *Store) AssetsByOffsetLimit(_ context.Context, _, _ int) (assets []*model.Asset, totalAssets int, err error)
- func (c *Store) Kind() model.StoreKind
Constants ¶
View Source
const (
// SourceKindCSV identifies a csv asset source
SourceKindCSV = "csv"
)
Variables ¶
View Source
var ( ErrAssetNotFound = errors.New("not found") ErrCSVSource = errors.New("error in CSV") )
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func New ¶
New returns a new csv asset getter to retrieve asset information from a CSV file for inventory collection.
func (*Store) AssetByID ¶
AssetByID returns one asset from the inventory identified by its identifier.
func (*Store) AssetsByOffsetLimit ¶
Click to show internal directories.
Click to hide internal directories.