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 4 Next »


type RunTimeContext struct {
    cid interface{}
}

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

//delete the given context
func (rtc *RunTimeContext) RtcDelete(cname 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)

// Delete the given handle and all levels underneath
func (rtc *RunTimeContext) RtcDeleteLevel(hname 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)

// Delete the given resource by using its handle
func (rtc *RunTimeContext) RtcDeleteResource(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 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 given handle
func (rtc *RunTimeContext) RtcDeleteInstruction(handle interface{}) (error)

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

  • No labels