Documentation ¶
Index ¶
- Constants
- type Client
- type GoNCClient
- func (g *GoNCClient) Close() error
- func (g *GoNCClient) DeleteConfig(applyGroup string, commit bool) (string, error)
- func (g *GoNCClient) MarshalGroup(id string, obj interface{}) error
- func (g *GoNCClient) SendApplyGroups() error
- func (g *GoNCClient) SendCommit() error
- func (g *GoNCClient) SendTransaction(id string, obj interface{}, commit bool) error
Constants ¶
View Source
const ApplyGroupXML = `<load-configuration action="merge" format="xml">
%s
</load-configuration>
`
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type GoNCClient ¶
GoNCClient type for storing data and wrapping functions
func (*GoNCClient) Close ¶
func (g *GoNCClient) Close() error
Close is a functional thing to close the Driver
func (*GoNCClient) DeleteConfig ¶
func (g *GoNCClient) DeleteConfig(applyGroup string, commit bool) (string, error)
DeleteConfig is a wrapper for driver.SendRaw()
func (*GoNCClient) MarshalGroup ¶
func (g *GoNCClient) MarshalGroup(id string, obj interface{}) error
MarshalGroup accepts a struct of type X and then marshals data onto it
func (*GoNCClient) SendApplyGroups ¶
func (g *GoNCClient) SendApplyGroups() error
This function is a helper used to send apply-groups to the device in chronological order
func (*GoNCClient) SendCommit ¶
func (g *GoNCClient) SendCommit() error
SendCommit is a wrapper for driver.SendRaw()
func (*GoNCClient) SendTransaction ¶
func (g *GoNCClient) SendTransaction(id string, obj interface{}, commit bool) error
SendTransaction is a method that unmarshal the XML, creates the transaction and passes in a commit
Click to show internal directories.
Click to hide internal directories.