Documentation
¶
Index ¶
- func RegisterRouterNft(router *mux.Router)
- type Chain
- type Nft
- func (n *Nft) AddChain(w http.ResponseWriter) error
- func (n *Nft) AddTable(w http.ResponseWriter) error
- func (n *Nft) ParseChain(ch *nftables.Chain) error
- func (n *Nft) ParseTable(tbl *nftables.Table) error
- func (n *Nft) RemoveChain(w http.ResponseWriter) error
- func (n *Nft) RemoveTable(w http.ResponseWriter) error
- func (n *Nft) RunNFT(w http.ResponseWriter) error
- func (n *Nft) SaveNFT(w http.ResponseWriter) error
- func (n *Nft) ShowChain(w http.ResponseWriter) error
- func (n *Nft) ShowTable(w http.ResponseWriter) error
- type Table
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRouterNft ¶
Types ¶
type Nft ¶
type Nft struct { Table Table `json:"Table"` Chain Chain `json:"Chain"` Command []string `json:"Command"` }
func (*Nft) RemoveChain ¶
func (n *Nft) RemoveChain(w http.ResponseWriter) error
func (*Nft) RemoveTable ¶
func (n *Nft) RemoveTable(w http.ResponseWriter) error
Click to show internal directories.
Click to hide internal directories.