Documentation ¶
Index ¶
- func WithVersions() nodes.Option
- type Handler
- func (v *Handler) Adapt(c nodes.Handler, options nodes.RouterOptions) nodes.Handler
- func (v *Handler) CopyObject(ctx context.Context, from *tree.Node, to *tree.Node, ...) (models.ObjectInfo, error)
- func (v *Handler) GetObject(ctx context.Context, node *tree.Node, requestData *models.GetRequestData) (io.ReadCloser, error)
- func (v *Handler) ListNodes(ctx context.Context, in *tree.ListNodesRequest, opts ...grpc.CallOption) (tree.NodeProvider_ListNodesClient, error)
- func (v *Handler) ReadNode(ctx context.Context, req *tree.ReadNodeRequest, opts ...grpc.CallOption) (*tree.ReadNodeResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithVersions ¶
Types ¶
type Handler ¶
Handler capture ListNodes and GetObject calls to find existing nodes versions and retrieve them.
func (*Handler) CopyObject ¶
func (v *Handler) CopyObject(ctx context.Context, from *tree.Node, to *tree.Node, requestData *models.CopyRequestData) (models.ObjectInfo, error)
CopyObject intercept request with a SrcVersionId to read original from Version Store
func (*Handler) GetObject ¶
func (v *Handler) GetObject(ctx context.Context, node *tree.Node, requestData *models.GetRequestData) (io.ReadCloser, error)
GetObject redirects to Version Store if request contains a VersionID
func (*Handler) ListNodes ¶
func (v *Handler) ListNodes(ctx context.Context, in *tree.ListNodesRequest, opts ...grpc.CallOption) (tree.NodeProvider_ListNodesClient, error)
ListNodes creates a list of nodes if the Versions are required
func (*Handler) ReadNode ¶
func (v *Handler) ReadNode(ctx context.Context, req *tree.ReadNodeRequest, opts ...grpc.CallOption) (*tree.ReadNodeResponse, error)
ReadNode retrieves information about a specific version
Click to show internal directories.
Click to hide internal directories.