folder

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateParams

type CreateParams struct {
	Name        string
	Description *string
	ParentID    *int
}

type FolderAPI

type FolderAPI interface {
	List(ctx context.Context, params ListParams) (*v1.FoldersGetOK, error)

	Create(ctx context.Context, params CreateParams) (*v1.Folder, error)
	Read(ctx context.Context, id int) (*v1.Folder, error)
	Update(ctx context.Context, id int, name string, description *string) (*v1.Folder, error)
	Delete(ctx context.Context, id int) error

	Move(ctx context.Context, ids []int, parent *int) error
}

func NewFolderOp

func NewFolderOp(client *v1.Client) FolderAPI

type ListParams

type ListParams struct {
	Page     *int
	PerPage  *int
	Name     *string
	ParentID *int
}

Jump to

Keyboard shortcuts

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