Documentation ¶
Index ¶
- Constants
- func CallRpc(namespace, name, args, encoding string) (string, error)
- func GetFuncName() string
- type Client
- func (c *Client) AuthAuthorize(path string, perm int) (bool, error)
- func (c *Client) AuthGetPerms() (map[string]string, error)
- func (c *Client) CallRpc(namespace, name, args, encoding string) (string, error)
- func (c *Client) CallRpcXml(namespace, name, args string) (string, error)
- func (c *Client) CancelCommit(comment, persistid string, force, debug bool) (string, error)
- func (c *Client) Close()
- func (c *Client) Comment(path string) error
- func (c *Client) Commit(message string, debug bool) (string, error)
- func (c *Client) CommitConfirm(message string, debug bool, mins int) (string, error)
- func (c *Client) Compare(old, new, spath string, ctxdiff bool) (string, error)
- func (c *Client) CompareConfigRevisions(revOne string, revTwo string) (string, error)
- func (c *Client) CompareSessionChanges() (string, error)
- func (c *Client) Confirm() (string, error)
- func (c *Client) ConfirmPersistId(persistid string) (string, error)
- func (c *Client) ConfirmSilent() (string, error)
- func (c *Client) Copy(fpath, tpath string) error
- func (c *Client) Delete(path string) error
- func (c *Client) Discard() error
- func (c *Client) Exists(db rpc.DB, path string) (bool, error)
- func (c *Client) Expand(path string) (string, error)
- func (c *Client) ExpandWithPrefix(path, prefix string, pos int) (string, error)
- func (c *Client) ExtractArchive(file, destination string) (string, error)
- func (c *Client) Get(db rpc.DB, path string) ([]string, error)
- func (c *Client) GetCommitLog() (map[string]string, error)
- func (c *Client) GetCompletions(schema bool, path string) (map[string]string, error)
- func (c *Client) GetConfigSystemFeatures() (map[string]struct{}, error)
- func (c *Client) GetDeviations() (map[string]string, error)
- func (c *Client) GetFeatures() (map[string]string, error)
- func (c *Client) GetHelp(schema bool, path string) (map[string]string, error)
- func (c *Client) GetModuleSchemas() (string, error)
- func (c *Client) GetSchemas() (string, error)
- func (c *Client) Load(file string) error
- func (c *Client) LoadFrom(source string, routingInstance string) error
- func (c *Client) LoadKeys(user, source, routingInstance string) (string, error)
- func (c *Client) LoadReportWarnings(file string) (bool, error)
- func (c *Client) Merge(file string) error
- func (c *Client) MergeReportWarnings(file string) (bool, error)
- func (c *Client) MigrateConfigFile(filename string) (string, error)
- func (c *Client) NodeGetStatus(db rpc.DB, path string) (int, error)
- func (c *Client) NodeGetType(path string) (rpc.NodeType, error)
- func (c *Client) ReadConfigFile(filename string) (string, error)
- func (c *Client) ReadConfigFileRaw(filename string) (string, error)
- func (c *Client) Rename(fpath, tpath string) error
- func (c *Client) Rollback(revision, comment string, debug bool) (string, error)
- func (c *Client) Save(file string) error
- func (c *Client) SaveTo(dest, routingInstance string) error
- func (c *Client) SchemaGet(module string, format string) (string, error)
- func (c *Client) SessionChanged() (bool, error)
- func (c *Client) SessionExists() (bool, error)
- func (c *Client) SessionGetEnv() (map[string]interface{}, error)
- func (c *Client) SessionMarkSaved() error
- func (c *Client) SessionMarkUnsaved() error
- func (c *Client) SessionSaved() (bool, error)
- func (c *Client) SessionSetup() error
- func (c *Client) SessionSetupShared() error
- func (c *Client) SessionTeardown() error
- func (c *Client) Set(path string) (string, error)
- func (c *Client) SetConfigDebug(dbgType, level string) (string, error)
- func (c *Client) Show(db rpc.DB, path string) (string, error)
- func (c *Client) ShowConfigWithContextDiffs(path string, showDefaults bool) (string, error)
- func (c *Client) TmplGet(path string) (map[string]string, error)
- func (c *Client) TmplGetAllowed(path string) ([]string, error)
- func (c *Client) TmplGetChildren(path string) ([]string, error)
- func (c *Client) TmplValidatePath(path string) (bool, error)
- func (c *Client) TmplValidateValues(path string) (bool, error)
- func (c *Client) TreeGet(db rpc.DB, path, encoding string) (string, error)
- func (c *Client) TreeGetFull(db rpc.DB, path, encoding string) (string, error)
- func (c *Client) Validate() (string, error)
- func (c *Client) ValidatePath(path string) (string, error)
- type ConnectOption
Constants ¶
View Source
const DEFAULT_CONFIG_SOCKET = "/var/run/vyatta/configd/main.sock"
Variables ¶
This section is empty.
Functions ¶
func GetFuncName ¶
func GetFuncName() string
GetFuncName() returns the unqualified name of the caller
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func Connect ¶
func Connect(opts ...ConnectOption) (*Client, error)
func (*Client) CallRpcXml ¶
TODO: Eventually remove this
func (*Client) CancelCommit ¶
func (*Client) CommitConfirm ¶
func (*Client) CompareConfigRevisions ¶
func (*Client) CompareSessionChanges ¶
func (*Client) ConfirmPersistId ¶
func (*Client) ConfirmSilent ¶
func (*Client) ExpandWithPrefix ¶
func (*Client) ExtractArchive ¶
func (*Client) GetCompletions ¶
func (*Client) GetConfigSystemFeatures ¶
func (*Client) GetModuleSchemas ¶
func (*Client) GetSchemas ¶
func (*Client) MergeReportWarnings ¶
func (*Client) MigrateConfigFile ¶
func (*Client) ReadConfigFileRaw ¶
func (*Client) SessionChanged ¶
func (*Client) SessionExists ¶
func (*Client) SessionGetEnv ¶
func (*Client) SessionMarkSaved ¶
func (*Client) SessionMarkUnsaved ¶
func (*Client) SessionSaved ¶
func (*Client) SessionSetup ¶
func (*Client) SessionSetupShared ¶
func (*Client) SessionTeardown ¶
func (*Client) SetConfigDebug ¶
func (*Client) ShowConfigWithContextDiffs ¶
func (*Client) TreeGetFull ¶
type ConnectOption ¶
type ConnectOption func(*connectOptions)
func Address ¶
func Address(addr string) ConnectOption
func Network ¶
func Network(network string) ConnectOption
func SessionID ¶
func SessionID(sid string) ConnectOption
Click to show internal directories.
Click to hide internal directories.