feature: use client default namespace

Signed-off-by: rongfu.leng <1275177125@qq.com>
This commit is contained in:
lengrongfu
2022-08-15 22:40:47 +08:00
committed by rongfu.leng
parent 6699403403
commit 5e57d463df
2 changed files with 9 additions and 0 deletions

View File

@@ -625,6 +625,11 @@ func (c *Client) SnapshotService(snapshotterName string) snapshots.Snapshotter {
return snproxy.NewSnapshotter(snapshotsapi.NewSnapshotsClient(c.conn), snapshotterName)
}
// DefaultNamespace return the default namespace
func (c *Client) DefaultNamespace() string {
return c.defaultns
}
// TaskService returns the underlying TasksClient
func (c *Client) TaskService() tasks.TasksClient {
if c.taskService != nil {