Documentation ¶
Index ¶
- Constants
- type Client
- type NatCmd
- type VirtualServer
- type VirtualServersCmd
- func (c *VirtualServersCmd) Create(virtualServer VirtualServer) (VirtualServer, error)
- func (c *VirtualServersCmd) Delete(virtualServer VirtualServer) error
- func (c *VirtualServersCmd) DeleteAll(virtualServerNames []string) error
- func (c *VirtualServersCmd) List() ([]VirtualServer, error)
- func (c *VirtualServersCmd) Put(virtualServer VirtualServer) (VirtualServer, error)
- func (c *VirtualServersCmd) PutAll(virtualServers []VirtualServer) ([]VirtualServer, error)
Constants ¶
View Source
const TCP = "TCP"
View Source
const TCPUDP = "TCP/UDP"
View Source
const UDP = "UDP"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NatCmd ¶
type NatCmd struct{ *Client }
func (*NatCmd) VirtualServers ¶
func (c *NatCmd) VirtualServers() *VirtualServersCmd
type VirtualServer ¶
type VirtualServer struct { ServerName string `list:"Server Name" json:"server_name" yaml:"server_name"` ExternalPortStart uint16 `list:"External Port Start" json:"external_port_start" yaml:"external_port_start"` ExternalPortEnd uint16 `list:"External Port End" json:"external_port_end" yaml:"external_port_end"` Protocol string `list:"Protocol" json:"protocol" yaml:"protocol"` InternalPortStart uint16 `list:"Internal Port Start" json:"internal_port_start" yaml:"internal_port_start"` InternalPortEnd uint16 `list:"Internal Port End" json:"internal_port_end" yaml:"internal_port_end"` ServerIpAddress string `list:"Server IP Address" json:"server_ip_address" yaml:"server_ip_address"` WanInterface string `list:"WAN Interface" json:"wan_interface" yaml:"wan_interface"` Origin string `list:"Origin" json:"origin" yaml:"origin"` }
type VirtualServersCmd ¶
type VirtualServersCmd struct{ *Client }
func (*VirtualServersCmd) Create ¶
func (c *VirtualServersCmd) Create(virtualServer VirtualServer) (VirtualServer, error)
func (*VirtualServersCmd) Delete ¶
func (c *VirtualServersCmd) Delete(virtualServer VirtualServer) error
func (*VirtualServersCmd) DeleteAll ¶
func (c *VirtualServersCmd) DeleteAll(virtualServerNames []string) error
func (*VirtualServersCmd) List ¶
func (c *VirtualServersCmd) List() ([]VirtualServer, error)
func (*VirtualServersCmd) Put ¶
func (c *VirtualServersCmd) Put(virtualServer VirtualServer) (VirtualServer, error)
func (*VirtualServersCmd) PutAll ¶
func (c *VirtualServersCmd) PutAll(virtualServers []VirtualServer) ([]VirtualServer, error)
Click to show internal directories.
Click to hide internal directories.