Documentation
¶
Index ¶
- func FormatAssetCard(a *asset.Asset, marmotURL string) string
- func FormatAssetDataProducts(products []*dataproduct.DataProduct, marmotURL string) string
- func FormatAssetList(assets []*asset.Asset, total int, marmotURL string) string
- func FormatDataProductCard(product *dataproduct.DataProduct, memberAssets []*asset.Asset, totalAssets int, ...) string
- func FormatDataProductList(products []*dataproduct.DataProduct, total int, marmotURL string) string
- func FormatNextActions(actions map[string]string) string
- func FormatOwnershipResult(ownerName, ownerType string, assets []*asset.Asset, ...) string
- func FormatSearchSummary(total, count int, filters interface{}) string
- func FormatTeamCard(team *Team, members []*TeamMember, marmotURL string) string
- func FormatTeamList(teams []*Team, total int, marmotURL string) string
- func FormatTermAssets(assets []*asset.Asset, total int, marmotURL string) string
- func FormatTermCard(term *glossary.GlossaryTerm, marmotURL string) string
- func FormatTermHierarchy(heading string, terms []*glossary.GlossaryTerm) string
- func FormatTermList(terms []*glossary.GlossaryTerm, total int, marmotURL string) string
- type DataProductService
- type DiscoverDataInput
- type ExploreDataProductsInput
- type ExploreTeamsInput
- type FindOwnershipInput
- type GlossaryService
- type LookupTermInput
- type MetadataFilterInput
- type Owner
- type Server
- type Team
- type TeamMember
- type TeamService
- type ToolContext
- type TraceLineageInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatAssetCard ¶
FormatAssetCard creates a detailed view of an asset
func FormatAssetDataProducts ¶ added in v0.10.0
func FormatAssetDataProducts(products []*dataproduct.DataProduct, marmotURL string) string
FormatAssetDataProducts formats the data products an asset belongs to.
func FormatAssetList ¶
FormatAssetList creates a compact list of assets
func FormatDataProductCard ¶ added in v0.10.0
func FormatDataProductCard(product *dataproduct.DataProduct, memberAssets []*asset.Asset, totalAssets int, marmotURL string) string
FormatDataProductCard creates a rich data product display including member assets.
func FormatDataProductList ¶ added in v0.10.0
func FormatDataProductList(products []*dataproduct.DataProduct, total int, marmotURL string) string
FormatDataProductList creates a compact list of data products.
func FormatNextActions ¶
FormatNextActions formats suggested next actions
func FormatOwnershipResult ¶
func FormatOwnershipResult(ownerName, ownerType string, assets []*asset.Asset, terms []*glossary.GlossaryTerm, marmotURL string) string
FormatOwnershipResult creates a rich ownership display
func FormatSearchSummary ¶
FormatSearchSummary creates a summary with filters
func FormatTeamCard ¶ added in v0.10.0
func FormatTeamCard(team *Team, members []*TeamMember, marmotURL string) string
FormatTeamCard creates a rich team display including members.
func FormatTeamList ¶ added in v0.10.0
FormatTeamList creates a compact list of teams.
func FormatTermAssets ¶ added in v0.10.0
FormatTermAssets formats the assets linked to a glossary term.
func FormatTermCard ¶
func FormatTermCard(term *glossary.GlossaryTerm, marmotURL string) string
FormatTermCard creates a rich glossary term display
func FormatTermHierarchy ¶ added in v0.10.0
func FormatTermHierarchy(heading string, terms []*glossary.GlossaryTerm) string
FormatTermHierarchy formats a set of related terms (ancestors or children) under a heading.
func FormatTermList ¶ added in v0.10.0
func FormatTermList(terms []*glossary.GlossaryTerm, total int, marmotURL string) string
FormatTermList creates a compact list of glossary terms.
Types ¶
type DataProductService ¶ added in v0.10.0
type DataProductService interface {
Get(ctx context.Context, id string) (*dataproduct.DataProduct, error)
List(ctx context.Context, offset, limit int) (*dataproduct.ListResult, error)
Search(ctx context.Context, filter dataproduct.SearchFilter) (*dataproduct.ListResult, error)
GetResolvedAssets(ctx context.Context, dataProductID string, limit, offset int) (*dataproduct.ResolvedAssets, error)
GetDataProductsForAsset(ctx context.Context, assetID string) ([]*dataproduct.DataProduct, error)
}
type DiscoverDataInput ¶
type DiscoverDataInput struct {
Query string `json:"query,omitempty"`
ID string `json:"id,omitempty"`
MRN string `json:"mrn,omitempty"`
Types []string `json:"types,omitempty"`
Providers []string `json:"providers,omitempty"`
Tags []string `json:"tags,omitempty"`
MetadataFilters []MetadataFilterInput `json:"metadata_filters,omitempty"`
Limit int `json:"limit,omitempty"`
Offset int `json:"offset,omitempty"`
}
type ExploreDataProductsInput ¶ added in v0.10.0
type ExploreTeamsInput ¶ added in v0.10.0
type FindOwnershipInput ¶
type FindOwnershipInput struct {
AssetID string `json:"asset_id,omitempty"`
UserID string `json:"user_id,omitempty"`
Username string `json:"username,omitempty"`
TeamID string `json:"team_id,omitempty"`
TeamName string `json:"team_name,omitempty"`
IncludeAssets bool `json:"include_assets,omitempty"`
IncludeGlossaryTerms bool `json:"include_glossary_terms,omitempty"`
Limit int `json:"limit,omitempty"`
Offset int `json:"offset,omitempty"`
}
type GlossaryService ¶
type GlossaryService interface {
Get(ctx context.Context, id string) (*glossary.GlossaryTerm, error)
Search(ctx context.Context, filter glossary.SearchFilter) (*glossary.ListResult, error)
GetChildren(ctx context.Context, parentID string) ([]*glossary.GlossaryTerm, error)
GetAncestors(ctx context.Context, termID string) ([]*glossary.GlossaryTerm, error)
}
type LookupTermInput ¶
type MetadataFilterInput ¶
type TeamMember ¶ added in v0.10.0
type TeamService ¶
type TeamService interface {
GetTeam(ctx context.Context, id string) (*Team, error)
GetTeamByName(ctx context.Context, name string) (*Team, error)
FindSimilarTeamNames(ctx context.Context, searchTerm string, limit int) ([]string, error)
ListAssetOwners(ctx context.Context, assetID string) ([]Owner, error)
ListTeams(ctx context.Context, limit, offset int) ([]*Team, int, error)
ListMembers(ctx context.Context, teamID string) ([]*TeamMember, error)
ListUserTeams(ctx context.Context, userID string) ([]*Team, error)
}
type ToolContext ¶
type ToolContext struct {
// contains filtered or unexported fields
}
ToolContext holds services needed for MCP tools