store

package
v0.0.0-...-bea3eb9 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 License: MIT Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewObjectStoreConfig

func NewObjectStoreConfig(objectStore *ObjectStore, objectPath string) (*cfg.Config, error)

Make a new Config initialized with properties from a JSON Object

Types

type MutableObjectStore

type MutableObjectStore struct {
	ObjectStore // Embed ObjectStore properties
}

func NewMutableObjectStore

func NewMutableObjectStore() *MutableObjectStore

Make a new one of these!

func (*MutableObjectStore) PutObject

func (r *MutableObjectStore) PutObject(path string, object *obj.Object) error

Put the supplied Object into this ObjectStore at the specified path

type MutableObjectStoreIfc

type MutableObjectStoreIfc interface {
	ObjectStoreIfc // Embed ObjectStore interface

	// Put the supplied Object into this ObjectStore at the specified path
	PutObject(path string, object *obj.Object) error
}

type ObjectStore

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

func NewObjectStore

func NewObjectStore() *ObjectStore

Make a new one of these

func NewObjectStorePreloaded

func NewObjectStorePreloaded(collection *objc.ObjectCollection) *ObjectStore

Make a new one of these, preloaded with a ObjectCollection

func (ObjectStore) GetObject

func (r ObjectStore) GetObject(path string) (*obj.Object, error)

func (ObjectStore) HasObject

func (r ObjectStore) HasObject(path string) bool

type ObjectStoreIfc

type ObjectStoreIfc interface {

	// Get the Object located at this path, or nil if none
	GetObject(path string) (*obj.Object, error)

	// Check whether there is a Object located at this path, true if so
	HasObject(path string) bool
}

Jump to

Keyboard shortcuts

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