Versions Compared

Key

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

...

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)

...

//Add a new level at a given handle and return the new handle
func (rtc *RunTimeContext) RtcAddLevel(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 key value pair using given handle
func (rtc *RunTimeContext) RtcDeletePair(cname handle interface{}) (error)

// delete all handles underneath the given handle

func (rtc *RunTimeContext) RtcDeletePrefix(cname 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)