Documentation ¶
Index ¶
- type AddressList
- type AddressLists
- type AddressListsImpl
- func (n AddressListsImpl) CreateAddressList(input *CreateAddressListInput) (*CreateAddressListOutput, error)
- func (n AddressListsImpl) DeleteAddressList(input *DeleteAddressListInput) (*DeleteAddressListOutput, error)
- func (n AddressListsImpl) GetAddressList(input *GetAddressListInput) (*GetAddressListOutput, error)
- func (n AddressListsImpl) ListAddressLists(input *ListAddressListsInput) (*ListAddressListsOutput, error)
- func (n AddressListsImpl) UpdateAddressList(input *UpdateAddressListInput) (*UpdateAddressListOutput, error)
- type CreateAddressListInput
- type CreateAddressListOutput
- type CreateFilterRuleInput
- type CreateFilterRuleOutput
- type CreateMangleRuleInput
- type CreateMangleRuleOutput
- type CreateNatRuleInput
- type CreateNatRuleOutput
- type DeleteAddressListInput
- type DeleteAddressListOutput
- type DeleteFilterRuleInput
- type DeleteFilterRuleOutput
- type DeleteMangleRuleInput
- type DeleteMangleRuleOutput
- type DeleteNatRuleInput
- type DeleteNatRuleOutput
- type Filter
- type Filters
- type FiltersImpl
- func (n FiltersImpl) CreateFilterRule(input *CreateFilterRuleInput) (*CreateFilterRuleOutput, error)
- func (n FiltersImpl) DeleteFilterRule(input *DeleteFilterRuleInput) (*DeleteFilterRuleOutput, error)
- func (n FiltersImpl) GetFilterRule(input *GetFilterRuleInput) (*GetFilterRuleOutput, error)
- func (n FiltersImpl) ListFilterRules(input *ListFilterRulesInput) (*ListFilterRulesOutput, error)
- func (n FiltersImpl) UpdateFilterRule(input *UpdateFilterRuleInput) (*UpdateFilterRuleOutput, error)
- type Firewall
- type GetAddressListInput
- type GetAddressListOutput
- type GetFilterRuleInput
- type GetFilterRuleOutput
- type GetMangleRuleInput
- type GetMangleRuleOutput
- type GetNatRuleInput
- type GetNatRuleOutput
- type ListAddressListsInput
- type ListAddressListsOutput
- type ListFilterRulesInput
- type ListFilterRulesOutput
- type ListMangleRulesInput
- type ListMangleRulesOutput
- type ListNatRulesInput
- type ListNatRulesOutput
- type Mangle
- type Mangles
- type ManglesImpl
- func (n ManglesImpl) CreateMangleRule(input *CreateMangleRuleInput) (*CreateMangleRuleOutput, error)
- func (n ManglesImpl) DeleteMangleRule(input *DeleteMangleRuleInput) (*DeleteMangleRuleOutput, error)
- func (n ManglesImpl) GetMangleRule(input *GetMangleRuleInput) (*GetMangleRuleOutput, error)
- func (n ManglesImpl) ListMangleRules(input *ListMangleRulesInput) (*ListMangleRulesOutput, error)
- func (n ManglesImpl) UpdateMangleRule(input *UpdateMangleRuleInput) (*UpdateMangleRuleOutput, error)
- type NatRule
- type Nats
- type NatsImpl
- func (n NatsImpl) CreateNatRule(input *CreateNatRuleInput) (*CreateNatRuleOutput, error)
- func (n NatsImpl) DeleteNatRule(input *DeleteNatRuleInput) (*DeleteNatRuleOutput, error)
- func (n NatsImpl) GetNatRule(input *GetNatRuleInput) (*GetNatRuleOutput, error)
- func (n NatsImpl) ListNatRules(input *ListNatRulesInput) (*ListNatRulesOutput, error)
- func (n NatsImpl) UpdateNatRule(input *UpdateNatRuleInput) (*UpdateNatRuleOutput, error)
- type UpdateAddressListInput
- type UpdateAddressListOutput
- type UpdateFilterRuleInput
- type UpdateFilterRuleOutput
- type UpdateMangleRuleInput
- type UpdateMangleRuleOutput
- type UpdateNatRuleInput
- type UpdateNatRuleOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressList ¶
type AddressLists ¶
type AddressLists interface { ListAddressLists(input *ListAddressListsInput) (*ListAddressListsOutput, error) GetAddressList(input *GetAddressListInput) (*GetAddressListOutput, error) CreateAddressList(input *CreateAddressListInput) (*CreateAddressListOutput, error) UpdateAddressList(input *UpdateAddressListInput) (*UpdateAddressListOutput, error) DeleteAddressList(input *DeleteAddressListInput) (*DeleteAddressListOutput, error) }
type AddressListsImpl ¶
type AddressListsImpl struct {
Client *resty.Client
}
func (AddressListsImpl) CreateAddressList ¶
func (n AddressListsImpl) CreateAddressList(input *CreateAddressListInput) (*CreateAddressListOutput, error)
func (AddressListsImpl) DeleteAddressList ¶
func (n AddressListsImpl) DeleteAddressList(input *DeleteAddressListInput) (*DeleteAddressListOutput, error)
func (AddressListsImpl) GetAddressList ¶
func (n AddressListsImpl) GetAddressList(input *GetAddressListInput) (*GetAddressListOutput, error)
func (AddressListsImpl) ListAddressLists ¶
func (n AddressListsImpl) ListAddressLists(input *ListAddressListsInput) (*ListAddressListsOutput, error)
func (AddressListsImpl) UpdateAddressList ¶
func (n AddressListsImpl) UpdateAddressList(input *UpdateAddressListInput) (*UpdateAddressListOutput, error)
type CreateAddressListInput ¶
type CreateAddressListInput struct{}
type CreateAddressListOutput ¶
type CreateAddressListOutput struct{}
type CreateFilterRuleInput ¶
type CreateFilterRuleInput Filter
type CreateFilterRuleOutput ¶
type CreateFilterRuleOutput Filter
type CreateMangleRuleInput ¶
type CreateMangleRuleInput struct{}
type CreateMangleRuleOutput ¶
type CreateMangleRuleOutput struct{}
type CreateNatRuleInput ¶
type CreateNatRuleInput NatRule
type CreateNatRuleOutput ¶
type CreateNatRuleOutput NatRule
type DeleteAddressListInput ¶
type DeleteAddressListInput struct{}
type DeleteAddressListOutput ¶
type DeleteAddressListOutput struct{}
type DeleteFilterRuleInput ¶
type DeleteFilterRuleInput struct {
Id string
}
type DeleteFilterRuleOutput ¶
type DeleteFilterRuleOutput struct{}
type DeleteMangleRuleInput ¶
type DeleteMangleRuleInput struct{}
type DeleteMangleRuleOutput ¶
type DeleteMangleRuleOutput struct{}
type DeleteNatRuleInput ¶
type DeleteNatRuleInput struct {
Id string
}
type DeleteNatRuleOutput ¶
type DeleteNatRuleOutput struct{}
type Filter ¶
type Filter struct { Id string `json:".id,omitempty"` Action string `json:"action"` AddressListTimeout string `json:"address-list-timeout,omitempty"` Chain string `json:"chain"` Comment string `json:"comment,omitempty"` ConnectionBytes string `json:"connection-bytes,omitempty"` ConnectionLimit string `json:"connection-limit,omitempty"` ConnectionMark string `json:"connection-mark,omitempty"` ConnectionNatState string `json:"connection-nat-state,omitempty"` ConnectionRate string `json:"connection-rate,omitempty"` ConnectionState string `json:"connection-state,omitempty"` ConnectionType string `json:"connection-type,omitempty"` Content string `json:"content,omitempty"` Dscp string `json:"dscp,omitempty"` DstAddress string `json:"dst-address,omitempty"` DstAddressList string `json:"dst-address-list,omitempty"` DstAddressType string `json:"dst-address-type,omitempty"` DstLimit string `json:"dst-limit,omitempty"` DstPort string `json:"dst-port,omitempty"` Fragment string `json:"fragment,omitempty"` Hotspot string `json:"hotspot,omitempty"` HwOffload string `json:"hw-offload,omitempty"` IcmpOptions string `json:"icmp-options,omitempty"` InBridgePort string `json:"in-bridge-port,omitempty"` InBridgePortList string `json:"in-bridge-port-list,omitempty"` InInterface string `json:"in-interface,omitempty"` InInterfaceList string `json:"in-interface-list,omitempty"` IngressPriority string `json:"ingress-priority,omitempty"` IpsecPolicy string `json:"ipsec-policy,omitempty"` Ipv4Options string `json:"ipv4-options,omitempty"` JumpTarget string `json:"jump-target,omitempty"` Layer7Protocol string `json:"layer7-protocol,omitempty"` Limit string `json:"limit,omitempty"` Log string `json:"log,omitempty"` LogPrefix string `json:"log-prefix,omitempty"` Nth string `json:"nth,omitempty"` OutBridgePort string `json:"out-bridge-port,omitempty"` OutBridgePortList string `json:"out-bridge-port-list,omitempty"` OutInterface string `json:"out-interface,omitempty"` OutInterfaceList string `json:"out-interface-list,omitempty"` PacketMark string `json:"packet-mark,omitempty"` PacketSize string `json:"packet-size,omitempty"` PerConnectionClassifier string `json:"per-connection-classifier,omitempty"` Port string `json:"port,omitempty"` Priority string `json:"priority,omitempty"` Protocol string `json:"protocol,omitempty"` Psd string `json:"psd,omitempty"` Random string `json:"random,omitempty"` RejectWith string `json:"reject-with,omitempty"` RoutingTable string `json:"routing-table,omitempty"` RoutingMark string `json:"routing-mark,omitempty"` SrcAddress string `json:"src-address,omitempty"` SrcAddressList string `json:"src-address-list,omitempty"` SrcAddressType string `json:"src-address-type,omitempty"` SrcPort string `json:"src-port,omitempty"` SrcMacAddress string `json:"src-mac-address,omitempty"` TcpFlags string `json:"tcp-flags,omitempty"` TcpMss string `json:"tcp-mss,omitempty"` Time string `json:"time,omitempty"` TlsHost string `json:"tls-host,omitempty"` Ttl string `json:"ttl,omitempty"` }
type Filters ¶
type Filters interface { ListFilterRules(input *ListFilterRulesInput) (*ListFilterRulesOutput, error) GetFilterRule(input *GetFilterRuleInput) (*GetFilterRuleOutput, error) CreateFilterRule(input *CreateFilterRuleInput) (*CreateFilterRuleOutput, error) UpdateFilterRule(input *UpdateFilterRuleInput) (*UpdateFilterRuleOutput, error) DeleteFilterRule(input *DeleteFilterRuleInput) (*DeleteFilterRuleOutput, error) }
type FiltersImpl ¶
type FiltersImpl struct {
Client *resty.Client
}
func (FiltersImpl) CreateFilterRule ¶
func (n FiltersImpl) CreateFilterRule(input *CreateFilterRuleInput) (*CreateFilterRuleOutput, error)
func (FiltersImpl) DeleteFilterRule ¶
func (n FiltersImpl) DeleteFilterRule(input *DeleteFilterRuleInput) (*DeleteFilterRuleOutput, error)
func (FiltersImpl) GetFilterRule ¶
func (n FiltersImpl) GetFilterRule(input *GetFilterRuleInput) (*GetFilterRuleOutput, error)
func (FiltersImpl) ListFilterRules ¶
func (n FiltersImpl) ListFilterRules(input *ListFilterRulesInput) (*ListFilterRulesOutput, error)
func (FiltersImpl) UpdateFilterRule ¶
func (n FiltersImpl) UpdateFilterRule(input *UpdateFilterRuleInput) (*UpdateFilterRuleOutput, error)
type Firewall ¶
type Firewall struct {
Client *resty.Client
}
func (Firewall) AddressLists ¶
func (f Firewall) AddressLists() AddressLists
type GetAddressListInput ¶
type GetAddressListInput struct{}
type GetAddressListOutput ¶
type GetAddressListOutput struct{}
type GetFilterRuleInput ¶
type GetFilterRuleInput struct {
Id string
}
type GetFilterRuleOutput ¶
type GetFilterRuleOutput Filter
type GetMangleRuleInput ¶
type GetMangleRuleInput struct{}
type GetMangleRuleOutput ¶
type GetMangleRuleOutput struct{}
type GetNatRuleInput ¶
type GetNatRuleInput struct {
Id string
}
type GetNatRuleOutput ¶
type GetNatRuleOutput NatRule
type ListAddressListsInput ¶
type ListAddressListsInput struct{}
type ListAddressListsOutput ¶
type ListAddressListsOutput struct{}
type ListFilterRulesInput ¶
type ListFilterRulesInput struct{}
type ListFilterRulesOutput ¶
type ListFilterRulesOutput []Filter
type ListMangleRulesInput ¶
type ListMangleRulesInput struct{}
type ListMangleRulesOutput ¶
type ListMangleRulesOutput struct{}
type ListNatRulesInput ¶
type ListNatRulesInput struct{}
type ListNatRulesOutput ¶
type ListNatRulesOutput []NatRule
type Mangle ¶
type Mangle struct { Action string `json:"action"` AddressList string `json:"address-list,omitempty"` AddressListTimeout string `json:"address-list-timeout,omitempty"` Chain string `json:"chain"` Comment string `json:"comment,omitempty"` ConnectionBytes string `json:"connection-bytes,omitempty"` ConnectionLimit string `json:"connection-limit,omitempty"` ConnectionMark string `json:"connection-mark,omitempty"` ConnectionNatState string `json:"connection-nat-state,omitempty"` ConnectionRate string `json:"connection-rate,omitempty"` ConnectionState string `json:"connection-state,omitempty"` ConnectionType string `json:"connection-type,omitempty"` Content string `json:"content,omitempty"` Dscp int8 `json:"dscp,omitempty"` DstAddress string `json:"dst-address,omitempty"` DstAddressList string `json:"dst-address-list,omitempty"` DstAddressType string `json:"dst-address-type,omitempty"` DstLimit string `json:"dst-limit,omitempty"` DstPort string `json:"dst-port,omitempty"` Fragment string `json:"fragment,omitempty"` Hotspot string `json:"hotspot,omitempty"` IcmpOptions string `json:"icmp-options,omitempty"` InBridgePort string `json:"in-bridge-port,omitempty"` InBridgePortList string `json:"in-bridge-port-list,omitempty"` InInterface string `json:"in-interface,omitempty"` IngressPriority int8 `json:"ingress-priority,omitempty"` IpsecPolicy string `json:"ipsec-policy,omitempty"` Ipv4Options string `json:"ipv4-options,omitempty"` JumpTarget string `json:"jump-target,omitempty"` Layer7Protocol string `json:"layer7-protocol,omitempty"` Limit string `json:"limit,omitempty"` Log string `json:"log,omitempty"` LogPrefix string `json:"log-prefix,omitempty"` NewDscp string `json:"new-dscp,omitempty"` NewMss int8 `json:"new-mss,omitempty"` NewPacketMark string `json:"new-packet-mark,omitempty"` NewPriority string `json:"new-priority,omitempty"` NewRoutingMark string `json:"new-routing-mark,omitempty"` NewTtl string `json:"new-ttl,omitempty"` Nth string `json:"nth,omitempty"` OutBridgePort string `json:"out-bridge-port,omitempty"` OutInterface string `json:"out-interface,omitempty"` PacketMark string `json:"packet-mark,omitempty"` PacketSize string `json:"packet-size,omitempty"` Passthrough string `json:"passthrough,omitempty"` PerConnectionClassifier string `json:"per-connection-classifier,omitempty"` Port string `json:"port,omitempty"` Priority int8 `json:"priority,omitempty"` Protocol string `json:"protocol,omitempty"` Psd string `json:"psd,omitempty"` Random int8 `json:"random,omitempty"` RoutingMark string `json:"routing-mark,omitempty"` RouteDst string `json:"route-dst,omitempty"` SrcAddress string `json:"src-address,omitempty"` SrcAddressList string `json:"src-address-list,omitempty"` SrcAddressType string `json:"src-address-type,omitempty"` SrcPort string `json:"src-port,omitempty"` SrcMacAddress string `json:"src-mac-address,omitempty"` TcpFlags string `json:"tcp-flags,omitempty"` TcpMss string `json:"tcp-mss,omitempty"` Time string `json:"time,omitempty"` TlsHost string `json:"tls-host,omitempty"` Ttl int8 `json:"ttl,omitempty"` }
type Mangles ¶
type Mangles interface { ListMangleRules(input *ListMangleRulesInput) (*ListMangleRulesOutput, error) GetMangleRule(input *GetMangleRuleInput) (*GetMangleRuleOutput, error) CreateMangleRule(input *CreateMangleRuleInput) (*CreateMangleRuleOutput, error) UpdateMangleRule(input *UpdateMangleRuleInput) (*UpdateMangleRuleOutput, error) DeleteMangleRule(input *DeleteMangleRuleInput) (*DeleteMangleRuleOutput, error) }
type ManglesImpl ¶
type ManglesImpl struct {
Client *resty.Client
}
func (ManglesImpl) CreateMangleRule ¶
func (n ManglesImpl) CreateMangleRule(input *CreateMangleRuleInput) (*CreateMangleRuleOutput, error)
func (ManglesImpl) DeleteMangleRule ¶
func (n ManglesImpl) DeleteMangleRule(input *DeleteMangleRuleInput) (*DeleteMangleRuleOutput, error)
func (ManglesImpl) GetMangleRule ¶
func (n ManglesImpl) GetMangleRule(input *GetMangleRuleInput) (*GetMangleRuleOutput, error)
func (ManglesImpl) ListMangleRules ¶
func (n ManglesImpl) ListMangleRules(input *ListMangleRulesInput) (*ListMangleRulesOutput, error)
func (ManglesImpl) UpdateMangleRule ¶
func (n ManglesImpl) UpdateMangleRule(input *UpdateMangleRuleInput) (*UpdateMangleRuleOutput, error)
type NatRule ¶
type NatRule struct { Id string `json:".id,omitempty"` Action string `json:"action"` AddressList string `json:"address-list,omitempty"` AddressListTimeout string `json:"address-list-timeout,omitempty"` Chain string `json:"chain"` Comment string `json:"comment,omitempty"` ConnectionBytes string `json:"connection-bytes,omitempty"` ConnectionLimit string `json:"connection-limit,omitempty"` ConnectionMark string `json:"connection-mark,omitempty"` ConnectionRate string `json:"connection-rate,omitempty"` ConnectionType string `json:"connection-type,omitempty"` Content string `json:"content,omitempty"` Dscp string `json:"dscp,omitempty"` DstAddress string `json:"dst-address,omitempty"` DstAddressList string `json:"dst-address-list,omitempty"` DstAddressType string `json:"dst-address-type,omitempty"` DstLimit string `json:"dst-limit,omitempty"` DstPort string `json:"dst-port,omitempty"` Fragment string `json:"fragment,omitempty"` Hotspot string `json:"hotspot,omitempty"` IcmpOptions string `json:"icmp-options,omitempty"` InBridgePort string `json:"in-bridge-port,omitempty"` InInterface string `json:"in-interface,omitempty"` IngressPriority string `json:"ingress-priority,omitempty"` IpsecPolicy string `json:"ipsec-policy,omitempty"` Ipv4Options string `json:"ipv4-options,omitempty"` JumpTarget string `json:"jump-target,omitempty"` Layer7Protocol string `json:"layer7-protocol,omitempty"` Limit string `json:"limit,omitempty"` Log string `json:"log,omitempty"` LogPrefix string `json:"log-prefix,omitempty"` OutBridgePort string `json:"out-bridge-port,omitempty"` OutInterface string `json:"out-interface,omitempty"` PacketMark string `json:"packet-mark,omitempty"` PacketSize string `json:"packet-size,omitempty"` PerConnectionClassifier string `json:"per-connection-classifier,omitempty"` Port string `json:"port,omitempty"` Protocol string `json:"protocol,omitempty"` Psd string `json:"psd,omitempty"` Random string `json:"random,omitempty"` RoutingMark string `json:"routing-mark,omitempty"` SameNotByDst string `json:"same-not-by-dst,omitempty"` SrcAddress string `json:"src-address,omitempty"` SrcAddressList string `json:"src-address-list,omitempty"` SrcAddressType string `json:"src-address-type,omitempty"` SrcPort string `json:"src-port,omitempty"` SrcMacAddress string `json:"src-mac-address,omitempty"` TcpMss string `json:"tcp-mss,omitempty"` Time string `json:"time,omitempty"` ToAddresses string `json:"to-addresses,omitempty"` ToPorts string `json:"to-ports,omitempty"` Ttl string `json:"ttl,omitempty"` }
type Nats ¶
type Nats interface { ListNatRules(input *ListNatRulesInput) (*ListNatRulesOutput, error) GetNatRule(input *GetNatRuleInput) (*GetNatRuleOutput, error) CreateNatRule(input *CreateNatRuleInput) (*CreateNatRuleOutput, error) UpdateNatRule(input *UpdateNatRuleInput) (*UpdateNatRuleOutput, error) DeleteNatRule(input *DeleteNatRuleInput) (*DeleteNatRuleOutput, error) }
type NatsImpl ¶
type NatsImpl struct {
Client *resty.Client
}
func (NatsImpl) CreateNatRule ¶
func (n NatsImpl) CreateNatRule(input *CreateNatRuleInput) (*CreateNatRuleOutput, error)
func (NatsImpl) DeleteNatRule ¶
func (n NatsImpl) DeleteNatRule(input *DeleteNatRuleInput) (*DeleteNatRuleOutput, error)
func (NatsImpl) GetNatRule ¶
func (n NatsImpl) GetNatRule(input *GetNatRuleInput) (*GetNatRuleOutput, error)
func (NatsImpl) ListNatRules ¶
func (n NatsImpl) ListNatRules(input *ListNatRulesInput) (*ListNatRulesOutput, error)
func (NatsImpl) UpdateNatRule ¶
func (n NatsImpl) UpdateNatRule(input *UpdateNatRuleInput) (*UpdateNatRuleOutput, error)
type UpdateAddressListInput ¶
type UpdateAddressListInput struct{}
type UpdateAddressListOutput ¶
type UpdateAddressListOutput struct{}
type UpdateFilterRuleInput ¶
type UpdateFilterRuleInput Filter
type UpdateFilterRuleOutput ¶
type UpdateFilterRuleOutput Filter
type UpdateMangleRuleInput ¶
type UpdateMangleRuleInput struct{}
type UpdateMangleRuleOutput ¶
type UpdateMangleRuleOutput struct{}
type UpdateNatRuleInput ¶
type UpdateNatRuleInput NatRule
type UpdateNatRuleOutput ¶
type UpdateNatRuleOutput NatRule
Click to show internal directories.
Click to hide internal directories.