s3fs

package
v3.3.8 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func NewApp

func NewApp(t *gotext.Locale) *App

func (*App) Create

func (s *App) Create(w http.ResponseWriter, r *http.Request)

Create 添加 S3fs 挂载

func (*App) Delete

func (s *App) Delete(w http.ResponseWriter, r *http.Request)

Delete 删除 S3fs 挂载

func (*App) List

func (s *App) List(w http.ResponseWriter, r *http.Request)

List 所有 S3fs 挂载

func (*App) Route

func (s *App) Route(r chi.Router)

func (*App) Status added in v3.2.2

func (s *App) Status(ctx context.Context) string

type Create

type Create struct {
	Ak     string `form:"ak" json:"ak" validate:"required"`
	Sk     string `form:"sk" json:"sk" validate:"required"`
	Bucket string `form:"bucket" json:"bucket" validate:"required"`
	URL    string `form:"url" json:"url" validate:"required && url"`
	Path   string `form:"path" json:"path" validate:"required && unix_path"`
}

type Delete

type Delete struct {
	ID int64 `form:"id" json:"id" validate:"required"`
}

type Mount

type Mount struct {
	ID     int64  `json:"id"`
	Path   string `json:"path"`
	Bucket string `json:"bucket"`
	URL    string `json:"url"`
}

Jump to

Keyboard shortcuts

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