space_attributes

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 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) GetSpaceAttributeByID added in v0.2.0

func (db *DB) GetSpaceAttributeByID(
	ctx context.Context, spaceAttributeID entry.SpaceAttributeID,
) (*entry.SpaceAttribute, error)

func (*DB) GetSpaceAttributes added in v0.2.0

func (db *DB) GetSpaceAttributes(ctx context.Context) ([]*entry.SpaceAttribute, error)

func (*DB) GetSpaceAttributesByPluginIDAndName added in v0.2.0

func (db *DB) GetSpaceAttributesByPluginIDAndName(ctx context.Context, pluginID uuid.UUID, attributeName string) ([]*entry.SpaceAttribute, error)

func (*DB) GetSpaceAttributesBySpaceID added in v0.2.0

func (db *DB) GetSpaceAttributesBySpaceID(
	ctx context.Context, spaceID uuid.UUID,
) ([]*entry.SpaceAttribute, error)

func (*DB) RemoveSpaceAttributeByAttributeID added in v0.2.0

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

func (*DB) RemoveSpaceAttributeByID added in v0.2.0

func (db *DB) RemoveSpaceAttributeByID(
	ctx context.Context, spaceAttributeID entry.SpaceAttributeID,
) error

func (*DB) RemoveSpaceAttributeByName added in v0.2.0

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

func (*DB) RemoveSpaceAttributeByNameAndSpaceID added in v0.2.0

func (db *DB) RemoveSpaceAttributeByNameAndSpaceID(
	ctx context.Context, name string, spaceID uuid.UUID,
) error

func (*DB) RemoveSpaceAttributeByNamesAndSpaceID added in v0.2.0

func (db *DB) RemoveSpaceAttributeByNamesAndSpaceID(
	ctx context.Context, names []string, spaceID uuid.UUID,
) error

func (*DB) RemoveSpaceAttributeByPluginIDAndSpaceID added in v0.2.0

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

func (*DB) RemoveSpaceAttributeBySpaceID added in v0.2.0

func (db *DB) RemoveSpaceAttributeBySpaceID(
	ctx context.Context, spaceID uuid.UUID,
) error

func (*DB) RemoveSpaceAttributesByNames added in v0.2.0

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

func (*DB) RemoveSpaceAttributesByPluginID added in v0.2.0

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

func (*DB) UpdateSpaceAttributeOptions added in v0.2.0

func (db *DB) UpdateSpaceAttributeOptions(
	ctx context.Context, spaceAttributeID entry.SpaceAttributeID, options *entry.AttributeOptions,
) error

func (*DB) UpdateSpaceAttributeValue added in v0.2.0

func (db *DB) UpdateSpaceAttributeValue(
	ctx context.Context, spaceAttributeID entry.SpaceAttributeID, value *entry.AttributeValue,
) error

func (*DB) UpsertSpaceAttribute added in v0.2.0

func (db *DB) UpsertSpaceAttribute(ctx context.Context, spaceAttribute *entry.SpaceAttribute) error

func (*DB) UpsertSpaceAttributes added in v0.2.0

func (db *DB) UpsertSpaceAttributes(ctx context.Context, spaceAttributes []*entry.SpaceAttribute) error

Jump to

Keyboard shortcuts

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