mirror

package
v0.0.0-...-f856fe1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2025 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opt *Option) (driver.FS, error)

Types

type Mirror

type Mirror struct {
	driver.Base
	// contains filtered or unexported fields
}

func (*Mirror) Get

func (d *Mirror) Get(ctx context.Context, path string) (driver.File, error)

func (*Mirror) List

func (d *Mirror) List(ctx context.Context, path string, metas ...driver.Meta) ([]driver.File, error)

func (*Mirror) Open

func (d *Mirror) Open(path string) (driver.FileReader, error)

type Option

type Option struct {
	base.Option
	Endpoint string `json:"endpoint"  validate:"required"`
	Format   string `json:"format"`
}

func (*Option) NewFS

func (opt *Option) NewFS() (driver.FS, error)

Jump to

Keyboard shortcuts

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