files

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package files contains structures and methods for listing or deleting uploaded files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	FileName     string
	Size         int64
	ModifiedDate string
}

File structure represents uploaded File.

type FileManager

type FileManager interface {
	ListFiles(inbox bool) (*[]File, error)
	DeleteFile(fileName string) error
}

FileManager interface provides method for managing uploaded files.

func NewFileManager

func NewFileManager(client *requests.Client) (FileManager, error)

NewFileManager constructs FileManager using requests.Client.

type FolderNotFoundError added in v1.1.3

type FolderNotFoundError struct {
	Msg string
}

Represents an error message to handle a missing or empty folder

func (*FolderNotFoundError) Error added in v1.1.3

func (e *FolderNotFoundError) Error() string

Returns the error message in FolderNotFoundError.

Jump to

Keyboard shortcuts

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