rest

package
v5.0.0-...-2679821 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: AGPL-3.0 Imports: 58 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	MainCtx context.Context
}

func (*Handler) ConfigFormsDiscovery

func (s *Handler) ConfigFormsDiscovery(req *restful.Request, rsp *restful.Response) error

ConfigFormsDiscovery serves an XML description for building a form

func (*Handler) ControlService

func (h *Handler) ControlService(req *restful.Request, resp *restful.Response) error

ControlService is sends a command to a specific service - Not used for the moment.

func (*Handler) CreateEncryptionKey

func (s *Handler) CreateEncryptionKey(req *restful.Request, resp *restful.Response) error

CreateEncryptionKey simply forwards to underlying key service

func (*Handler) CreatePeerFolder

func (h *Handler) CreatePeerFolder(req *restful.Request, resp *restful.Response) error

CreatePeerFolder forwards folder creation call to specific peer

func (*Handler) CreateStorageBucket

func (s *Handler) CreateStorageBucket(req *restful.Request, resp *restful.Response) error

CreateStorageBucket instantiates a Storage client to create a bucket

func (*Handler) DeleteDataSource

func (s *Handler) DeleteDataSource(req *restful.Request, resp *restful.Response) error

func (*Handler) DeleteEncryptionKey

func (s *Handler) DeleteEncryptionKey(req *restful.Request, resp *restful.Response) error

DeleteEncryptionKey simply forwards to underlying key service

func (*Handler) EndpointsDiscovery

func (s *Handler) EndpointsDiscovery(req *restful.Request, resp *restful.Response) error

EndpointsDiscovery publishes a list of available endpoints

func (*Handler) ExportEncryptionKey

func (s *Handler) ExportEncryptionKey(req *restful.Request, resp *restful.Response) error

ExportEncryptionKey simply forwards to underlying key service

func (*Handler) Filter

func (a *Handler) Filter() func(string) string

Filter returns a function to filter the swagger path

func (*Handler) GetConfig

func (s *Handler) GetConfig(req *restful.Request, resp *restful.Response) error

func (*Handler) GetDataSource

func (s *Handler) GetDataSource(req *restful.Request, resp *restful.Response) error

GetDataSource retrieves a datasource given its name.

func (*Handler) GetVersioningPolicy

func (s *Handler) GetVersioningPolicy(req *restful.Request, resp *restful.Response) error

GetVersioningPolicy returns a specific policy

func (*Handler) ImportEncryptionKey

func (s *Handler) ImportEncryptionKey(req *restful.Request, resp *restful.Response) error

ImportEncryptionKey forwards call to underlying key service

func (*Handler) ListDataSources

func (s *Handler) ListDataSources(req *restful.Request, resp *restful.Response) error

func (*Handler) ListEncryptionKeys

func (s *Handler) ListEncryptionKeys(req *restful.Request, resp *restful.Response) error

ListEncryptionKeys simply forwards to underlying key service

func (*Handler) ListPeerFolders

func (h *Handler) ListPeerFolders(req *restful.Request, resp *restful.Response) error

ListPeerFolders lists folders on a given peer to configure a local folder datasource.

func (*Handler) ListPeersAddresses

func (h *Handler) ListPeersAddresses(req *restful.Request, resp *restful.Response) error

ListPeersAddresses lists all Peers (servers) on which any pydio service is running

func (*Handler) ListProcesses

func (h *Handler) ListProcesses(req *restful.Request, resp *restful.Response) error

ListProcesses lists running Processes from registry, with option PeerId or ServiceName filter.

func (*Handler) ListRegistry

func (h *Handler) ListRegistry(req *restful.Request, resp *restful.Response) error

func (*Handler) ListServices

func (h *Handler) ListServices(req *restful.Request, resp *restful.Response) error

ListServices lists all services with their status

func (*Handler) ListSites

func (s *Handler) ListSites(req *restful.Request, rsp *restful.Response) error

ListSites implements /config/sites GET API

func (*Handler) ListStorageBuckets

func (s *Handler) ListStorageBuckets(req *restful.Request, resp *restful.Response) error

ListStorageBuckets implements corresponding API. Lists available buckets on a remote object storage. Currently only supports S3 type storages.

func (*Handler) ListVersioningPolicies

func (s *Handler) ListVersioningPolicies(req *restful.Request, resp *restful.Response) error

ListVersioningPolicies list all defined policies.

func (*Handler) ListVirtualNodes

func (s *Handler) ListVirtualNodes(req *restful.Request, resp *restful.Response) error

ListVirtualNodes list all defined template paths.

func (*Handler) OpenApiDiscovery

func (s *Handler) OpenApiDiscovery(req *restful.Request, resp *restful.Response) error

OpenApiDiscovery prints out the Swagger Spec in JSON format

func (*Handler) PutConfig

func (s *Handler) PutConfig(req *restful.Request, resp *restful.Response) error

func (*Handler) PutDataSource

func (s *Handler) PutDataSource(req *restful.Request, resp *restful.Response) error

func (*Handler) SchedulerActionFormDiscovery

func (s *Handler) SchedulerActionFormDiscovery(req *restful.Request, rsp *restful.Response) error

SchedulerActionFormDiscovery sends an XML-serialized form for building parameters for a given action

func (*Handler) SchedulerActionsDiscovery

func (s *Handler) SchedulerActionsDiscovery(req *restful.Request, rsp *restful.Response) error

SchedulerActionsDiscovery lists all registered actions

func (*Handler) SwaggerTags

func (a *Handler) SwaggerTags() []string

SwaggerTags list the names of the service tags declared in the swagger json implemented by this service

func (*Handler) ValidateLocalDSFolderOnPeer

func (h *Handler) ValidateLocalDSFolderOnPeer(ctx context.Context, newSource *object.DataSource) error

ValidateLocalDSFolderOnPeer sends a couple of stat/create requests to the target Peer to make sure folder is valid

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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