attributes

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

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