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) RtcAddLevel(hname interface{}, level string, value stringRtcCreate() (interface{}, error)

// Delete Get the given root handle and all levels underneath

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

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

// Delete Add a resource under the given resource by using its level and return new handle
func (rtc *RunTimeContext) RtcDeleteResourceRtcAddResource(handle interface{}) (error)

// Return all the resource handles
func (rtc *RunTimeContext) RtcGetResourceHandles() ([]interface{}, error)

// Get the resource from a given handle
func (rtc *RunTimeContext) RtcGetResource(handle , 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 instruction for a 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) RtcDeleteInstructionRtcDeletePrefix(handle interface{}) (error)

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

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