Documentation ¶
Overview ¶
Package attributes provides functionality for handling/using the plugin attributes system.
The plugin attributes provide a generic way to store additional data in the core model. The data is generic JSON and can be stored on relations to Objects, Users and combinations of the two.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PluginAttributeFromQuery ¶
func PluginAttributeFromQuery(c *gin.Context, n universe.Node) (universe.AttributeType, entry.AttributeID, error)
Get attribute definition for API query.
Types ¶
type QueryPluginAttribute ¶
type QueryPluginAttribute struct { PluginID string `form:"plugin_id" json:"plugin_id" binding:"required"` AttributeName string `form:"attribute_name" json:"attribute_name" binding:"required"` }
Struct to use for API query/params to select a plugin attribute.
Click to show internal directories.
Click to hide internal directories.