api

package
v0.0.0-...-41dce0b Latest Latest
Warning

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

Go to latest
Published: May 1, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Extract

func Extract(res []event.Event) (retRes []map[string]interface{})

func FmtRes

func FmtRes(res []event.Event) (retRes []map[string]interface{})

func Healthz

func Healthz(w http.ResponseWriter, r *http.Request)

Types

type ElasticSearchApi

type ElasticSearchApi struct {
	*elasticsearch.ElasticClt
}

func NewQueryApi

func NewQueryApi(config config.Config) ElasticSearchApi

func (*ElasticSearchApi) GetPodEvt

func (ea *ElasticSearchApi) GetPodEvt(w http.ResponseWriter, r *http.Request)

GetPodEvt 类似kubectl get event

type EventApi

type EventApi struct {
	// contains filtered or unexported fields
}

func NewEventApi

func NewEventApi(config config.Config) EventApi

func (*EventApi) Close

func (ea *EventApi) Close()

func (*EventApi) GetAllEvent

func (ea *EventApi) GetAllEvent(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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