Documentation ¶
Index ¶
- type Storage
- func (g *Storage) Check(ctx context.Context, name string) (bool, error)
- func (g *Storage) Copy(ctx context.Context, source string, destination string) error
- func (g *Storage) CopyWithRetries(ctx context.Context, source string, destination string, retryCount int, ...) error
- func (g *Storage) Delete(ctx context.Context, bucket string, name string) error
- func (g *Storage) Download(ctx context.Context, name string) (data []byte, err error)
- func (g *Storage) GetWriter(ctx context.Context, name, contentType string) io.WriteCloser
- func (g *Storage) Upload(ctx context.Context, name string, data []byte) (err error)
- func (g *Storage) UploadWithRetries(ctx context.Context, name string, data []byte, retryCount int, ...) 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
}
func NewStorage ¶
func NewStorage(ctx context.Context, credentialsOption option.ClientOption, bucket string, predefinedAcl string, opts ...option.ClientOption) (*Storage, error)
func (*Storage) CopyWithRetries ¶
Click to show internal directories.
Click to hide internal directories.