v5

package
v0.0.0-...-b4baca9 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation ¶

Index ¶

Constants ¶

This section is empty.

Variables ¶

This section is empty.

Functions ¶

func After ¶

func After(c *cli.Context) error

func Before ¶

func Before(c *cli.Context) error

func Commands ¶

func Commands(app *api.App)

Types ¶

type ACL ¶

type ACL struct {
	Cmd
}

func (ACL) Commands ¶

func (u ACL) Commands(app *api.App)

type ACLRule ¶

type ACLRule struct {
	Cmd
}

func (ACLRule) Add ¶

func (u ACLRule) Add(c *cli.Context) error

func (ACLRule) Commands ¶

func (u ACLRule) Commands() *cli.Command

func (ACLRule) List ¶

func (u ACLRule) List(c *cli.Context) error

func (ACLRule) Remove ¶

func (u ACLRule) Remove(c *cli.Context) error

func (ACLRule) Save ¶

func (u ACLRule) Save(c *cli.Context) error

func (ACLRule) Tmpl ¶

func (u ACLRule) Tmpl() string

func (ACLRule) Url ¶

func (u ACLRule) Url(prefix, name string) string

type Access ¶

type Access struct {
	Cmd
}

func (Access) Commands ¶

func (u Access) Commands() *cli.Command

func (Access) List ¶

func (u Access) List(c *cli.Context) error

func (Access) Tmpl ¶

func (u Access) Tmpl() string

func (Access) Url ¶

func (u Access) Url(prefix, name string) string

type Address ¶

type Address struct {
	Cmd
}

func (Address) Add ¶

func (s Address) Add(c *cli.Context) error

func (Address) Commands ¶

func (s Address) Commands() *cli.Command

func (Address) Remove ¶

func (s Address) Remove(c *cli.Context) error

func (Address) Url ¶

func (s Address) Url(prefix, name string) string

type Advertis ¶

type Advertis struct {
	Cmd
}

func (Advertis) Add ¶

func (s Advertis) Add(c *cli.Context) error

func (Advertis) Commands ¶

func (s Advertis) Commands() *cli.Command

func (Advertis) Remove ¶

func (s Advertis) Remove(c *cli.Context) error

func (Advertis) Url ¶

func (s Advertis) Url(prefix string) string

type BGP ¶

type BGP struct {
	Cmd
}

func (BGP) Commands ¶

func (b BGP) Commands(app *api.App)

func (BGP) Disable ¶

func (b BGP) Disable(c *cli.Context) error

func (BGP) Enable ¶

func (b BGP) Enable(c *cli.Context) error

func (BGP) List ¶

func (b BGP) List(c *cli.Context) error

func (BGP) Save ¶

func (b BGP) Save(c *cli.Context) error

func (BGP) Url ¶

func (b BGP) Url(prefix string) string

type Ceci ¶

type Ceci struct {
	Cmd
}

func (Ceci) Commands ¶

func (u Ceci) Commands(app *api.App)

func (Ceci) List ¶

func (u Ceci) List(c *cli.Context) error

func (Ceci) Save ¶

func (u Ceci) Save(c *cli.Context) error

func (Ceci) Url ¶

func (u Ceci) Url(prefix string) string

type CeciTCP ¶

type CeciTCP struct {
	Cmd
}

func (CeciTCP) Add ¶

func (u CeciTCP) Add(c *cli.Context) error

func (CeciTCP) Commands ¶

func (u CeciTCP) Commands(app *api.App) *cli.Command

func (CeciTCP) Remove ¶

func (u CeciTCP) Remove(c *cli.Context) error

func (CeciTCP) Url ¶

func (u CeciTCP) Url(prefix string) string

type Client ¶

type Client struct {
	Auth libol.Auth
	Host string
}

func (Client) DeleteJSON ¶

func (cl Client) DeleteJSON(url string, i, o interface{}) error

func (Client) GetBody ¶

func (cl Client) GetBody(url string) ([]byte, error)

func (Client) GetJSON ¶

func (cl Client) GetJSON(url string, v interface{}) error

func (Client) JSON ¶

func (cl Client) JSON(client *libol.HttpClient, i, o interface{}) error

func (Client) Log ¶

func (cl Client) Log() *libol.SubLogger

func (Client) NewRequest ¶

func (cl Client) NewRequest(url string) *libol.HttpClient

func (Client) PostJSON ¶

func (cl Client) PostJSON(url string, i, o interface{}) error

func (Client) PutJSON ¶

func (cl Client) PutJSON(url string, i, o interface{}) error

type ClientQoS ¶

type ClientQoS struct {
	Cmd
}

func (ClientQoS) Commands ¶

func (q ClientQoS) Commands() *cli.Command

type Cmd ¶

type Cmd struct {
}

func (Cmd) Log ¶

func (c Cmd) Log() *libol.SubLogger

func (Cmd) NewHttp ¶

func (c Cmd) NewHttp(token string) Client

func (Cmd) Out ¶

func (c Cmd) Out(data any, format string, tmpl string) error

func (Cmd) Tmpl ¶

func (c Cmd) Tmpl() string

func (Cmd) Url ¶

func (c Cmd) Url(prefix, name string) string

type Config ¶

type Config struct {
	Cmd
}

func (Config) Commands ¶

func (u Config) Commands(app *api.App)

func (Config) List ¶

func (u Config) List(c *cli.Context) error

func (Config) Reload ¶

func (u Config) Reload(c *cli.Context) error

func (Config) Save ¶

func (u Config) Save(c *cli.Context) error

func (Config) Url ¶

func (u Config) Url(prefix, name string) string

type DNAT ¶

type DNAT struct {
	Cmd
}

func (DNAT) Add ¶

func (s DNAT) Add(c *cli.Context) error

func (DNAT) Commands ¶

func (s DNAT) Commands() *cli.Command

func (DNAT) Delete ¶

func (s DNAT) Delete(c *cli.Context) error

func (DNAT) List ¶

func (s DNAT) List(c *cli.Context) error

func (DNAT) Url ¶

func (s DNAT) Url(prefix, name string) string

type Device ¶

type Device struct {
	Cmd
}

func (Device) Commands ¶

func (u Device) Commands(app *api.App)

func (Device) List ¶

func (u Device) List(c *cli.Context) error

func (Device) Tmpl ¶

func (u Device) Tmpl() string

func (Device) Url ¶

func (u Device) Url(prefix string) string

type FindHop ¶

type FindHop struct {
	Cmd
}

func (FindHop) Add ¶

func (r FindHop) Add(c *cli.Context) error

func (FindHop) Commands ¶

func (r FindHop) Commands() *cli.Command

func (FindHop) List ¶

func (r FindHop) List(c *cli.Context) error

func (FindHop) Remove ¶

func (r FindHop) Remove(c *cli.Context) error

func (FindHop) Save ¶

func (r FindHop) Save(c *cli.Context) error

func (FindHop) Tmpl ¶

func (r FindHop) Tmpl() string

func (FindHop) Url ¶

func (r FindHop) Url(prefix, name string) string

type Guest ¶

type Guest struct {
	Cmd
}

func (Guest) Add ¶

func (u Guest) Add(c *cli.Context) error

func (Guest) Commands ¶

func (u Guest) Commands(user string) *cli.Command

func (Guest) List ¶

func (u Guest) List(c *cli.Context) error

func (Guest) Remove ¶

func (u Guest) Remove(c *cli.Context) error

func (Guest) Tmpl ¶

func (u Guest) Tmpl() string

func (Guest) Url ¶

func (u Guest) Url(prefix, network, name string) string

type IPSec ¶

type IPSec struct {
	Cmd
}

func (IPSec) Commands ¶

func (o IPSec) Commands(app *api.App)

func (IPSec) List ¶

func (o IPSec) List(c *cli.Context) error

func (IPSec) Save ¶

func (o IPSec) Save(c *cli.Context) error

func (IPSec) Url ¶

func (o IPSec) Url(prefix string) string

type IPSecTunnel ¶

type IPSecTunnel struct {
	Cmd
}

func (IPSecTunnel) Add ¶

func (o IPSecTunnel) Add(c *cli.Context) error

func (IPSecTunnel) Commands ¶

func (o IPSecTunnel) Commands() *cli.Command

func (IPSecTunnel) List ¶

func (o IPSecTunnel) List(c *cli.Context) error

func (IPSecTunnel) Remove ¶

func (o IPSecTunnel) Remove(c *cli.Context) error

func (IPSecTunnel) Restart ¶

func (o IPSecTunnel) Restart(c *cli.Context) error

func (IPSecTunnel) Tmpl ¶

func (o IPSecTunnel) Tmpl() string

func (IPSecTunnel) Url ¶

func (o IPSecTunnel) Url(prefix string, action string) string

type Index ¶

type Index struct {
	Cmd
}

func (Index) Commands ¶

func (r Index) Commands(app *api.App)

func (Index) List ¶

func (r Index) List(c *cli.Context) error

func (Index) Url ¶

func (r Index) Url(prefix string) string

type KernelNeighbor ¶

type KernelNeighbor struct {
	Cmd
}

func (KernelNeighbor) Commands ¶

func (s KernelNeighbor) Commands() *cli.Command

func (KernelNeighbor) List ¶

func (s KernelNeighbor) List(c *cli.Context) error

func (KernelNeighbor) Tmpl ¶

func (s KernelNeighbor) Tmpl() string

func (KernelNeighbor) Url ¶

func (s KernelNeighbor) Url(prefix string) string

type KernelRoute ¶

type KernelRoute struct {
	Cmd
}

func (KernelRoute) Commands ¶

func (s KernelRoute) Commands() *cli.Command

func (KernelRoute) List ¶

func (s KernelRoute) List(c *cli.Context) error

func (KernelRoute) Tmpl ¶

func (s KernelRoute) Tmpl() string

func (KernelRoute) Url ¶

func (s KernelRoute) Url(prefix string) string

type Knock ¶

type Knock struct {
	Cmd
}

func (Knock) Add ¶

func (u Knock) Add(c *cli.Context) error

func (Knock) Commands ¶

func (u Knock) Commands(user string) *cli.Command

func (Knock) List ¶

func (u Knock) List(c *cli.Context) error

func (Knock) Remove ¶

func (u Knock) Remove(c *cli.Context) error

func (Knock) Tmpl ¶

func (u Knock) Tmpl() string

func (Knock) Url ¶

func (u Knock) Url(prefix, network, name string) string

type Ldap ¶

type Ldap struct {
	Cmd
}

func (Ldap) Add ¶

func (u Ldap) Add(c *cli.Context) error

func (Ldap) Commands ¶

func (u Ldap) Commands(app *api.App)

func (Ldap) List ¶

func (u Ldap) List(c *cli.Context) error

func (Ldap) Remove ¶

func (u Ldap) Remove(c *cli.Context) error

func (Ldap) Url ¶

func (u Ldap) Url(prefix string) string

type Lease ¶

type Lease struct {
	Cmd
}

func (Lease) Commands ¶

func (u Lease) Commands(app *api.App)

func (Lease) List ¶

func (u Lease) List(c *cli.Context) error

func (Lease) Tmpl ¶

func (u Lease) Tmpl() string

func (Lease) Url ¶

func (u Lease) Url(prefix, name string) string

type Log ¶

type Log struct {
	Cmd
}

func (Log) Add ¶

func (v Log) Add(c *cli.Context) error

func (Log) Commands ¶

func (v Log) Commands(app *api.App)

func (Log) List ¶

func (v Log) List(c *cli.Context) error

func (Log) Tmpl ¶

func (v Log) Tmpl() string

func (Log) Url ¶

func (v Log) Url(prefix, name string) string

type Neighbor ¶

type Neighbor struct {
	Cmd
}

func (Neighbor) Add ¶

func (s Neighbor) Add(c *cli.Context) error

func (Neighbor) Commands ¶

func (s Neighbor) Commands() *cli.Command

func (Neighbor) Remove ¶

func (s Neighbor) Remove(c *cli.Context) error

func (Neighbor) Url ¶

func (s Neighbor) Url(prefix string) string

type Network ¶

type Network struct {
	Cmd
}

func (Network) Add ¶

func (u Network) Add(c *cli.Context) error

func (Network) Commands ¶

func (u Network) Commands(app *api.App)

func (Network) List ¶

func (u Network) List(c *cli.Context) error

func (Network) Remove ¶

func (u Network) Remove(c *cli.Context) error

func (Network) Save ¶

func (u Network) Save(c *cli.Context) error

func (Network) Url ¶

func (u Network) Url(prefix, name string) string

type OpenVPN ¶

type OpenVPN struct {
	Cmd
}

func (OpenVPN) Add ¶

func (o OpenVPN) Add(c *cli.Context) error

func (OpenVPN) Commands ¶

func (o OpenVPN) Commands() *cli.Command

func (OpenVPN) Remove ¶

func (o OpenVPN) Remove(c *cli.Context) error

func (OpenVPN) Restart ¶

func (o OpenVPN) Restart(c *cli.Context) error

func (OpenVPN) Url ¶

func (o OpenVPN) Url(prefix, name, action string) string

type Output ¶

type Output struct {
	Cmd
}

func (Output) Add ¶

func (o Output) Add(c *cli.Context) error

func (Output) Commands ¶

func (o Output) Commands() *cli.Command

func (Output) List ¶

func (o Output) List(c *cli.Context) error

func (Output) Remove ¶

func (o Output) Remove(c *cli.Context) error

func (Output) Save ¶

func (o Output) Save(c *cli.Context) error

func (Output) Url ¶

func (o Output) Url(prefix, name string) string

type PProf ¶

type PProf struct {
	Cmd
}

func (PProf) Add ¶

func (u PProf) Add(c *cli.Context) error

func (PProf) Commands ¶

func (u PProf) Commands(app *api.App)

func (PProf) Del ¶

func (u PProf) Del(c *cli.Context) error

func (PProf) List ¶

func (u PProf) List(c *cli.Context) error

func (PProf) Url ¶

func (u PProf) Url(prefix, name string) string

type PrefixRoute ¶

type PrefixRoute struct {
	Cmd
}

func (PrefixRoute) Add ¶

func (r PrefixRoute) Add(c *cli.Context) error

func (PrefixRoute) Commands ¶

func (r PrefixRoute) Commands() *cli.Command

func (PrefixRoute) List ¶

func (r PrefixRoute) List(c *cli.Context) error

func (PrefixRoute) Remove ¶

func (r PrefixRoute) Remove(c *cli.Context) error

func (PrefixRoute) Save ¶

func (r PrefixRoute) Save(c *cli.Context) error

func (PrefixRoute) Tmpl ¶

func (r PrefixRoute) Tmpl() string

func (PrefixRoute) Url ¶

func (r PrefixRoute) Url(prefix, name string) string

type QosRule ¶

type QosRule struct {
	Cmd
}

func (QosRule) Add ¶

func (qr QosRule) Add(c *cli.Context) error

func (QosRule) Commands ¶

func (qr QosRule) Commands() *cli.Command

func (QosRule) List ¶

func (qr QosRule) List(c *cli.Context) error

func (QosRule) Remove ¶

func (qr QosRule) Remove(c *cli.Context) error

func (QosRule) Save ¶

func (qr QosRule) Save(c *cli.Context) error

func (QosRule) Tmpl ¶

func (qr QosRule) Tmpl() string

func (QosRule) Url ¶

func (qr QosRule) Url(prefix, name string) string

type RateLimit ¶

type RateLimit struct {
	Cmd
}

func (RateLimit) Add ¶

func (u RateLimit) Add(c *cli.Context) error

func (RateLimit) Commands ¶

func (u RateLimit) Commands(app *api.App)

func (RateLimit) List ¶

func (u RateLimit) List(c *cli.Context) error

func (RateLimit) Remove ¶

func (u RateLimit) Remove(c *cli.Context) error

func (RateLimit) Tmpl ¶

func (u RateLimit) Tmpl() string

func (RateLimit) Url ¶

func (u RateLimit) Url(prefix, name string) string

type Receives ¶

type Receives struct {
	Cmd
}

func (Receives) Add ¶

func (s Receives) Add(c *cli.Context) error

func (Receives) Commands ¶

func (s Receives) Commands() *cli.Command

func (Receives) Remove ¶

func (s Receives) Remove(c *cli.Context) error

func (Receives) Url ¶

func (s Receives) Url(prefix string) string

type Redirect ¶

type Redirect struct {
	Cmd
}

func (Redirect) Add ¶

func (s Redirect) Add(c *cli.Context) error

func (Redirect) Commands ¶

func (s Redirect) Commands() *cli.Command

func (Redirect) Remove ¶

func (s Redirect) Remove(c *cli.Context) error

func (Redirect) Url ¶

func (s Redirect) Url(prefix string) string

type Reload ¶

type Reload struct {
	Cmd
}

func (Reload) Commands ¶

func (r Reload) Commands(app *api.App)

func (Reload) Do ¶

func (r Reload) Do(c *cli.Context) error

type Router ¶

type Router struct {
	Cmd
}

func (Router) Commands ¶

func (b Router) Commands(app *api.App)

func (Router) List ¶

func (b Router) List(c *cli.Context) error

func (Router) Save ¶

func (b Router) Save(c *cli.Context) error

func (Router) Url ¶

func (b Router) Url(prefix string) string

type RouterInterface ¶

type RouterInterface struct {
	Cmd
}

func (RouterInterface) Add ¶

func (s RouterInterface) Add(c *cli.Context) error

func (RouterInterface) Commands ¶

func (s RouterInterface) Commands() *cli.Command

func (RouterInterface) List ¶

func (s RouterInterface) List(c *cli.Context) error

func (RouterInterface) Remove ¶

func (s RouterInterface) Remove(c *cli.Context) error

func (RouterInterface) Tmpl ¶

func (s RouterInterface) Tmpl() string

func (RouterInterface) Url ¶

func (s RouterInterface) Url(prefix string) string

type RouterPrivate ¶

type RouterPrivate struct {
	Cmd
}

func (RouterPrivate) Add ¶

func (s RouterPrivate) Add(c *cli.Context) error

func (RouterPrivate) Commands ¶

func (s RouterPrivate) Commands() *cli.Command

func (RouterPrivate) Remove ¶

func (s RouterPrivate) Remove(c *cli.Context) error

func (RouterPrivate) Url ¶

func (s RouterPrivate) Url(prefix string) string

type RouterTunnel ¶

type RouterTunnel struct {
	Cmd
}

func (RouterTunnel) Add ¶

func (s RouterTunnel) Add(c *cli.Context) error

func (RouterTunnel) Commands ¶

func (s RouterTunnel) Commands() *cli.Command

func (RouterTunnel) Remove ¶

func (s RouterTunnel) Remove(c *cli.Context) error

func (RouterTunnel) Url ¶

func (s RouterTunnel) Url(prefix string) string

type SNAT ¶

type SNAT struct {
	Cmd
}

func (SNAT) Commands ¶

func (s SNAT) Commands() *cli.Command

func (SNAT) Disable ¶

func (s SNAT) Disable(c *cli.Context) error

func (SNAT) Enable ¶

func (s SNAT) Enable(c *cli.Context) error

func (SNAT) Url ¶

func (s SNAT) Url(prefix, name string) string

type Server ¶

type Server struct {
	Cmd
}

func (Server) Commands ¶

func (u Server) Commands(app *api.App)

func (Server) List ¶

func (u Server) List(c *cli.Context) error

func (Server) Url ¶

func (u Server) Url(prefix, name string) string

type User ¶

type User struct {
	Cmd
}

func (User) Add ¶

func (u User) Add(c *cli.Context) error

func (User) ChapTmpl ¶

func (u User) ChapTmpl() string

func (User) Check ¶

func (u User) Check(c *cli.Context) error

func (User) Commands ¶

func (u User) Commands(app *api.App)

func (User) Get ¶

func (u User) Get(c *cli.Context) error

func (User) List ¶

func (u User) List(c *cli.Context) error

func (User) Remove ¶

func (u User) Remove(c *cli.Context) error

func (User) Tmpl ¶

func (u User) Tmpl() string

func (User) Url ¶

func (u User) Url(prefix, name string) string

type VPNClient ¶

type VPNClient struct {
	Cmd
}

func (VPNClient) Add ¶

func (u VPNClient) Add(c *cli.Context) error

func (VPNClient) Commands ¶

func (u VPNClient) Commands() *cli.Command

func (VPNClient) Kill ¶

func (u VPNClient) Kill(c *cli.Context) error

func (VPNClient) List ¶

func (u VPNClient) List(c *cli.Context) error

func (VPNClient) Remove ¶

func (u VPNClient) Remove(c *cli.Context) error

func (VPNClient) Tmpl ¶

func (u VPNClient) Tmpl() string

func (VPNClient) Url ¶

func (u VPNClient) Url(prefix, name, action string) string

type Version ¶

type Version struct {
	Cmd
}

func (Version) Commands ¶

func (v Version) Commands(app *api.App)

func (Version) Get ¶

func (v Version) Get(c *cli.Context) error

func (Version) List ¶

func (v Version) List(c *cli.Context) error

func (Version) Tmpl ¶

func (v Version) Tmpl() string

func (Version) Update ¶

func (v Version) Update(c *cli.Context) error

func (Version) Url ¶

func (v Version) Url(prefix, name string) string

type ZTrust ¶

type ZTrust struct {
	Cmd
}

func (ZTrust) Commands ¶

func (z ZTrust) Commands(app *api.App)

func (ZTrust) Disable ¶

func (z ZTrust) Disable(c *cli.Context) error

func (ZTrust) Enable ¶

func (z ZTrust) Enable(c *cli.Context) error

func (ZTrust) Url ¶

func (z ZTrust) Url(prefix, network string) string

Jump to

Keyboard shortcuts

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