gr241ag

package
v0.0.0-...-ab4974f Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2023 License: Unlicense Imports: 7 Imported by: 0

Documentation

Index

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 Client

type Client struct {
	Address  string
	Port     uint16
	Username string
	Password string
	Format   string
}

func (*Client) Nat

func (c *Client) Nat() *NatCmd

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)

Jump to

Keyboard shortcuts

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