mirror of
https://github.com/passbolt/go-passbolt.git
synced 2025-09-13 14:29:09 +00:00
add missing Comments to Public Functions
This commit is contained in:
parent
b047c9c647
commit
982af2dae4
8 changed files with 16 additions and 1 deletions
|
@ -6,6 +6,7 @@ import (
|
|||
"github.com/speatzle/go-passbolt/api"
|
||||
)
|
||||
|
||||
// CreateFolder Creates a new Folder
|
||||
func CreateFolder(ctx context.Context, c *api.Client, folderParentID, name string) (string, error) {
|
||||
f, err := c.CreateFolder(ctx, api.Folder{
|
||||
Name: name,
|
||||
|
@ -14,20 +15,24 @@ func CreateFolder(ctx context.Context, c *api.Client, folderParentID, name strin
|
|||
return f.ID, err
|
||||
}
|
||||
|
||||
// GetFolder Gets a Folder
|
||||
func GetFolder(ctx context.Context, c *api.Client, folderID string) (string, string, error) {
|
||||
f, err := c.GetFolder(ctx, folderID)
|
||||
return f.FolderParentID, f.Name, err
|
||||
}
|
||||
|
||||
// UpdateFolder Updates a Folder
|
||||
func UpdateFolder(ctx context.Context, c *api.Client, folderID, name string) error {
|
||||
_, err := c.UpdateFolder(ctx, folderID, api.Folder{Name: name})
|
||||
return err
|
||||
}
|
||||
|
||||
// DeleteFolder Deletes a Folder
|
||||
func DeleteFolder(ctx context.Context, c *api.Client, folderID string) error {
|
||||
return c.DeleteFolder(ctx, folderID)
|
||||
}
|
||||
|
||||
// MoveFolder Moves a Folder into a Folder
|
||||
func MoveFolder(ctx context.Context, c *api.Client, folderID, folderParentID string) error {
|
||||
return c.MoveFolder(ctx, folderID, folderParentID)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue