Removed name requirements for listing files

This commit is contained in:
Andrey Melnikov
2020-03-02 11:41:27 -08:00
parent c36e383a16
commit 262b32895c
2 changed files with 2 additions and 5 deletions

View File

@@ -723,10 +723,7 @@ func (c *Client) GetArtifact(namespace, name, key string) (data []byte, err erro
return return
} }
func (c *Client) ListFiles(namespace, name, key string) (files []*File, err error) { func (c *Client) ListFiles(namespace, key string) (files []*File, err error) {
// @todo the key should be relative to the namespace/name combo
// @todo pagination, limit, etc.
config, err := c.GetNamespaceConfig(namespace) config, err := c.GetNamespaceConfig(namespace)
if err != nil { if err != nil {
return return

View File

@@ -440,7 +440,7 @@ func (s *WorkflowServer) ListFiles(ctx context.Context, req *api.ListFilesReques
return nil, err return nil, err
} }
files, err := client.ListFiles(req.Namespace, req.Name, req.Path) files, err := client.ListFiles(req.Namespace, req.Path)
if err != nil { if err != nil {
return nil, err return nil, err
} }