s3fs

package
v0.0.0-...-d8a4e70 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: AGPL-3.0 Imports: 11 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(setting biz.SettingRepo) *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)

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"`
	Path   string `form:"path" json:"path" validate:"required"`
}

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