Netgonf

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyConfig

func ApplyConfig(session Session, config string) (result string, err error)

func Get

func Get(session Session, filter string) (*netconf.RPCReply, error)

func GetRunningConfig

func GetRunningConfig(session Session, filter string) (*netconf.RPCReply, error)

func LockDatastore

func LockDatastore(session Session) (result string, err error)

func SaveConfig

func SaveConfig(session Session) (result string, err error)

func UnlockDatastore

func UnlockDatastore(session Session) (result string, err error)

Types

type Session

type Session interface {
	Exec(...netconf.RPCMethod) (*netconf.RPCReply, error)
	Close() error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL