Documentation ¶
Index ¶
- func GetLogs(namespace, containerName, limit string, url string) ([]*pb.LogEntry, error)
- func GetStreamedEntries(namespace, containerName string, srv *connect.ServerStream[pb.PodLogResponse], ...) error
- type LokiConfig
- type QueryData
- type QueryResponse
- type QueryResult
- type QueryStatus
- type TailData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetStreamedEntries ¶
func GetStreamedEntries(namespace, containerName string, srv *connect.ServerStream[pb.PodLogResponse], lokiHost string) error
Types ¶
type LokiConfig ¶
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 TailData ¶
type TailData struct {
Streams []QueryResult `json:"streams"`
}
Click to show internal directories.
Click to hide internal directories.