Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRouterSysctl ¶
RegisterRouterSysctl register with mux
Types ¶
type Sysctl ¶
type Sysctl struct { Key string `json:"Key"` Value string `json:"Value"` Apply bool `json:"Apply"` Pattern string `json:"Pattern"` FileName string `json:"FileName"` Files []string `json:"Files"` }
Sysctl json request
func (*Sysctl) Acquire ¶
func (s *Sysctl) Acquire(w http.ResponseWriter) error
Get sysctl key value from any of the following sysctl.conf, sysctl.d or /proc/sys
func (*Sysctl) GetPattern ¶
func (s *Sysctl) GetPattern(w http.ResponseWriter) error
GetPatern will return all the entry with matching pattern If pattern is empty it should return all values
Click to show internal directories.
Click to hide internal directories.