Documentation ¶
Index ¶
- type ScrapligoNetconfTarget
- func (snt *ScrapligoNetconfTarget) Close() error
- func (snt *ScrapligoNetconfTarget) Commit() error
- func (snt *ScrapligoNetconfTarget) CopyConfig(source, target string) (*types.NetconfResponse, error)
- func (snt *ScrapligoNetconfTarget) Discard() error
- func (snt *ScrapligoNetconfTarget) EditConfig(target string, config string) (*types.NetconfResponse, error)
- func (snt *ScrapligoNetconfTarget) Get(filter string) (*types.NetconfResponse, error)
- func (snt *ScrapligoNetconfTarget) GetConfig(source string, filter string) (*types.NetconfResponse, error)
- func (snt *ScrapligoNetconfTarget) IsAlive() bool
- func (snt *ScrapligoNetconfTarget) Lock(target string) (*types.NetconfResponse, error)
- func (snt *ScrapligoNetconfTarget) Unlock(target string) (*types.NetconfResponse, error)
- func (snt *ScrapligoNetconfTarget) Validate(source string) (*types.NetconfResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScrapligoNetconfTarget ¶
type ScrapligoNetconfTarget struct {
// contains filtered or unexported fields
}
func NewScrapligoNetconfTarget ¶
func NewScrapligoNetconfTarget(cfg *config.SBI) (*ScrapligoNetconfTarget, error)
NewScrapligoNetconfTarget inits a new ScrapligoNetconfTarget which is already connected to the target node
func (*ScrapligoNetconfTarget) Close ¶
func (snt *ScrapligoNetconfTarget) Close() error
func (*ScrapligoNetconfTarget) Commit ¶
func (snt *ScrapligoNetconfTarget) Commit() error
func (*ScrapligoNetconfTarget) CopyConfig ¶
func (snt *ScrapligoNetconfTarget) CopyConfig(source, target string) (*types.NetconfResponse, error)
func (*ScrapligoNetconfTarget) Discard ¶
func (snt *ScrapligoNetconfTarget) Discard() error
func (*ScrapligoNetconfTarget) EditConfig ¶
func (snt *ScrapligoNetconfTarget) EditConfig(target string, config string) (*types.NetconfResponse, error)
EditConfig transforms the generalized EditConfig into the scrapligo implementation
func (*ScrapligoNetconfTarget) Get ¶
func (snt *ScrapligoNetconfTarget) Get(filter string) (*types.NetconfResponse, error)
func (*ScrapligoNetconfTarget) GetConfig ¶
func (snt *ScrapligoNetconfTarget) GetConfig(source string, filter string) (*types.NetconfResponse, error)
func (*ScrapligoNetconfTarget) IsAlive ¶
func (snt *ScrapligoNetconfTarget) IsAlive() bool
func (*ScrapligoNetconfTarget) Lock ¶
func (snt *ScrapligoNetconfTarget) Lock(target string) (*types.NetconfResponse, error)
func (*ScrapligoNetconfTarget) Unlock ¶
func (snt *ScrapligoNetconfTarget) Unlock(target string) (*types.NetconfResponse, error)
func (*ScrapligoNetconfTarget) Validate ¶
func (snt *ScrapligoNetconfTarget) Validate(source string) (*types.NetconfResponse, error)
Click to show internal directories.
Click to hide internal directories.