Documentation ¶
Index ¶
- Constants
- Variables
- type Cos
- func (r *Cos) AllDirectories(path string) ([]string, error)
- func (r *Cos) AllFiles(path string) ([]string, error)
- func (r *Cos) Copy(originFile, targetFile string) error
- func (r *Cos) Delete(files ...string) error
- func (r *Cos) DeleteDirectory(directory string) error
- func (r *Cos) Directories(path string) ([]string, error)
- func (r *Cos) Exists(file string) bool
- func (r *Cos) Files(path string) ([]string, error)
- func (r *Cos) Get(file string) (string, error)
- func (r *Cos) GetBytes(file string) ([]byte, error)
- func (r *Cos) LastModified(file string) (time.Time, error)
- func (r *Cos) MakeDirectory(directory string) error
- func (r *Cos) MimeType(file string) (string, error)
- func (r *Cos) Missing(file string) bool
- func (r *Cos) Move(oldFile, newFile string) error
- func (r *Cos) Path(file string) string
- func (r *Cos) Put(file string, content string) error
- func (r *Cos) PutFile(filePath string, source filesystem.File) (string, error)
- func (r *Cos) PutFileAs(filePath string, source filesystem.File, name string) (string, error)
- func (r *Cos) Size(file string) (int64, error)
- func (r *Cos) TemporaryUrl(file string, time time.Time) (string, error)
- func (r *Cos) Url(file string) string
- func (r *Cos) WithContext(ctx context.Context) filesystem.Driver
- type ServiceProvider
Constants ¶
View Source
const Binding = "goravel.cos"
Variables ¶
View Source
var App foundation.Application
Functions ¶
This section is empty.
Types ¶
type Cos ¶
type Cos struct {
// contains filtered or unexported fields
}
func (*Cos) DeleteDirectory ¶
func (*Cos) MakeDirectory ¶
func (*Cos) WithContext ¶
func (r *Cos) 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.