Documentation ¶
Overview ¶
Package config can configure the MarkLogic REST server
Index ¶
- type Service
- func (s *Service) CreateExtension(assetName string, resource io.Reader, extensionType string, ...) error
- func (s *Service) CreateResource(name string, resource io.Reader, extensionType string, ...) error
- func (s *Service) CreateTransform(name string, resource io.Reader, extensionType string, ...) error
- func (s *Service) DeleteAllQueryOptions(response handle.ResponseHandle) error
- func (s *Service) DeleteExtensions(directory string) error
- func (s *Service) DeleteQueryOptions(name string, response handle.ResponseHandle) error
- func (s *Service) DeleteResource(name string, response handle.ResponseHandle) error
- func (s *Service) DeleteTransform(name string, response handle.ResponseHandle) error
- func (s *Service) GetProperties(response handle.ResponseHandle) error
- func (s *Service) GetQueryOptions(name string, response handle.ResponseHandle) error
- func (s *Service) GetResourceInfo(name string, response handle.ResponseHandle) error
- func (s *Service) GetTransformInfo(name string, response handle.ResponseHandle) error
- func (s *Service) IndexesReport(response handle.ResponseHandle) error
- func (s *Service) ListExtensions(directory string, response handle.ResponseHandle) error
- func (s *Service) ListNamespaces(response handle.ResponseHandle) error
- func (s *Service) ListQueryOptions(response handle.ResponseHandle) error
- func (s *Service) ListResources(response handle.ResponseHandle) error
- func (s *Service) ListTransforms(response handle.ResponseHandle) error
- func (s *Service) ResetProperties(response handle.ResponseHandle) error
- func (s *Service) SetNamespace(namespace handle.Handle, response handle.ResponseHandle) error
- func (s *Service) SetProperties(properties handle.Handle, response handle.ResponseHandle) error
- func (s *Service) SetPropertyValue(propertyName string, property handle.Handle, response handle.ResponseHandle) error
- func (s *Service) SetQueryOptions(optionsName string, options handle.Handle, response handle.ResponseHandle) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is used for the configuration service
func NewService ¶
NewService returns a new config.Service
func (*Service) CreateExtension ¶
func (s *Service) CreateExtension(assetName string, resource io.Reader, extensionType string, options map[string]string, response handle.ResponseHandle) error
CreateExtension shows all the installed REST extensions
func (*Service) CreateResource ¶
func (s *Service) CreateResource(name string, resource io.Reader, extensionType string, options map[string]string, response handle.ResponseHandle) error
CreateResource installs a REST service
func (*Service) CreateTransform ¶
func (s *Service) CreateTransform(name string, resource io.Reader, extensionType string, options map[string]string, response handle.ResponseHandle) error
CreateTransform installs a REST service
func (*Service) DeleteAllQueryOptions ¶
func (s *Service) DeleteAllQueryOptions(response handle.ResponseHandle) error
DeleteAllQueryOptions removes all the installed REST query options
func (*Service) DeleteExtensions ¶
DeleteExtensions removes all the installed REST extensions under the provided path
func (*Service) DeleteQueryOptions ¶
func (s *Service) DeleteQueryOptions(name string, response handle.ResponseHandle) error
DeleteQueryOptions removes the named REST query options
func (*Service) DeleteResource ¶
func (s *Service) DeleteResource(name string, response handle.ResponseHandle) error
DeleteResource removes a REST service
func (*Service) DeleteTransform ¶
func (s *Service) DeleteTransform(name string, response handle.ResponseHandle) error
DeleteTransform removes a REST service
func (*Service) GetProperties ¶
func (s *Service) GetProperties(response handle.ResponseHandle) error
GetProperties shows the REST API properties
func (*Service) GetQueryOptions ¶
func (s *Service) GetQueryOptions(name string, response handle.ResponseHandle) error
GetQueryOptions returns the named REST query options
func (*Service) GetResourceInfo ¶
func (s *Service) GetResourceInfo(name string, response handle.ResponseHandle) error
GetResourceInfo shows all the installed REST extensions
func (*Service) GetTransformInfo ¶
func (s *Service) GetTransformInfo(name string, response handle.ResponseHandle) error
GetTransformInfo shows all the installed REST extensions
func (*Service) IndexesReport ¶
func (s *Service) IndexesReport(response handle.ResponseHandle) error
IndexesReport shows the status of indexes in query options
func (*Service) ListExtensions ¶
func (s *Service) ListExtensions(directory string, response handle.ResponseHandle) error
ListExtensions shows all the installed REST extensions
func (*Service) ListNamespaces ¶
func (s *Service) ListNamespaces(response handle.ResponseHandle) error
ListNamespaces shows the namespaces used in queries
func (*Service) ListQueryOptions ¶
func (s *Service) ListQueryOptions(response handle.ResponseHandle) error
ListQueryOptions shows all the installed REST query options
func (*Service) ListResources ¶
func (s *Service) ListResources(response handle.ResponseHandle) error
ListResources shows all the installed REST service extensions
func (*Service) ListTransforms ¶
func (s *Service) ListTransforms(response handle.ResponseHandle) error
ListTransforms shows all the installed REST service extensions
func (*Service) ResetProperties ¶
func (s *Service) ResetProperties(response handle.ResponseHandle) error
ResetProperties resets the REST API properties to their default
func (*Service) SetNamespace ¶
SetNamespace shows the namespaces used in queries
func (*Service) SetProperties ¶
SetProperties sets the REST API properties
func (*Service) SetPropertyValue ¶
func (s *Service) SetPropertyValue(propertyName string, property handle.Handle, response handle.ResponseHandle) error
SetPropertyValue sets a property of the REST API
func (*Service) SetQueryOptions ¶
func (s *Service) SetQueryOptions(optionsName string, options handle.Handle, response handle.ResponseHandle) error
SetQueryOptions shows all the installed REST extensions