package
0.0.0-20241125151401-e66715b925b4
Repository: https://github.com/zenoss/serviced.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

Get returns the global Context.
GetNew() returns a new global context.
GetNewInstance returns a new instance of the context object, but with the metrics and connections from the global context object.
IsErrNoSuchEntity check see if error param is of type ErrNoSuchEntity.
New returns a new EntityStore.
NewJSONMessage creates a JSONMessage using the provided bytes.
NewKey returns an initialized Key.
NewQuery returns a Query type to be executed.
Register a driver to use for the context.
SafeUnmarshal sets the json decoder to use number types.

# Variables

ErrEmptyKind returned when a key has an empty kind.
ErrEmptyKindID returned when a key has an empty ID.
ErrNilContext returned when Context parameter is nil.
ErrNilEntity returned when Entity parameter is nil.
ErrNilKind returned when Kind parameter is nil.
ErrNoSuchElement if requested element not available.

# Structs

DataStore EntityStore type.
ErrNoSuchEntity is returned when no entity was found for a given key.
No description provided by the author

# Interfaces

Connection is the interface for interacting with a datastore.
Context is the context of the application or request being made.
Driver is the interface for a driver to a datastore.
Entity is the interface for encapsulating an object's name and type for use with modules such as a logger.
EntityStore interface for storing and retrieving data types from a datastore.
JSONMessage Represents a enity as JSON.
Key is a unique identifier for an entity.
Query is a query used to search for and return entities from a datastore.
Results iterates or indexes into the results returned from a query.
ValidEntity interface for entities that can be stored in the EntityStore.