get_asset_details

package
v0.0.39 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTool

func NewTool(collibraClient *http.Client) *chip.Tool[Input, Output]

Types

type AssetResponsibility

type AssetResponsibility struct {
	RoleName  string `json:"roleName" jsonschema:"the name of the resource role (e.g., Owner, Business Steward)"`
	UserName  string `json:"userName,omitempty" jsonschema:"the username of the assigned user, if the owner is a user"`
	GroupName string `json:"groupName,omitempty" jsonschema:"the name of the assigned group, if the owner is a user group"`
	Inherited bool   `` /* 156-byte string literal not displayed */
}

AssetResponsibility represents a role assignment (e.g., Owner, Steward) for an asset.

type AssignableAttribute added in v0.0.38

type AssignableAttribute struct {
	Name     string `json:"name" jsonschema:"the attribute type name, e.g. Definition"`
	Required bool   `json:"required" jsonschema:"whether the assignment requires this attribute to have a value"`
	IsSet    bool   `json:"isSet" jsonschema:"true if the asset currently has a value for this attribute, false if it is empty but settable"`
}

AssignableAttribute is one attribute type the asset's assignment allows. It lets the caller tell an empty attribute apart from one that isn't valid at all — the GraphQL attribute lists only include attributes that have a value.

type Input

type Input struct {
	AssetID                 string `json:"assetId" jsonschema:"the UUID of the asset to retrieve details for"`
	OutgoingRelationsCursor string `` /* 189-byte string literal not displayed */
	IncomingRelationsCursor string `` /* 189-byte string literal not displayed */
}

type Output

type Output struct {
	Asset                  *clients.Asset        `json:"asset,omitempty" jsonschema:"the detailed asset information if found"`
	AssignableAttributes   []AssignableAttribute `` /* 313-byte string literal not displayed */
	Responsibilities       []AssetResponsibility `json:"responsibilities,omitempty" jsonschema:"the responsibilities assigned to this asset, including inherited ones"`
	ResponsibilitiesStatus string                `json:"responsibilitiesStatus,omitempty" jsonschema:"status message for responsibilities, e.g. No responsibilities assigned"`
	Link                   string                `json:"link,omitempty" jsonschema:"the link you can navigate to in Collibra to view the asset"`
	Error                  string                `json:"error,omitempty" jsonschema:"error message if asset not found or other error occurred"`
	Found                  bool                  `json:"found" jsonschema:"whether the asset was found"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL