loki

package
v0.0.0-...-787377c Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogs

func GetLogs(namespace, containerName, limit string, url string) ([]*pb.LogEntry, error)

func GetStreamedEntries

func GetStreamedEntries(namespace, containerName string, srv *connect.ServerStream[pb.PodLogResponse], lokiHost string) error

Types

type LokiConfig

type LokiConfig struct {
	Host  string
	Limit string
}

type QueryData

type QueryData struct {
	ResultType string        `json:"resultType"`
	Result     []QueryResult `json:"result"`
}

type QueryResponse

type QueryResponse struct {
	Status QueryStatus `json:"status"`
	Data   QueryData   `json:"data"`
}

type QueryResult

type QueryResult struct {
	Stream map[string]string `json:"stream"`
	Values [][]string        `json:"values"`
}

type QueryStatus

type QueryStatus string
const (
	QueryStatusSuccess QueryStatus = "success"
)

type TailData

type TailData struct {
	Streams []QueryResult `json:"streams"`
}

Jump to

Keyboard shortcuts

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