Documentation ¶
Index ¶
- Constants
- type IcingaApiRequest
- func (r *IcingaApiRequest) Create(name []string, jsonBody string) *IcingaApiRequest
- func (r *IcingaApiRequest) Delete(name []string, jsonBody string) *IcingaApiRequest
- func (r *IcingaApiRequest) Do() *IcingaApiResponse
- func (r *IcingaApiRequest) Get(name []string, jsonBody ...string) *IcingaApiRequest
- func (r *IcingaApiRequest) Params(param map[string]string) *IcingaApiRequest
- func (r *IcingaApiRequest) Update(name []string, jsonBody string) *IcingaApiRequest
- type IcingaApiResponse
- type IcingaClient
- func (c *IcingaClient) Actions(action string) *IcingaApiRequest
- func (c *IcingaClient) Check() *IcingaApiRequest
- func (c *IcingaClient) HostGroups(hostName string) *IcingaApiRequest
- func (c *IcingaClient) Hosts(hostName string) *IcingaApiRequest
- func (c *IcingaClient) Notifications(hostName string) *IcingaApiRequest
- func (c *IcingaClient) Objects() *IcingaClient
- func (c *IcingaClient) Service(hostName string) *IcingaApiRequest
- func (c *IcingaClient) SetEndpoint(endpoint string) *IcingaClient
- type IcingaConfig
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IcingaApiRequest ¶
type IcingaApiRequest struct { Err error Status int ResponseBody []byte // contains filtered or unexported fields }
func (*IcingaApiRequest) Create ¶
func (r *IcingaApiRequest) Create(name []string, jsonBody string) *IcingaApiRequest
func (*IcingaApiRequest) Delete ¶
func (r *IcingaApiRequest) Delete(name []string, jsonBody string) *IcingaApiRequest
func (*IcingaApiRequest) Do ¶
func (r *IcingaApiRequest) Do() *IcingaApiResponse
func (*IcingaApiRequest) Get ¶
func (r *IcingaApiRequest) Get(name []string, jsonBody ...string) *IcingaApiRequest
func (*IcingaApiRequest) Params ¶
func (r *IcingaApiRequest) Params(param map[string]string) *IcingaApiRequest
func (*IcingaApiRequest) Update ¶
func (r *IcingaApiRequest) Update(name []string, jsonBody string) *IcingaApiRequest
type IcingaApiResponse ¶
func (*IcingaApiResponse) Into ¶
func (r *IcingaApiResponse) Into(to interface{}) (int, error)
type IcingaClient ¶
type IcingaClient struct {
// contains filtered or unexported fields
}
func NewIcingaClient ¶
func NewIcingaClient(kubeClient clientset.Interface, secretName, secretNamespace string) (*IcingaClient, error)
func (*IcingaClient) Actions ¶
func (c *IcingaClient) Actions(action string) *IcingaApiRequest
func (*IcingaClient) Check ¶
func (c *IcingaClient) Check() *IcingaApiRequest
func (*IcingaClient) HostGroups ¶
func (c *IcingaClient) HostGroups(hostName string) *IcingaApiRequest
func (*IcingaClient) Hosts ¶
func (c *IcingaClient) Hosts(hostName string) *IcingaApiRequest
func (*IcingaClient) Notifications ¶
func (c *IcingaClient) Notifications(hostName string) *IcingaApiRequest
func (*IcingaClient) Objects ¶
func (c *IcingaClient) Objects() *IcingaClient
func (*IcingaClient) Service ¶
func (c *IcingaClient) Service(hostName string) *IcingaApiRequest
func (*IcingaClient) SetEndpoint ¶
func (c *IcingaClient) SetEndpoint(endpoint string) *IcingaClient
Click to show internal directories.
Click to hide internal directories.