Documentation ¶
Index ¶
Constants ¶
View Source
const (
// available via portLayer API
APIKV = "apiKV"
)
Variables ¶
Functions ¶
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})
Types ¶
type StoreManager ¶
type StoreManager struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.