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 3 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 ordering instruction at a given level and return the new handle
func (rtc *RunTimeContext) RtcAddInstOrder(handle interface{}, value interface{}) (interface{}, error)

// Delete ordering instruction for a given handle
func (rtc *RunTimeContext) RtcDeleteInstOrder(handle interface{}) (error)

// Add dependency instruction at a given level and return the new handle
func (rtc *RunTimeContext) RtcAddInstDependency(handle interface{}, value interface{}) (interface{}, error)

// Delete dependency instruction for a given handle
func (rtc *RunTimeContext) RtcDeleteInstDependency(handle interface{}) (error)

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

  • No labels