Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »


type RunTimeContext struct {
    // opaque to caller
}

//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(hname 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{}, 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(cname interface{}) (error)

// delete all handles underneath the given handle

func (rtc *RunTimeContext) RtcDeletePrefix(cname 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{}) (interface{}, error)

  • No labels