Documentation ¶
Overview ¶
Package rest implements the REST api for managing configurations
Index ¶
- type Handler
- func (s *Handler) ConfigFormsDiscovery(req *restful.Request, rsp *restful.Response)
- func (s *Handler) ControlService(req *restful.Request, resp *restful.Response)
- func (s *Handler) CreateEncryptionKey(req *restful.Request, resp *restful.Response)
- func (s *Handler) DeleteDataSource(req *restful.Request, resp *restful.Response)
- func (s *Handler) DeleteEncryptionKey(req *restful.Request, resp *restful.Response)
- func (s *Handler) EndpointsDiscovery(req *restful.Request, resp *restful.Response)
- func (s *Handler) ExportEncryptionKey(req *restful.Request, resp *restful.Response)
- func (a *Handler) Filter() func(string) string
- func (s *Handler) GetConfig(req *restful.Request, resp *restful.Response)
- func (s *Handler) GetDataSource(req *restful.Request, resp *restful.Response)
- func (s *Handler) GetVersioningPolicy(req *restful.Request, resp *restful.Response)
- func (s *Handler) ImportEncryptionKey(req *restful.Request, resp *restful.Response)
- func (s *Handler) ListDataSources(req *restful.Request, resp *restful.Response)
- func (s *Handler) ListEncryptionKeys(req *restful.Request, resp *restful.Response)
- func (h *Handler) ListPeerFolders(req *restful.Request, resp *restful.Response)
- func (h *Handler) ListPeersAddresses(req *restful.Request, resp *restful.Response)
- func (h *Handler) ListProcesses(req *restful.Request, resp *restful.Response)
- func (h *Handler) ListServices(req *restful.Request, resp *restful.Response)
- func (s *Handler) ListVersioningPolicies(req *restful.Request, resp *restful.Response)
- func (s *Handler) ListVirtualNodes(req *restful.Request, resp *restful.Response)
- func (s *Handler) OpenApiDiscovery(req *restful.Request, resp *restful.Response)
- func (h *Handler) PeerClientSelector(srvName string, targetPeer string) selector.SelectOption
- func (s *Handler) PutConfig(req *restful.Request, resp *restful.Response)
- func (s *Handler) PutDataSource(req *restful.Request, resp *restful.Response)
- func (a *Handler) SwaggerTags() []string
- func (h *Handler) ValidateLocalDSFolderOnPeer(ctx context.Context, newSource *object.DataSource) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct{}
func (*Handler) ConfigFormsDiscovery ¶
func (s *Handler) ConfigFormsDiscovery(req *restful.Request, rsp *restful.Response)
func (*Handler) ControlService ¶
func (s *Handler) ControlService(req *restful.Request, resp *restful.Response)
Start Stop services
func (*Handler) CreateEncryptionKey ¶
func (s *Handler) CreateEncryptionKey(req *restful.Request, resp *restful.Response)
CreateEncryptionKey simply forwards to underlying key service
func (*Handler) DeleteDataSource ¶
func (s *Handler) DeleteDataSource(req *restful.Request, resp *restful.Response)
func (*Handler) DeleteEncryptionKey ¶
func (s *Handler) DeleteEncryptionKey(req *restful.Request, resp *restful.Response)
DeleteEncryptionKey simply forwards to underlying key service
func (*Handler) EndpointsDiscovery ¶
func (s *Handler) EndpointsDiscovery(req *restful.Request, resp *restful.Response)
**************************** PUBLIC ENDPOINTS FOR DISCOVERY ***************************** Publish a list of available endpoints
func (*Handler) ExportEncryptionKey ¶
func (s *Handler) ExportEncryptionKey(req *restful.Request, resp *restful.Response)
ExportEncryptionKey simply forwards to underlying key service
func (*Handler) GetConfig ¶
func (s *Handler) GetConfig(req *restful.Request, resp *restful.Response)
func (*Handler) GetDataSource ¶
func (s *Handler) GetDataSource(req *restful.Request, resp *restful.Response)
GetDataSource retrieves a datasource given its name.
func (*Handler) GetVersioningPolicy ¶
func (s *Handler) GetVersioningPolicy(req *restful.Request, resp *restful.Response)
GetVersioningPolicy returns a specific policy
func (*Handler) ImportEncryptionKey ¶
func (s *Handler) ImportEncryptionKey(req *restful.Request, resp *restful.Response)
ImportEncryptionKey forwards call to underlying key service
func (*Handler) ListDataSources ¶
func (s *Handler) ListDataSources(req *restful.Request, resp *restful.Response)
func (*Handler) ListEncryptionKeys ¶
func (s *Handler) ListEncryptionKeys(req *restful.Request, resp *restful.Response)
***************************
MASTER KEYS MANAGEMENT
**************************** ListEncryptionKeys simply forwards to underlying key service
func (*Handler) ListPeerFolders ¶
func (h *Handler) ListPeerFolders(req *restful.Request, resp *restful.Response)
List folders on a given peer to configure a local folder datasource
func (*Handler) ListPeersAddresses ¶
func (h *Handler) ListPeersAddresses(req *restful.Request, resp *restful.Response)
List all Peers (servers) on which any pydio service is running
func (*Handler) ListProcesses ¶ added in v1.4.0
func (h *Handler) ListProcesses(req *restful.Request, resp *restful.Response)
ListProcesses List running Processes from registry, with option PeerId or ServiceName filter
func (*Handler) ListServices ¶
func (h *Handler) ListServices(req *restful.Request, resp *restful.Response)
******************** SERVICES MANAGEMENT ******************** List all services with their status
func (*Handler) ListVersioningPolicies ¶
func (s *Handler) ListVersioningPolicies(req *restful.Request, resp *restful.Response)
ListVersioningPolicies list all defined policies.
func (*Handler) ListVirtualNodes ¶ added in v1.2.0
func (s *Handler) ListVirtualNodes(req *restful.Request, resp *restful.Response)
ListVersioningPolicies list all defined policies.
func (*Handler) OpenApiDiscovery ¶
func (s *Handler) OpenApiDiscovery(req *restful.Request, resp *restful.Response)
func (*Handler) PeerClientSelector ¶ added in v1.2.2
func (h *Handler) PeerClientSelector(srvName string, targetPeer string) selector.SelectOption
PeerClientSelector creates a Selector Filter to restrict call to a given PeerAddress
func (*Handler) PutConfig ¶
func (s *Handler) PutConfig(req *restful.Request, resp *restful.Response)
******************** GENERIC GET/PUT CALLS ********************
func (*Handler) PutDataSource ¶
func (s *Handler) PutDataSource(req *restful.Request, resp *restful.Response)
func (*Handler) SwaggerTags ¶
SwaggerTags list the names of the service tags declared in the swagger json implemented by this service
func (*Handler) ValidateLocalDSFolderOnPeer ¶ added in v1.2.2
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