fskodo

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config *Config) flysystem.IAdapter

Types

type Config

type Config struct {
	CDN        string             `json:"cdn" xml:"CDN" yaml:"CDN"`
	AccessKey  string             `json:"access_key" xml:"AccessKey" yaml:"AccessKey"`
	SecretKey  string             `json:"secret_key" xml:"SecretKey" yaml:"SecretKey"`
	Bucket     string             `json:"bucket" xml:"Bucket" yaml:"Bucket"`
	Policy     *storage.PutPolicy `json:"policy" xml:"Policy" yaml:"Policy"`
	Config     *storage.Config    `json:"config" xml:"Config" yaml:"Config"`
	PathPrefix string             `json:"path_prefix" xml:"PathPrefix" yaml:"PathPrefix"`
}

func (*Config) New added in v0.3.2

func (c *Config) New() flysystem.IAdapter

type FSKodo added in v0.1.1

type FSKodo struct {
	gfs.AbstractAdapter
	Config *Config
	// contains filtered or unexported fields
}

func NewKODO added in v0.3.2

func NewKODO(config *Config) *FSKodo

func (*FSKodo) Copy added in v0.1.1

func (a *FSKodo) Copy(source, destination string) (bool, error)

func (*FSKodo) Delete added in v0.1.1

func (a *FSKodo) Delete(path string) (int64, error)

func (*FSKodo) DiskName added in v0.1.1

func (a *FSKodo) DiskName() string

func (*FSKodo) Exists added in v0.1.1

func (a *FSKodo) Exists(path string) (bool, error)

func (*FSKodo) GFSAdapter added in v0.3.0

func (a *FSKodo) GFSAdapter() gfs.IAdapter

func (*FSKodo) MimeType added in v0.1.1

func (a *FSKodo) MimeType(path string) (string, error)

func (*FSKodo) Move added in v0.1.1

func (a *FSKodo) Move(source, destination string) (bool, error)

func (*FSKodo) Read added in v0.1.1

func (a *FSKodo) Read(path string) ([]byte, error)

func (*FSKodo) Size added in v0.1.1

func (a *FSKodo) Size(path string) (int64, error)

func (*FSKodo) URL added in v0.1.2

func (a *FSKodo) URL(path string) (*url.URL, error)

func (*FSKodo) Update added in v0.1.1

func (a *FSKodo) Update(path string, contents []byte) (string, error)

func (*FSKodo) UpdateStream added in v0.1.1

func (a *FSKodo) UpdateStream(path, resource string) (string, error)

func (*FSKodo) Write added in v0.1.1

func (a *FSKodo) Write(path string, contents []byte) (string, error)

func (*FSKodo) WriteReader added in v0.1.1

func (a *FSKodo) WriteReader(path string, reader io.Reader) (string, error)

func (*FSKodo) WriteStream added in v0.1.1

func (a *FSKodo) WriteStream(path, resource string) (string, error)

Jump to

Keyboard shortcuts

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