Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client ...
func (*Client) FetchPodLogs ¶
func (c *Client) FetchPodLogs(ns, podName, containerName, match string, nonMatch []string, queryFrom, queryTo time.Time, limit int, isRegex bool) ([]string, error)
FetchPodLogs gets pod logs from loki API. ns and podName are used to match the specific logs in loki. match is a string which you want to query from loki, you can set isRegex to true to make it to be a regex match. nonMatch
is a set of strings you don't want to match.
Click to show internal directories.
Click to hide internal directories.