folder

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package folder implements folder-related CLI subcommands.

Index

Constants

This section is empty.

Variables

View Source
var FolderCreateCmd = &cobra.Command{
	Use:   "folder",
	Short: "Creates a Passbolt Folder",
	Long:  `Creates a Passbolt Folder and Returns the Folders ID`,
	RunE:  FolderCreate,
}

FolderCreateCmd Creates a Passbolt Folder

View Source
var FolderDeleteCmd = &cobra.Command{
	Use:   "folder",
	Short: "Deletes a Passbolt Folder",
	Long:  `Deletes a Passbolt Folder`,
	RunE:  FolderDelete,
}

FolderDeleteCmd Deletes a Folder

View Source
var FolderGetCmd = &cobra.Command{
	Use:   "folder",
	Short: "Gets a Passbolt Folder",
	Long:  `Gets a Passbolt Folder`,
	RunE:  FolderGet,
}

FolderGetCmd Gets a Passbolt Folder

View Source
var FolderListCmd = &cobra.Command{
	Use:     "folder",
	Short:   "Lists Passbolt Folders",
	Long:    `Lists Passbolt Folders`,
	Aliases: []string{"folders"},
	RunE:    FolderList,
}

FolderListCmd Lists a Passbolt Folder

View Source
var FolderMoveCmd = &cobra.Command{
	Use:   "folder",
	Short: "Moves a Passbolt Folder into a Folder",
	Long:  `Moves a Passbolt Folder into a Folder`,
	RunE:  FolderMove,
}

FolderMoveCmd Moves a Passbolt Folder

View Source
var FolderPermissionCmd = &cobra.Command{
	Use:     "permission",
	Short:   "Gets Permissions for a Passbolt Folder",
	Long:    `Gets Permissions for a Passbolt Folder`,
	Aliases: []string{"permissions"},
	RunE:    FolderPermission,
}

FolderPermissionCmd Gets Permissions for Passbolt Folder

View Source
var FolderShareCmd = &cobra.Command{
	Use:   "folder",
	Short: "Shares a Passbolt Folder",
	Long:  `Shares a Passbolt Folder`,
	RunE:  FolderShare,
}

FolderShareCmd Shares a Passbolt Folder

View Source
var FolderUpdateCmd = &cobra.Command{
	Use:   "folder",
	Short: "Updates a Passbolt Folder",
	Long:  `Updates a Passbolt Folder`,
	RunE:  FolderUpdate,
}

FolderUpdateCmd Updates a Passbolt Folder

Functions

func FolderCreate

func FolderCreate(cmd *cobra.Command, args []string) error

func FolderDelete

func FolderDelete(cmd *cobra.Command, args []string) error

func FolderGet

func FolderGet(cmd *cobra.Command, args []string) error

func FolderList

func FolderList(cmd *cobra.Command, args []string) error

func FolderMove

func FolderMove(cmd *cobra.Command, args []string) error

func FolderPermission

func FolderPermission(cmd *cobra.Command, args []string) error

func FolderShare

func FolderShare(cmd *cobra.Command, args []string) error

func FolderUpdate

func FolderUpdate(cmd *cobra.Command, args []string) error

Types

type FolderJSONOutput

type FolderJSONOutput struct {
	ID                *string    `json:"id,omitempty"`
	FolderParentID    *string    `json:"folder_parent_id,omitempty"`
	Name              *string    `json:"name,omitempty"`
	CreatedTimestamp  *time.Time `json:"created_timestamp,omitempty"`
	ModifiedTimestamp *time.Time `json:"modified_timestamp,omitempty"`
	// Non-pointer bool without omitempty so `false` reaches output and is
	// filterable via `--filter 'personal == false'`.
	Personal bool `json:"personal"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL