forked from openshift/origin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildlogs.go
34 lines (28 loc) · 837 Bytes
/
buildlogs.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package client
import (
kclient "github.com/GoogleCloudPlatform/kubernetes/pkg/client"
)
// BuildLogsNamespacer has methods to work with BuildLogs resources in a namespace
type BuildLogsNamespacer interface {
BuildLogs(namespace string) BuildLogsInterface
}
// BuildLogsInterface exposes methods on BuildLogs resources.
type BuildLogsInterface interface {
Get(name string) *kclient.Request
}
// buildLogs implements BuildLogsNamespacer interface
type buildLogs struct {
r *Client
ns string
}
// newBuildLogs returns a buildLogs
func newBuildLogs(c *Client, namespace string) *buildLogs {
return &buildLogs{
r: c,
ns: namespace,
}
}
// Get builds and returns a buildLog request
func (c *buildLogs) Get(name string) *kclient.Request {
return c.r.Get().Namespace(c.ns).Prefix("proxy").Resource("buildLogs").Name(name)
}