Documentation
¶
Index ¶
- Variables
- type FileHeader
- type FilePointer
- type Metadata
- type Params
- type Result
- type Storage
- func (o *Storage) DeleteFile(ctx context.Context, path string) error
- func (o *Storage) FileExists(ctx context.Context, path string) (ok bool, err error)
- func (o *Storage) ListFiles(ctx context.Context) ([]*FileHeader, error)
- func (o *Storage) Migrate() error
- func (o *Storage) ReadFile(ctx context.Context, path string) (*FilePointer, error)
- func (o *Storage) WriteFile(ctx context.Context, opts *WriteFileOptions) error
- type WriteFileOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAlreadyExists = errors.New("file already exists")
Functions ¶
This section is empty.
Types ¶
type FileHeader ¶ added in v0.0.24
type FilePointer ¶
func (*FilePointer) Close ¶
func (f *FilePointer) Close() error
type Metadata ¶
type Metadata struct { Class string `cbor:"c,omitempty" json:"class,omitempty"` MimeType string `cbor:"m,omitempty" json:"mime_type,omitempty"` Expiry *time.Time `cbor:"e,omitempty" json:"expiry,omitempty"` Oneshot bool `cbor:"o,omitempty" json:"oneshot,omitempty"` Stream bool `cbor:"s,omitempty" json:"stream,omitempty"` }
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) FileExists ¶
func (*Storage) ListFiles ¶ added in v0.0.24
func (o *Storage) ListFiles(ctx context.Context) ([]*FileHeader, error)
Click to show internal directories.
Click to hide internal directories.