icinga

package
v0.0.0-...-536d3ef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2017 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ENV string = ".env"

	IcingaAddress string = "ICINGA_ADDRESS"
	IcingaAPIUser string = "ICINGA_API_USER"
	IcingaAPIPass string = "ICINGA_API_PASSWORD"

	ConfigKeyPrefix = "ICINGA"

	IcingaDefaultPort string = "5665"
)

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 (*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

type IcingaApiResponse struct {
	Err          error
	Status       int
	ResponseBody []byte
}

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

type IcingaConfig

type IcingaConfig struct {
	Endpoint  string
	BasicAuth struct {
		Username string
		Password string
	}
	CaCert []byte
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL