SYMBOL INDEX (82 symbols across 13 files) FILE: cmd/main.go function main (line 11) | func main() { FILE: db/db.go type Instance (line 4) | type Instance interface FILE: db/fileType.go constant fileName (line 19) | fileName = "firewalld-rest.db" constant defaultPath (line 20) | defaultPath = "./" type fileType (line 27) | type fileType struct method Type (line 46) | func (fileType *fileType) Type() string { method Register (line 51) | func (fileType *fileType) Register(v interface{}) { method Save (line 56) | func (fileType *fileType) Save(v interface{}) error { method Load (line 73) | func (fileType *fileType) Load(v interface{}) error { function GetFileTypeInstance (line 32) | func GetFileTypeInstance() Instance { function fileExists (line 117) | func fileExists(filename string) bool { function parsePath (line 125) | func parsePath(path string) string { FILE: firewallcmd/util.go function EnableRichRuleForIP (line 11) | func EnableRichRuleForIP(ipAddr string) (string, error) { function DisableRichRuleForIP (line 32) | func DisableRichRuleForIP(ipAddr string) (string, error) { function reload (line 49) | func reload() (*exec.Cmd, []byte, error) { FILE: ip/handler.go type handlerStruct (line 17) | type handlerStruct struct method GetIP (line 52) | func (handler *handlerStruct) GetIP(ipAddr string) (*Instance, error) { method GetAllIPs (line 65) | func (handler *handlerStruct) GetAllIPs() ([]*Instance, error) { method CheckIPExists (line 78) | func (handler *handlerStruct) CheckIPExists(ipAddr string) (bool, erro... method AddIP (line 91) | func (handler *handlerStruct) AddIP(ip *Instance) error { method DeleteIP (line 108) | func (handler *handlerStruct) DeleteIP(ipAddr string) (*Instance, erro... method loadIPStore (line 124) | func (handler *handlerStruct) loadIPStore() (map[string]*Instance, err... method saveIPStore (line 132) | func (handler *handlerStruct) saveIPStore(ipStore map[string]*Instance... function GetHandler (line 22) | func GetHandler() Handler { FILE: ip/handler_test.go function setup (line 15) | func setup() { function shutdown (line 24) | func shutdown() { function TestMain (line 28) | func TestMain(m *testing.M) { function TestGetHandler (line 35) | func TestGetHandler(t *testing.T) { function TestGetAllIPsFileError (line 41) | func TestGetAllIPsFileError(t *testing.T) { function TestGetAllIPs (line 53) | func TestGetAllIPs(t *testing.T) { function TestAddIPFileError (line 63) | func TestAddIPFileError(t *testing.T) { function TestAddIP (line 83) | func TestAddIP(t *testing.T) { function TestAddIPDup (line 90) | func TestAddIPDup(t *testing.T) { function TestGetAllIPsAfterAdd (line 97) | func TestGetAllIPsAfterAdd(t *testing.T) { function TestCheckIPExistsFileError (line 107) | func TestCheckIPExistsFileError(t *testing.T) { function TestCheckIPExists (line 119) | func TestCheckIPExists(t *testing.T) { function TestGetIPFileError (line 129) | func TestGetIPFileError(t *testing.T) { function TestGetInvalidIP (line 141) | func TestGetInvalidIP(t *testing.T) { function TestGetIP (line 151) | func TestGetIP(t *testing.T) { function TestDeleteIPFileError (line 161) | func TestDeleteIPFileError(t *testing.T) { function TestDeleteInvalidIP (line 182) | func TestDeleteInvalidIP(t *testing.T) { function TestDeleteIP (line 192) | func TestDeleteIP(t *testing.T) { function changeFilePermission (line 209) | func changeFilePermission(permission string) { FILE: ip/ip.go type Instance (line 4) | type Instance struct type Handler (line 10) | type Handler interface FILE: route/handler.go function Index (line 19) | func Index(w http.ResponseWriter, r *http.Request) { function IPAdd (line 25) | func IPAdd(w http.ResponseWriter, r *http.Request) { function IPShow (line 61) | func IPShow(w http.ResponseWriter, r *http.Request) { function ShowAllIPs (line 75) | func ShowAllIPs(w http.ResponseWriter, r *http.Request) { function IPDelete (line 86) | func IPDelete(w http.ResponseWriter, r *http.Request) { function writeOKResponse (line 120) | func writeOKResponse(w http.ResponseWriter, m interface{}) { function writeErrorResponse (line 129) | func writeErrorResponse(w http.ResponseWriter, errorCode int, errorMsg s... function populateModelFromHandler (line 138) | func populateModelFromHandler(w http.ResponseWriter, r *http.Request, ip... FILE: route/handler_test.go function setup (line 21) | func setup() { function shutdown (line 30) | func shutdown() { function TestMain (line 34) | func TestMain(m *testing.M) { function TestIndex (line 41) | func TestIndex(t *testing.T) { function TestShowAllIPs (line 61) | func TestShowAllIPs(t *testing.T) { function TestAddBadIP (line 81) | func TestAddBadIP(t *testing.T) { function TestAddIPNonLocal (line 101) | func TestAddIPNonLocal(t *testing.T) { function TestAddIP (line 124) | func TestAddIP(t *testing.T) { function TestAddIPDup (line 144) | func TestAddIPDup(t *testing.T) { function TestShowIP (line 164) | func TestShowIP(t *testing.T) { function TestShowIPNotFound (line 187) | func TestShowIPNotFound(t *testing.T) { function TestAddIP2 (line 210) | func TestAddIP2(t *testing.T) { function TestShowAllIPsAfterAdding (line 230) | func TestShowAllIPsAfterAdding(t *testing.T) { function TestDeleteIPNonLocal (line 248) | func TestDeleteIPNonLocal(t *testing.T) { function TestDeleteIP (line 274) | func TestDeleteIP(t *testing.T) { function TestDeleteIPNotFound (line 297) | func TestDeleteIPNotFound(t *testing.T) { function TestShowAllIPsAfter (line 320) | func TestShowAllIPsAfter(t *testing.T) { function TestPopulateModelFromHandler (line 338) | func TestPopulateModelFromHandler(t *testing.T) { function newRequestRecorder (line 369) | func newRequestRecorder(req *http.Request, fnHandler func(w http.Respons... FILE: route/middleware.go type exception (line 13) | type exception struct function validateMiddleware (line 18) | func validateMiddleware(next http.Handler) http.Handler { function loggingMiddleware (line 52) | func loggingMiddleware(next http.Handler) http.Handler { FILE: route/publicCert.go constant publicCertContent (line 4) | publicCertContent = ` FILE: route/response.go type JSONResponse (line 4) | type JSONResponse struct type JSONErrorResponse (line 11) | type JSONErrorResponse struct type APIError (line 16) | type APIError struct FILE: route/route.go type route (line 9) | type route struct type routes (line 16) | type routes function NewRouter (line 19) | func NewRouter() *mux.Router {