Documentation ¶
Index ¶
- func Capabilities(target Target, request *gpb.CapabilityRequest) (*gpb.CapabilityResponse, error)
- func CapabilitiesWithString(target Target, request string) (*gpb.CapabilityResponse, error)
- func ConnectTarget(device topocache.Device) (Target, Key, error)
- func Get(target Target, request *gpb.GetRequest) (*gpb.GetResponse, error)
- func GetWithString(target Target, request string) (*gpb.GetResponse, error)
- func NewSubscribeRequest(subscribeOptions *SubscribeOptions) (*gpb.SubscribeRequest, error)
- func Set(target Target, request *gpb.SetRequest) (*gpb.SetResponse, error)
- func SetWithString(target Target, request string) (*gpb.SetResponse, error)
- func Subscribe(target Target, request *gpb.SubscribeRequest, ...) error
- type Key
- type SubscribeOptions
- type Target
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Capabilities ¶
func Capabilities(target Target, request *gpb.CapabilityRequest) (*gpb.CapabilityResponse, error)
Capabilities get capabilities according to a formatted request
func CapabilitiesWithString ¶
func CapabilitiesWithString(target Target, request string) (*gpb.CapabilityResponse, error)
CapabilitiesWithString allows a request for the capabilities by a string - can be empty
func ConnectTarget ¶
ConnectTarget connects to a given Device according to the passed information establishing a channel to it. TODO make asyc TODO lock channel to allow one request to device at each time
func Get ¶
func Get(target Target, request *gpb.GetRequest) (*gpb.GetResponse, error)
Get can make a get request according to a formatted request
func GetWithString ¶
func GetWithString(target Target, request string) (*gpb.GetResponse, error)
GetWithString can make a get request according by a string - can be empty
func NewSubscribeRequest ¶
func NewSubscribeRequest(subscribeOptions *SubscribeOptions) (*gpb.SubscribeRequest, error)
NewSubscribeRequest returns a SubscribeRequest for the given paths
func Set ¶
func Set(target Target, request *gpb.SetRequest) (*gpb.SetResponse, error)
Set can make a set request according to a formatted request
func SetWithString ¶
func SetWithString(target Target, request string) (*gpb.SetResponse, error)
SetWithString can make a set request according by a string
func Subscribe ¶
func Subscribe(target Target, request *gpb.SubscribeRequest, handler client.NotificationHandler) error
Subscribe initiates a subscription to a target and set of paths by establishing a new channel
Types ¶
Directories ¶
Path | Synopsis |
---|---|
Package synchronizer synchronizes configurations down to devices
|
Package synchronizer synchronizes configurations down to devices |
Package topocache is a mechanism for holding a cache of Devices.
|
Package topocache is a mechanism for holding a cache of Devices. |