app

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package app is the main package for the application.

Index

Constants

View Source
const (
	// ErrFileExists is the error returned when the file already exists.
	ErrFileExists xerrors.Error = "file already exists"

	// ErrUnexpectedStatusCode is the error returned when the status code is not 200.
	ErrUnexpectedStatusCode xerrors.Error = "unexpected status code"
)
View Source
const ErrFileNotFound xerrors.Error = "failed to delete file"

ErrFileNotFound is returned when the file is not found.

Variables

This section is empty.

Functions

func DeleteAction

func DeleteAction(c *cli.Context) error

DeleteAction is the action for the delete command.

func DownloadAction

func DownloadAction(c *cli.Context) error

DownloadAction is the action for the download command.

func ListAction

func ListAction(c *cli.Context) error

ListAction is the action for the list command.

func Run

func Run() int

Run is the entry point for the application.

func UploadAction

func UploadAction(c *cli.Context) error

UploadAction is the action for the upload command.

Types

This section is empty.

Jump to

Keyboard shortcuts

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