Documentation ¶
Index ¶
- type Asset
- func (a *Asset) AddAssetFromImagePath(ws model.WSName, filePath string) (model.AssetID, error)
- func (a *Asset) AddAssetFromImagePathIfDoesNotExist(ws model.WSName, filePath string) (model.AssetID, bool, error)
- func (a *Asset) AddAssetFromImagePathListIfDoesNotExist(ws model.WSName, filePathList []string) ([]model.AssetID, error)
- func (a *Asset) AddImportAssets(ws model.WSName, assets []*model.ImportAsset, cap int) ([]model.AssetID, error)
- func (a *Asset) AssignBoundingBox(ws model.WSName, assetID model.AssetID, box *model.BoundingBox) (*model.Asset, error)
- func (a *Asset) DeleteBoundingBox(ws model.WSName, assetID model.AssetID, boxID model.BoundingBoxID) error
- func (a *Asset) ImportFromReader(ws model.WSName, reader io.Reader, new bool) error
- func (a *Asset) Init(ws model.WSName) error
- func (a *Asset) ListAsync(ctx context.Context, ws model.WSName) (<-chan *model.Asset, error)
- func (a *Asset) ListAsyncByQueries(ctx context.Context, ws model.WSName, queries []*model.Query) (<-chan *model.Asset, error)
- func (a *Asset) ModifyBoundingBox(ws model.WSName, assetID model.AssetID, box *model.BoundingBox) (*model.Asset, error)
- func (a *Asset) UnAssignBoundingBox(ws model.WSName, assetID model.AssetID, boxID model.BoundingBoxID) (*model.Asset, error)
- type AssetImportResult
- type Migration
- type Tag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Asset ¶
type Asset struct {
// contains filtered or unexported fields
}
func NewAsset ¶
func NewAsset(assetRepository repository.Asset, tagRepository repository.Tag) *Asset
func (*Asset) AddAssetFromImagePath ¶
func (*Asset) AddAssetFromImagePathIfDoesNotExist ¶
func (*Asset) AddAssetFromImagePathListIfDoesNotExist ¶
func (*Asset) AddImportAssets ¶ added in v0.1.1
func (*Asset) AssignBoundingBox ¶
func (a *Asset) AssignBoundingBox(ws model.WSName, assetID model.AssetID, box *model.BoundingBox) (*model.Asset, error)
AssignBoundingBox assign bounding box to asset
func (*Asset) DeleteBoundingBox ¶
func (*Asset) ImportFromReader ¶ added in v0.1.1
func (*Asset) ListAsyncByQueries ¶
func (*Asset) ModifyBoundingBox ¶
type AssetImportResult ¶ added in v0.1.1
type AssetImportResult struct { Asset *model.ImportAsset Err error }
type Migration ¶
type Migration struct {
// contains filtered or unexported fields
}
func NewMigration ¶
func NewMigration(assetRepository repository.Asset, metaRepository repository.Meta) *Migration
Click to show internal directories.
Click to hide internal directories.