Documentation ¶
Index ¶
- type Client
- type ClientOption
- type Config
- type DiscoveryRepository
- func (repo *DiscoveryRepository) DeleteByID(ctx context.Context, assetID string) error
- func (repo *DiscoveryRepository) DeleteByQueryExpr(ctx context.Context, queryExpr queryexpr.ExprStr) error
- func (repo *DiscoveryRepository) DeleteByURN(ctx context.Context, assetURN string) error
- func (repo *DiscoveryRepository) GroupAssets(ctx context.Context, cfg asset.GroupConfig) (results []asset.GroupResult, err error)
- func (repo *DiscoveryRepository) Search(ctx context.Context, cfg asset.SearchConfig) (results []asset.SearchResult, err error)
- func (repo *DiscoveryRepository) Suggest(ctx context.Context, config asset.SearchConfig) (results []string, err error)
- func (repo *DiscoveryRepository) SyncAssets(ctx context.Context, indexName string) (func() error, error)
- func (repo *DiscoveryRepository) Upsert(ctx context.Context, ast asset.Asset) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type ClientOption ¶
type ClientOption func(*Client)
func WithClient ¶
func WithClient(cli *elasticsearch.Client) ClientOption
type DiscoveryRepository ¶
type DiscoveryRepository struct {
// contains filtered or unexported fields
}
DiscoveryRepository implements discovery.Repository with elasticsearch as the backing store.
func NewDiscoveryRepository ¶
func (*DiscoveryRepository) DeleteByID ¶
func (repo *DiscoveryRepository) DeleteByID(ctx context.Context, assetID string) error
func (*DiscoveryRepository) DeleteByQueryExpr ¶ added in v0.7.8
func (*DiscoveryRepository) DeleteByURN ¶
func (repo *DiscoveryRepository) DeleteByURN(ctx context.Context, assetURN string) error
func (*DiscoveryRepository) GroupAssets ¶ added in v0.5.4
func (repo *DiscoveryRepository) GroupAssets(ctx context.Context, cfg asset.GroupConfig) (results []asset.GroupResult, err error)
func (*DiscoveryRepository) Search ¶
func (repo *DiscoveryRepository) Search(ctx context.Context, cfg asset.SearchConfig) (results []asset.SearchResult, err error)
Search the asset store
func (*DiscoveryRepository) Suggest ¶
func (repo *DiscoveryRepository) Suggest(ctx context.Context, config asset.SearchConfig) (results []string, err error)
func (*DiscoveryRepository) SyncAssets ¶ added in v0.7.0
Source Files ¶
Click to show internal directories.
Click to hide internal directories.