Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
 - Variables
 - func Finalize(ctx context.Context) error
 - func Init(ctx context.Context, session *session.Session, imgStoreURL *url.URL) error
 - func NewDatastoreKeyValue(ctx context.Context, session *session.Session, name string) (kvstore.KeyValueStore, error)
 - func Store(name string) (kvstore.KeyValueStore, error)
 - type StoreManager
 
Constants ¶
const (
	// available via portLayer API
	APIKV = "apiKV"
)
    Variables ¶
Functions ¶
func Finalize ¶
TODO: figure out why the Init calls are wrapped in once.Do - implies it can be called multiple times, but once Finalize is called things will not be functional.
func Init ¶
Init will initialize the package vars and create the default portLayerKV store
Note: The imgStoreURL is provided by the portlayer init function and is currently based on the image-store specified at appliance creation via vic-machine. That URL is the starting point for the datastore persistence path and does not mean that the k/v stores are presisted w/the images.
func NewDatastoreKeyValue ¶
func NewDatastoreKeyValue(ctx context.Context, session *session.Session, name string) (kvstore.KeyValueStore, error)
NewDatastoreKeyValue will validate the supplied name and create a datastore backed key / value store
The file will be located at the init datastoreURL -- currently that's in the appliance directory under the {dsFolder} folder (i.e. [datastore]vch-appliance/{dsFolder}/{name})
func Store ¶
func Store(name string) (kvstore.KeyValueStore, error)
Store will return the requested store
Types ¶
type StoreManager ¶
type StoreManager struct {
	// contains filtered or unexported fields
}
    
      
      Source Files
      ¶
    
- store.go