Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

type RunTimeContext struct {
    cid interface{}// opaque to caller
}


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

//delete Load context using the given contextid
func (rtc *RunTimeContext) RtcDeleteRtcLoad(cname id interface{}) (interface{}, error)

//Add Create context by assigning a new level at a given handle id and return the new handle
func (rtc *RunTimeContext) RtcAddLevelRtcCreate() (hname interface{}, level string, value stringerror)

//Get the root handle

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

// Delete the Add a new level at a given handle and all levels underneathreturn the new handle
func (rtc *RunTimeContext) RtcDeleteLevelRtcAddLevel(hname 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{}, key interface{}resname string, value interface{}) (interface{}, error)

// Delete the given resource by using its Add instruction at a given level and type, return the new handle
func (rtc *RunTimeContext) RtcDeleteResourceRtcAddInstruction(handle interface{}, level string, insttype string, value interface{}) (interface{}, error)

// Return the list of handles for the given leveldelete the key value pair using given handle
func (rtc *RunTimeContext) RtcGetHandles(level string) ([]RtcDeletePair(handle interface{}, ) (error)

// Get the value for a delete all handles underneath the given handle

func (rtc *RunTimeContext) RtcGetValueRtcDeletePrefix(handle interface{}) (interface{}, error)

// Add instruction at a given level and type, return the new Return the list of handles under the given handle
func (rtc *RunTimeContext) RtcAddInstructionRtcGetHandles(handle interface{}, level string, insttype string, value interface{}) ([]interface{}, error)

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