node_attributes

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	// contains filtered or unexported fields
}

func NewDB

func NewDB(conn *pgxpool.Pool, commonDB database.CommonDB) *DB

func (*DB) NodeAttributesGetNodeAttributeByAttributeID

func (db *DB) NodeAttributesGetNodeAttributeByAttributeID(
	ctx context.Context, attributeID entry.AttributeID,
) (*entry.NodeAttribute, error)

func (*DB) NodeAttributesGetNodeAttributeOptionsByAttributeID

func (db *DB) NodeAttributesGetNodeAttributeOptionsByAttributeID(
	ctx context.Context, attributeID entry.AttributeID,
) (*entry.AttributeOptions, error)

func (*DB) NodeAttributesGetNodeAttributeValueByAttributeID

func (db *DB) NodeAttributesGetNodeAttributeValueByAttributeID(
	ctx context.Context, attributeID entry.AttributeID,
) (*entry.AttributeValue, error)

func (*DB) NodeAttributesGetNodeAttributes

func (db *DB) NodeAttributesGetNodeAttributes(ctx context.Context) ([]*entry.NodeAttribute, error)

func (*DB) NodeAttributesRemoveNodeAttributeByAttributeID

func (db *DB) NodeAttributesRemoveNodeAttributeByAttributeID(ctx context.Context, attributeID entry.AttributeID) error

func (*DB) NodeAttributesRemoveNodeAttributeByName

func (db *DB) NodeAttributesRemoveNodeAttributeByName(ctx context.Context, name string) error

func (*DB) NodeAttributesRemoveNodeAttributesByNames

func (db *DB) NodeAttributesRemoveNodeAttributesByNames(ctx context.Context, names []string) error

func (*DB) NodeAttributesRemoveNodeAttributesByPluginID

func (db *DB) NodeAttributesRemoveNodeAttributesByPluginID(ctx context.Context, pluginID uuid.UUID) error

func (*DB) NodeAttributesUpdateNodeAttributeOptions

func (db *DB) NodeAttributesUpdateNodeAttributeOptions(
	ctx context.Context, attributeID entry.AttributeID, options *entry.AttributeOptions,
) error

func (*DB) NodeAttributesUpdateNodeAttributeValue

func (db *DB) NodeAttributesUpdateNodeAttributeValue(
	ctx context.Context, attributeID entry.AttributeID, value *entry.AttributeValue,
) error

func (*DB) NodeAttributesUpsertNodeAttribute

func (db *DB) NodeAttributesUpsertNodeAttribute(ctx context.Context, nodeAttribute *entry.NodeAttribute) error

func (*DB) NodeAttributesUpsertNodeAttributes

func (db *DB) NodeAttributesUpsertNodeAttributes(ctx context.Context, nodeAttributes []*entry.NodeAttribute) error

Jump to

Keyboard shortcuts

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