mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-11-02 20:04:01 +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
|
||||
}
|
||||
|
||||
func (c *Client) ListFiles(namespace, name, key string) (files []*File, err error) {
|
||||
// @todo the key should be relative to the namespace/name combo
|
||||
// @todo pagination, limit, etc.
|
||||
|
||||
func (c *Client) ListFiles(namespace, key string) (files []*File, err error) {
|
||||
config, err := c.GetNamespaceConfig(namespace)
|
||||
if err != nil {
|
||||
return
|
||||
|
||||
@@ -440,7 +440,7 @@ func (s *WorkflowServer) ListFiles(ctx context.Context, req *api.ListFilesReques
|
||||
return nil, err
|
||||
}
|
||||
|
||||
files, err := client.ListFiles(req.Namespace, req.Name, req.Path)
|
||||
files, err := client.ListFiles(req.Namespace, req.Path)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user