Documentation ¶
Index ¶
- type Option
- type Store
- func (s *Store) Close() error
- func (s *Store) Delete(ctx context.Context, path string) error
- func (s *Store) EnsureBucket(ctx context.Context) error
- func (s *Store) Get(ctx context.Context, path string) ([]byte, error)
- func (s *Store) GetReader(ctx context.Context, path string) (rc io.ReadCloser, err error)
- func (s *Store) List(ctx context.Context, prefix string) ([]filestore.ObjectAttrs, error)
- func (s *Store) Put(ctx context.Context, path string, content []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func NewStore ¶
func NewStore(endpoint, bucket, accessKeyFile, secretKeyFile string, opts ...Option) (*Store, error)
NewStore generates a minio client with the given params
func (*Store) EnsureBucket ¶
EnsureBucket makes the bucket if not exists.
Click to show internal directories.
Click to hide internal directories.