Documentation ¶
Index ¶
- Constants
- Variables
- type Oss
- func (r *Oss) AllDirectories(path string) ([]string, error)
- func (r *Oss) AllFiles(path string) ([]string, error)
- func (r *Oss) Copy(originFile, targetFile string) error
- func (r *Oss) Delete(files ...string) error
- func (r *Oss) DeleteDirectory(directory string) error
- func (r *Oss) Directories(path string) ([]string, error)
- func (r *Oss) Exists(file string) bool
- func (r *Oss) Files(path string) ([]string, error)
- func (r *Oss) Get(file string) (string, error)
- func (r *Oss) GetBytes(file string) ([]byte, error)
- func (r *Oss) LastModified(file string) (time.Time, error)
- func (r *Oss) MakeDirectory(directory string) error
- func (r *Oss) MimeType(file string) (string, error)
- func (r *Oss) Missing(file string) bool
- func (r *Oss) Move(oldFile, newFile string) error
- func (r *Oss) Path(file string) string
- func (r *Oss) Put(file string, content string) error
- func (r *Oss) PutFile(filePath string, source filesystem.File) (string, error)
- func (r *Oss) PutFileAs(filePath string, source filesystem.File, name string) (string, error)
- func (r *Oss) Size(file string) (int64, error)
- func (r *Oss) TemporaryUrl(file string, t time.Time) (string, error)
- func (r *Oss) Url(file string) string
- func (r *Oss) WithContext(ctx context.Context) filesystem.Driver
- type ServiceProvider
Constants ¶
View Source
const Binding = "goravel.oss"
View Source
const MaxFileNum = 1000
Variables ¶
View Source
var App foundation.Application
Functions ¶
This section is empty.
Types ¶
type Oss ¶
type Oss struct {
// contains filtered or unexported fields
}
func (*Oss) DeleteDirectory ¶
func (*Oss) MakeDirectory ¶
func (*Oss) WithContext ¶
func (r *Oss) WithContext(ctx context.Context) filesystem.Driver
type ServiceProvider ¶
type ServiceProvider struct { }
func (*ServiceProvider) Boot ¶
func (receiver *ServiceProvider) Boot(app foundation.Application)
func (*ServiceProvider) Register ¶
func (receiver *ServiceProvider) Register(app foundation.Application)
Click to show internal directories.
Click to hide internal directories.