Documentation ¶
Index ¶
- Variables
- type ExecHook
- func (h *ExecHook) OnInterfaceAdded(i *daemon.Interface)
- func (h *ExecHook) OnInterfaceModified(i *daemon.Interface, oldIntf *wg.Interface, m daemon.InterfaceModifier)
- func (h *ExecHook) OnInterfaceRemoved(i *daemon.Interface)
- func (h *ExecHook) OnPeerAdded(p *daemon.Peer)
- func (h *ExecHook) OnPeerModified(p *daemon.Peer, old *wgtypes.Peer, m daemon.PeerModifier, ...)
- func (h *ExecHook) OnPeerRemoved(p *daemon.Peer)
- func (h *ExecHook) OnPeerStateChanged(p *daemon.Peer, newState, prevState daemon.PeerState)
- type Hook
- type Interface
- type WebHook
- func (h *WebHook) OnInterfaceAdded(i *daemon.Interface)
- func (h *WebHook) OnInterfaceModified(i *daemon.Interface, _ *wg.Interface, m daemon.InterfaceModifier)
- func (h *WebHook) OnInterfaceRemoved(i *daemon.Interface)
- func (h *WebHook) OnPeerAdded(p *daemon.Peer)
- func (h *WebHook) OnPeerModified(p *daemon.Peer, _ *wgtypes.Peer, m daemon.PeerModifier, _, _ []net.IPNet)
- func (h *WebHook) OnPeerRemoved(p *daemon.Peer)
- func (h *WebHook) OnPeerStateChanged(p *daemon.Peer, _, _ daemon.PeerState)
Constants ¶
This section is empty.
Variables ¶
View Source
var Get = daemon.RegisterFeature(New, 70) //nolint:gochecknoglobals
Functions ¶
This section is empty.
Types ¶
type ExecHook ¶
type ExecHook struct { *config.ExecHookSetting // contains filtered or unexported fields }
func (*ExecHook) OnInterfaceAdded ¶
func (*ExecHook) OnInterfaceModified ¶
func (*ExecHook) OnInterfaceRemoved ¶
func (*ExecHook) OnPeerAdded ¶
func (*ExecHook) OnPeerModified ¶
func (*ExecHook) OnPeerRemoved ¶
type Hook ¶
type Hook interface { daemon.AllHandler daemon.PeerStateChangedHandler }
type Interface ¶
func (*Interface) NewExecHook ¶
func (i *Interface) NewExecHook(cfg *config.ExecHookSetting) *ExecHook
func (*Interface) NewWebHook ¶
func (i *Interface) NewWebHook(cfg *config.WebHookSetting) *WebHook
type WebHook ¶
type WebHook struct { *config.WebHookSetting // contains filtered or unexported fields }
func (*WebHook) OnInterfaceAdded ¶
func (*WebHook) OnInterfaceModified ¶
func (*WebHook) OnInterfaceRemoved ¶
func (*WebHook) OnPeerAdded ¶
func (*WebHook) OnPeerModified ¶
func (*WebHook) OnPeerRemoved ¶
Click to show internal directories.
Click to hide internal directories.