Documentation
¶
Index ¶
- type Manager
- func (manager *Manager) Backend(name string) backend.Backend
- func (manager *Manager) Backends() []string
- func (manager *Manager) Close() error
- func (manager *Manager) CreateObject(ctx context.Context, name string, req schema.CreateObjectRequest) (*schema.Object, error)
- func (manager *Manager) DeleteObject(ctx context.Context, name string, req schema.DeleteObjectRequest) (*schema.Object, error)
- func (manager *Manager) DeleteObjects(ctx context.Context, name string, req schema.DeleteObjectsRequest) (*schema.DeleteObjectsResponse, error)
- func (manager *Manager) GetObject(ctx context.Context, name string, req schema.GetObjectRequest) (*schema.Object, error)
- func (manager *Manager) ListObjects(ctx context.Context, name string, req schema.ListObjectsRequest) (*schema.ListObjectsResponse, error)
- func (manager *Manager) ReadObject(ctx context.Context, name string, req schema.ReadObjectRequest) (io.ReadCloser, *schema.Object, error)
- func (manager *Manager) Tracer() trace.Tracer
- type Opt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) Backend ¶ added in v0.0.3
Backend returns the named backend, or nil if it does not exist.
func (*Manager) CreateObject ¶
func (*Manager) DeleteObject ¶
func (*Manager) DeleteObjects ¶
func (manager *Manager) DeleteObjects(ctx context.Context, name string, req schema.DeleteObjectsRequest) (*schema.DeleteObjectsResponse, error)
func (*Manager) ListObjects ¶
func (manager *Manager) ListObjects(ctx context.Context, name string, req schema.ListObjectsRequest) (*schema.ListObjectsResponse, error)
func (*Manager) ReadObject ¶
type Opt ¶
type Opt func(*opts) error
Opt is a functional option for filer manager configuration.
func WithBackend ¶
WithBackend adds a blob backend (mem://, file://, s3://) to the filer. The url should be in the format "scheme://bucket" (e.g., "mem://mybucket", "s3://mybucket"). Returns an error if a backend with the same name already exists.
func WithFileBackend ¶
WithFileBackend is a convenience option that adds a file:// backend. name must be a valid identifier; dir must be an absolute path.
func WithTracer ¶
WithTracer sets the tracer used for tracing operations.
Click to show internal directories.
Click to hide internal directories.