mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-31 00:36:18 +08:00
Removed name requirements for listing files
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user