Documentation ¶
Index ¶
- type Storage
- func (g *Storage) Delete(ctx context.Context, path string) error
- func (g *Storage) Open(ctx context.Context, path string) (io.ReadCloser, error)
- func (g *Storage) OpenWithStat(ctx context.Context, path string) (io.ReadCloser, *gostorages.Stat, error)
- func (g *Storage) Save(ctx context.Context, content io.Reader, path string) (rerr error)
- func (g *Storage) Stat(ctx context.Context, path string) (*gostorages.Stat, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage is a gcs storage.
func NewStorage ¶
NewStorage returns a new Storage.
func (*Storage) OpenWithStat ¶
func (g *Storage) OpenWithStat(ctx context.Context, path string) (io.ReadCloser, *gostorages.Stat, error)
OpenWithStat opens path for reading with file stats.
Click to show internal directories.
Click to hide internal directories.