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) RtcDeleteLevelRtcGet() (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{}, resname string, value interface{}) (interface{}, error)

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

// Get delete the key value for a pair using given handle
func (rtc *RunTimeContext) RtcGetValueRtcDeletePair(handle interface{}) (interface{}, error)

// Add instruction at a given level and type, return the new delete all handles underneath the given handle

func (rtc *RunTimeContext) RtcAddInstructionRtcDeletePrefix(handle interface{}, level string, insttype string, value interface{}) (interface{}, error)

// Delete instruction for a Return the list of handles under the given handle
func (rtc *RunTimeContext) RtcDeleteInstructionRtcGetHandles(handle interface{}) ([]interface{}, error)

// Return Get the list of handles value for the a given levelhandle
func (rtc *RunTimeContext) RtcGetHandles(level string) ([]RtcGetValue(handle interface{}, value interface{}) (error)