kibana_oapi

package
v0.11.16 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDataView

CreateDataView creates a new data view.

func DeleteDataView

func DeleteDataView(ctx context.Context, client *Client, spaceID string, viewID string) diag.Diagnostics

DeleteDataView deletes an existing data view.

func GetDataView

func GetDataView(ctx context.Context, client *Client, spaceID string, viewID string) (*kbapi.DataViewsDataViewResponseObject, diag.Diagnostics)

GetDataView reads a specific data view from the API.

func GetDataViews

func GetDataViews(ctx context.Context, client *Client, spaceID string) ([]kbapi.GetDataViewsResponseItem, diag.Diagnostics)

GetDataViews reads all data views from the API.

func UpdateDataView

UpdateDataView updates an existing data view.

Types

type Client

type Client struct {
	URL  string
	HTTP *http.Client
	API  *kbapi.ClientWithResponses
}

Client provides an API client for Elastic Kibana.

func NewClient

func NewClient(cfg Config) (*Client, error)

NewClient creates a new Elastic Kibana API client.

type Config

type Config struct {
	URL      string
	Username string
	Password string
	APIKey   string
	Insecure bool
	CACerts  []string
}

Config is the configuration for the Kibana client.

Jump to

Keyboard shortcuts

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