wellknown

package
v2.26.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const OCMAPIVersion = "1.1.0"

Variables

This section is empty.

Functions

func New

func New(m map[string]interface{}, log *zerolog.Logger) (global.Service, error)

New returns a new wellknown object.

Types

type OcmDiscoveryData added in v2.26.0

type OcmDiscoveryData struct {
	Enabled       bool            `json:"enabled"       xml:"enabled"`
	APIVersion    string          `json:"apiVersion"    xml:"apiVersion"`
	Endpoint      string          `json:"endPoint"      xml:"endPoint"`
	Provider      string          `json:"provider"      xml:"provider"`
	ResourceTypes []resourceTypes `json:"resourceTypes" xml:"resourceTypes"`
	Capabilities  []string        `json:"capabilities"  xml:"capabilities"`
}

type OcmProviderConfig added in v2.26.0

type OcmProviderConfig struct {
	OCMPrefix    string `docs:"ocm;The prefix URL where the OCM API is served."                                   mapstructure:"ocm_prefix"`
	Endpoint     string `docs:"This host's full URL. If it's not configured, it is assumed OCM is not available." mapstructure:"endpoint"`
	Provider     string `docs:"reva;A friendly name that defines this service."                                   mapstructure:"provider"`
	WebdavRoot   string `docs:"/remote.php/dav/ocm;The root URL of the WebDAV endpoint to serve OCM shares."      mapstructure:"webdav_root"`
	WebappRoot   string `docs:"/external/sciencemesh;The root URL to serve Web apps via OCM."                     mapstructure:"webapp_root"`
	EnableWebapp bool   `docs:"false;Whether web apps are enabled in OCM shares."                                 mapstructure:"enable_webapp"`
	EnableDatatx bool   `docs:"false;Whether data transfers are enabled in OCM shares."                           mapstructure:"enable_datatx"`
}

func (*OcmProviderConfig) ApplyDefaults added in v2.26.0

func (c *OcmProviderConfig) ApplyDefaults()

Jump to

Keyboard shortcuts

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