prow/kube/client.go
func (c *Client) GetLogTail(pod, container string, n int64) ([]byte, error) {
	c.log("GetLogTail", pod, n)
	return c.requestRetry(&request{
		path: fmt.Sprintf("/api/v1/namespaces/%s/pods/%s/log", c.namespace, pod),
		query: map[string]string{ // Because we want last n bytes, we fetch all lines and then limit to n bytes
			"tailLines":  "-1",
			"container":  container,
			"limitBytes": strconv.FormatInt(n, 10),
		},
	})
}
func (c *Client) GetLogTail(pod, container string, n int64) ([]byte, error) {
	c.log("GetLogTail", pod, n)
	return c.requestRetry(&request{
		path: fmt.Sprintf("/api/v1/namespaces/%s/pods/%s/log", c.namespace, pod),
		query: map[string]string{ // Because we want last n bytes, we fetch all lines and then limit to n bytes
			"tailLines":  "-1",
			"container":  container,
			"limitBytes": strconv.FormatInt(n, 10),
		},
	})
}
func ( c * Client ) GetLogTail ( pod , container string , n int64 ) ( [ ] byte , error ) { c . log ( " " , pod , n ) return c . requestRetry ( & request { path : fmt . Sprintf ( " " , c . namespace , pod ) , query : map [ string ] string { // Because we want last n bytes, we fetch all lines and then limit to n bytes " " : " " , " " : container , " " : strconv . FormatInt ( n , 10 ) , } , } ) }
// GetLogTail returns the last n bytes of the log of the specified container in the specified pod,
// in the client's specified namespace.
//
// Analogous to kubectl logs pod --tail -1 --limit-bytes n -c container --namespace=client.namespace
GetLogTail returns the last n bytes of the log of the specified container in the specified pod in the client s specified namespace . Analogous to kubectl logs pod -- tail - 1 -- limit - bytes n - c container -- namespace = client . namespace