Angular: ajenti.augeas

Services

class augeas()
augeas.get(endpoint)

Reads an Augeas tree from server side.

Returns:promise → AugeasConfig
augeas.set(endpoint, config)

Overwrites an Augeas tree on the server side.

Returns:promise
class AugeasNode()
AugeasNode.name
AugeasNode.value
AugeasNode.parent
AugeasNode.children
AugeasNode.fullPath()
class AugeasConfig()

This is a JS doppelganger of normal Augeas API. In particular, it doesn’t support advanced XPath syntax, and operates with regular expressions instead.

AugeasConfig.get(path)
Returns:AugeasNode
AugeasConfig.set(path, value)
AugeasConfig.model(path)
Returns:a getter/setter function suitable for use as a ngModel
AugeasConfig.insert(path, value, index)
AugeasConfig.remove(path)
AugeasConfig.match(path)
Returns:Array(string)
AugeasConfig.matchNodes(path)
Returns:Array(AugeasNode)

Comments

comments powered by Disqus