Documentation
¶
Index ¶
- Variables
- type Client
- func (cli Client) Delete(path string) error
- func (cli Client) Get(path string) ([]byte, error)
- func (cli Client) IsValid(response *http.Response) error
- func (cli Client) Post(path string, jsonBytes []byte) error
- func (cli Client) PostRaw(path string, dataBytes []byte, contentType string) (*http.Response, error)
- func (cli Client) Put(path string, dataBytes []byte, contentType string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Instance = Client{
URL: "http://localhost:8980/opennms",
Username: "admin",
Password: "admin",
Timeout: 5,
}
Instance a global reference to the ReST Client instance
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { URL string `yaml:"url"` Username string `yaml:"username"` Password string `yaml:"password"` Insecure bool `yaml:"insecure"` Timeout int `yaml:"timeout"` Debug bool `yaml:"debug"` }
Client OpenNMS ReST API configuration
Click to show internal directories.
Click to hide internal directories.