config

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package config can configure the MarkLogic REST server

Index

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

func NewService(client *clients.Client) *Service

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

func (s *Service) DeleteExtensions(directory string) error

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

func (s *Service) SetNamespace(namespace handle.Handle, response handle.ResponseHandle) error

SetNamespace shows the namespaces used in queries

func (*Service) SetProperties

func (s *Service) SetProperties(properties handle.Handle, response handle.ResponseHandle) error

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

Jump to

Keyboard shortcuts

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