Run time context library interface



type RunTimeContext struct {
    // opaque to caller
}



//Initialize context by assigning a new id
func (rtc *RunTimeContext) RtcInit() (interface{}, error)

//Load context using the given id
func (rtc *RunTimeContext) RtcLoad(id interface{}) (interface{}, error)

//Create context by assigning a new id and return the handle
func (rtc *RunTimeContext) RtcCreate() (interface{}, error)

//Get the root handle

func (rtc *RunTimeContext) RtcGet() (interface{}, error)

//Add a new level at a given handle and return the new handle
func (rtc *RunTimeContext) RtcAddLevel(handle interface{}, level string, value string) (interface{}, error)

// Add a resource under the given level and return new handle
func (rtc *RunTimeContext) RtcAddResource(handle interface{}, resname string, value interface{}) (interface{}, error)

// Add instruction at a given level and type, return the new handle
func (rtc *RunTimeContext) RtcAddInstruction(handle interface{}, level string, insttype string, value interface{}) (interface{}, error)

//delete the key value pair using given handle
func (rtc *RunTimeContext) RtcDeletePair(handle interface{}) (error)

// delete all handles underneath the given handle

func (rtc *RunTimeContext) RtcDeletePrefix(handle interface{}) (error)

// Return the list of handles under the given handle
func (rtc *RunTimeContext) RtcGetHandles(handle interface{}) ([]interface{}, error)

// Get the value for a given handle
func (rtc *RunTimeContext) RtcGetValue(handle interface{}, value interface{}) (error)