Documentation
¶
Index ¶
- func NewS3Backend(params map[string]interface{}, ctx context.Context) (common.Backend, error)
- type S3Backend
- func (s *S3Backend) Delete(flake string, ctx context.Context) error
- func (s *S3Backend) DeleteKey(name string, ctx context.Context) error
- func (s *S3Backend) Exists(flake string, ctx context.Context) error
- func (s *S3Backend) Get(flake string, ctx context.Context) (*common.File, error)
- func (s *S3Backend) GetAllWith(options common.BackendOption) []common.Backend
- func (s *S3Backend) GetFirstWith(options common.BackendOption) common.Backend
- func (s *S3Backend) GetOptions() common.BackendOption
- func (s *S3Backend) ListGlob(ctx context.Context, prefix string) ([]*common.File, error)
- func (s *S3Backend) Name() string
- func (s *S3Backend) PingFile(name string, ctx context.Context) (bool, interface{}, error)
- func (s *S3Backend) ReadBytes(name string, ctx context.Context) ([]byte, error)
- func (s *S3Backend) ReadReader(name string, ctx context.Context) (io.ReadCloser, error)
- func (s *S3Backend) RunGC(ctx context.Context) ([]common.File, error)
- func (s *S3Backend) Upload(flake string, file *common.File, ctx context.Context) error
- func (s *S3Backend) WriteBytes(name string, data []byte, ctx context.Context) error
- func (s *S3Backend) WriteReader(name string, data io.ReadSeeker, ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type S3Backend ¶
type S3Backend struct {
// contains filtered or unexported fields
}
func (*S3Backend) GetAllWith ¶
func (s *S3Backend) GetAllWith(options common.BackendOption) []common.Backend
func (*S3Backend) GetFirstWith ¶
func (s *S3Backend) GetFirstWith(options common.BackendOption) common.Backend
func (*S3Backend) GetOptions ¶
func (s *S3Backend) GetOptions() common.BackendOption
func (*S3Backend) ReadReader ¶
func (*S3Backend) WriteBytes ¶
func (*S3Backend) WriteReader ¶
Click to show internal directories.
Click to hide internal directories.