Documentation
¶
Overview ¶
Copyright (c) 2019, AT&T Intellectual Property. All rights reserved.
Copyright (c) 2015-2017 by Brocade Communications Systems, Inc. All rights reserved.
SPDX-License-Identifier: GPL-2.0-only
Index ¶
- Variables
- func GetFuncName() string
- func IsLoginPidError(err error) bool
- type ArgErr
- type ArgNErr
- type Client
- type Committer
- func (c *Committer) Candidate() *data.Node
- func (c *Committer) Debug() bool
- func (c *Committer) Delete(_ []string) error
- func (c *Committer) Effective() commit.EffectiveDatabase
- func (c *Committer) Log(msgs ...interface{})
- func (c *Committer) LogAudit(_ string)
- func (c *Committer) LogCommitMsg(string)
- func (c *Committer) LogCommitTime(string, time.Time)
- func (c *Committer) LogError(msgs ...interface{})
- func (c *Committer) MustDebugThreshold() int
- func (c *Committer) RunDeferred() bool
- func (c *Committer) Running() *data.Node
- func (c *Committer) Schema() schema.Node
- func (c *Committer) Set(_ []string) error
- func (c *Committer) Sid() string
- func (c *Committer) Uid() uint32
- type Config
- type ConfigurationUpdated
- type Disp
- func (d *Disp) Apply(config string) (bool, error)
- func (d *Disp) AuthAuthorize(path string, perm int) (bool, error)
- func (d *Disp) CallRpc(namespace, name, args, encoding string) (string, error)
- func (d *Disp) CallRpcXml(namespace, name, args string) (string, error)
- func (d *Disp) Exists(db rpc.DB, sid string, path string) (bool, error)
- func (d *Disp) Expand(path string) (string, error)
- func (d *Disp) Get(db rpc.DB, sid string, path string) ([]string, error)
- func (d *Disp) GetSchemas() (string, error)
- func (d *Disp) MigrateConfigFile(filename string) (string, error)
- func (d *Disp) NodeGetStatus(db rpc.DB, sid string, path string) (rpc.NodeStatus, error)
- func (d *Disp) NodeGetType(sid string, path string) (rpc.NodeType, error)
- func (d *Disp) NodeIsDefault(db rpc.DB, sid string, path string) (bool, error)
- func (d *Disp) Plug(intfName string) (bool, error)
- func (d *Disp) ReadConfigFile(filename string) (string, error)
- func (d *Disp) Register(intfName string) (bool, error)
- func (d *Disp) Running(intf string) (string, error)
- func (d *Disp) SchemaGet(module string, format string) (string, error)
- func (d *Disp) SessionExists(sid string) (bool, error)
- func (d *Disp) TmplGet(path string) (map[string]string, error)
- func (d *Disp) TmplGetChildren(path string) ([]string, error)
- func (d *Disp) TmplValidatePath(path string) (bool, error)
- func (d *Disp) TmplValidateValues(path string) (bool, error)
- func (d *Disp) TreeGet(db rpc.DB, sid, path, encoding string, flags map[string]interface{}) (string, error)
- func (d *Disp) Unplug(intfName string) (bool, error)
- func (d *Disp) Unregister(intfName string) (bool, error)
- type InterfaceState
- type IntfMachine
- type IntfManager
- type LoginPidError
- type MethErr
- type Request
- type Response
- type Session
- type Sessions
- type Srv
- type SrvConn
- type State
- type TransFn
Constants ¶
This section is empty.
Variables ¶
View Source
var SchemaTree *atomicSchemaNode
Functions ¶
func GetFuncName ¶
func GetFuncName() string
GetFuncName() returns the unqualified name of the caller
func IsLoginPidError ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Unregister ¶
type Committer ¶
type Committer struct {
// contains filtered or unexported fields
}
func NewCommitter ¶
func (*Committer) Effective ¶
func (c *Committer) Effective() commit.EffectiveDatabase
func (*Committer) LogCommitMsg ¶
func (*Committer) MustDebugThreshold ¶
func (*Committer) RunDeferred ¶
type ConfigurationUpdated ¶
type ConfigurationUpdated struct { Interface struct { Name string `rfc7951:"name"` } `rfc7951:"vyatta-ifmgr-v1:interface"` }
type Disp ¶
type Disp struct {
// contains filtered or unexported fields
}
func (*Disp) GetSchemas ¶
func (*Disp) NodeGetStatus ¶
func (*Disp) NodeGetType ¶
Pretend to be configd, proxy safe requests as needed
func (*Disp) NodeIsDefault ¶
type InterfaceState ¶
type IntfMachine ¶
type IntfMachine struct {
// contains filtered or unexported fields
}
func NewIntfMachine ¶
func NewIntfMachine(ifname string) *IntfMachine
func (*IntfMachine) Apply ¶
func (mach *IntfMachine) Apply(cfg *data.Node)
func (*IntfMachine) IsShutdown ¶
func (mach *IntfMachine) IsShutdown() bool
func (*IntfMachine) Kill ¶
func (mach *IntfMachine) Kill()
func (*IntfMachine) Plug ¶
func (mach *IntfMachine) Plug()
func (*IntfMachine) Reset ¶
func (mach *IntfMachine) Reset(cfg *data.Node)
func (*IntfMachine) Unplug ¶
func (mach *IntfMachine) Unplug()
type IntfManager ¶
func NewIntfManager ¶
func NewIntfManager() *IntfManager
func (*IntfManager) Apply ¶
func (mgr *IntfManager) Apply(config *data.Node)
func (*IntfManager) Plug ¶
func (mgr *IntfManager) Plug(intfName string)
func (*IntfManager) Register ¶
func (mgr *IntfManager) Register(intfName string)
func (*IntfManager) Unplug ¶
func (mgr *IntfManager) Unplug(intfName string)
func (*IntfManager) Unregister ¶
func (mgr *IntfManager) Unregister(intfName string)
type LoginPidError ¶
type LoginPidError struct {
// contains filtered or unexported fields
}
func (*LoginPidError) Error ¶
func (e *LoginPidError) Error() string
type Request ¶
type Request struct { //Op is the method that was called via json rpc Method string `json:"method"` //Args is a list of arguments to that method Args []interface{} `json:"params"` //Id is the unique request identifier Id int `json:"id"` }
Request represents an RPC request
type Response ¶
type Response struct { //Result is any value returned by the handler //The client library uses reflection to ensure it received the appropriate type. Result interface{} `json:"result"` //Error contains a message describing a problem Error interface{} `json:"error"` //Id is the unique request identifier Id int `json:"id"` }
Response represents an RPC response
type Sessions ¶
func NewSessionMap ¶
func NewSessionMap() *Sessions
type Srv ¶
type Srv struct { *net.UnixListener Config *Config // contains filtered or unexported fields }
func (*Srv) Log ¶
Log is a common place to do logging so that the implementation may change in the future.
type TransFn ¶
type TransFn func(*IntfMachine, interface{}) State
Source Files
¶
Click to show internal directories.
Click to hide internal directories.