shares

package
v2.19.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 55 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMountpointAndUnmountedShares added in v2.19.0

func GetMountpointAndUnmountedShares(ctx context.Context, gwc gateway.GatewayAPIClient, info *provider.ResourceInfo) (string, []*collaboration.ReceivedShare, error)

GetMountpointAndUnmountedShares returns a new or existing mountpoint for the given info and produces a list of unmounted received shares for the same resource

Types

type GatewayClientGetter

type GatewayClientGetter func() (gateway.GatewayAPIClient, error)

GatewayClientGetter is the function being used to retrieve a gateway client instance

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler implements the shares part of the ownCloud sharing API

func (*Handler) AcceptReceivedShare

func (h *Handler) AcceptReceivedShare(w http.ResponseWriter, r *http.Request)

AcceptReceivedShare handles Post Requests on /apps/files_sharing/api/v1/shares/{shareid}

func (*Handler) CreateShare

func (h *Handler) CreateShare(w http.ResponseWriter, r *http.Request)

CreateShare handles POST requests on /apps/files_sharing/api/v1/shares

func (*Handler) GetFederatedShare

func (h *Handler) GetFederatedShare(w http.ResponseWriter, r *http.Request)

GetFederatedShare handles GET requests on /apps/files_sharing/api/v1/shares/remote_shares/{shareid}.

func (*Handler) GetShare

func (h *Handler) GetShare(w http.ResponseWriter, r *http.Request)

GetShare handles GET requests on /apps/files_sharing/api/v1/shares/(shareid)

func (*Handler) Init

func (h *Handler) Init(c *config.Config) error

Init initializes this and any contained handlers

func (*Handler) InitWithGetter

func (h *Handler) InitWithGetter(c *config.Config, clientGetter GatewayClientGetter)

InitWithGetter initializes the handler and adds the clientGetter

func (*Handler) ListFederatedShares

func (h *Handler) ListFederatedShares(w http.ResponseWriter, r *http.Request)

ListFederatedShares handles GET requests on /apps/files_sharing/api/v1/shares/remote_shares.

func (*Handler) ListShares

func (h *Handler) ListShares(w http.ResponseWriter, r *http.Request)

ListShares handles GET requests on /apps/files_sharing/api/v1/shares

func (*Handler) RejectReceivedShare

func (h *Handler) RejectReceivedShare(w http.ResponseWriter, r *http.Request)

RejectReceivedShare handles DELETE Requests on /apps/files_sharing/api/v1/shares/{shareid}

func (*Handler) RemoveShare

func (h *Handler) RemoveShare(w http.ResponseWriter, r *http.Request)

RemoveShare handles DELETE requests on /apps/files_sharing/api/v1/shares/(shareid)

func (*Handler) UpdateReceivedShare added in v2.17.0

func (h *Handler) UpdateReceivedShare(w http.ResponseWriter, r *http.Request)

func (*Handler) UpdateShare

func (h *Handler) UpdateShare(w http.ResponseWriter, r *http.Request)

UpdateShare handles PUT requests on /apps/files_sharing/api/v1/shares/(shareid)

type PublicShareContextName

type PublicShareContextName string

PublicShareContextName represent cross boundaries context for the name of the public share

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL