kibana

package
v0.0.0-...-f067986 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIClient

type APIClient struct {
	BaseURL    *url.URL
	HTTPClient *http.Client
	ID         int
	// contains filtered or unexported fields
}

APIClient wrapper for the api client to kibana

func New

func New(baseURL *url.URL, id int, logger log.Logger) *APIClient

New creates a kibana api client

func (*APIClient) CreateObject

func (c *APIClient) CreateObject(objType, objID string, dataJSON io.Reader) error

CreateObject creates the given object

func (*APIClient) DeleteObject

func (c *APIClient) DeleteObject(objType, objID string) error

DeleteObject deletes the object with the given ID

func (*APIClient) UpdateObject

func (c *APIClient) UpdateObject(objType, objID string, dataJSON io.Reader) error

UpdateObject updates the given object

type Clientset

type Clientset struct {
	BaseURL    *url.URL
	HTTPClient *http.Client
}

Clientset TODO: needed?

type FindResp

type FindResp struct {
	Total int `json:"total"`
	Data  []struct {
		ID string `json:"id"`
	} `json:"data"`
}

FindResp the kibana API response

Jump to

Keyboard shortcuts

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