node_attributes

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 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) GetNodeAttributeByAttributeID added in v0.2.0

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

func (*DB) GetNodeAttributeOptionsByAttributeID added in v0.2.0

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

func (*DB) GetNodeAttributeValueByAttributeID added in v0.2.0

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

func (*DB) GetNodeAttributes added in v0.2.0

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

func (*DB) RemoveNodeAttributeByAttributeID added in v0.2.0

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

func (*DB) RemoveNodeAttributesByName added in v0.4.0

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

func (*DB) RemoveNodeAttributesByNames added in v0.2.0

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

func (*DB) RemoveNodeAttributesByPluginID added in v0.2.0

func (db *DB) RemoveNodeAttributesByPluginID(ctx context.Context, pluginID umid.UMID) error

func (*DB) UpdateNodeAttributeOptions added in v0.2.0

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

func (*DB) UpdateNodeAttributeValue added in v0.2.0

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

func (*DB) UpsertNodeAttribute added in v0.2.0

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

func (*DB) UpsertNodeAttributes added in v0.2.0

func (db *DB) UpsertNodeAttributes(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