management

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDatabaseProperties

func GetDatabaseProperties(mc *clients.ManagementClient, databaseName string, propertiesHandle handle.ResponseHandle) error

GetDatabaseProperties sets the database properties

func GetServerProperties

func GetServerProperties(mc *clients.ManagementClient, serverName string, groupID string, properties handle.ResponseHandle) error

GetServerProperties sets the database properties

func SetDatabaseProperties

func SetDatabaseProperties(mc *clients.ManagementClient, databaseName string, propertiesHandle handle.ResponseHandle) error

SetDatabaseProperties sets the database properties

func SetServerProperties

func SetServerProperties(mc *clients.ManagementClient, serverName string, groupID string, properties handle.Handle, response handle.ResponseHandle) error

SetServerProperties sets the database properties

Types

type AssignmentPolicy

type AssignmentPolicy struct {
	AssignmentPolicyName string `xml:"http://marklogic.com/manage namespace-uri" json:"assignment-policy-name"`
}

AssignmentPolicy struct reprenting an assignment policy in the database

type DatabaseProperties

type DatabaseProperties struct {
	XMLName                             xml.Name                     `xml:"http://marklogic.com/manage database-properties" json:"-"`
	DatabaseName                        string                       `xml:"http://marklogic.com/manage database-name" json:"database-name"`
	Forest                              []string                     `xml:"http://marklogic.com/manage forest" json:"forest"`
	SecurityDatabase                    string                       `xml:"http://marklogic.com/manage security-database" json:"security-database"`
	SchemaDatabase                      string                       `xml:"http://marklogic.com/manage schema-database" json:"schema-database"`
	Enabled                             bool                         `xml:"http://marklogic.com/manage enabled" json:"enabled"`
	RetiredForestCount                  int                          `xml:"http://marklogic.com/manage retired-forest-count" json:"retired-forest-count"`
	Language                            string                       `xml:"http://marklogic.com/manage language" json:"language"`
	StemmedSearches                     string                       `xml:"http://marklogic.com/manage stemmed-searches" json:"stemmed-searches"`
	WordSearches                        bool                         `xml:"http://marklogic.com/manage word-searches" json:"word-searches"`
	WordPositions                       bool                         `xml:"http://marklogic.com/manage word-positions" json:"word-positions"`
	FastPhraseSearches                  bool                         `xml:"http://marklogic.com/manage fast-phrase-searches" json:"fast-phrase-searches"`
	FastReverseSearches                 bool                         `xml:"http://marklogic.com/manage fast-reverse-searches" json:"fast-reverse-searches"`
	TripleIndex                         bool                         `xml:"http://marklogic.com/manage triple-index" json:"triple-index"`
	TriplePositions                     bool                         `xml:"http://marklogic.com/manage triple-positions" json:"triple-positions"`
	FastCaseSensitiveSearches           bool                         `xml:"http://marklogic.com/manage fast-case-sensitive-searches" json:"fast-case-sensitive-searches"`
	FastDiacriticSensitiveSearches      bool                         `xml:"http://marklogic.com/manage fast-diacritic-sensitive-searches" json:"fast-diacritic-sensitive-searches"`
	FastElementWordSearches             bool                         `xml:"http://marklogic.com/manage fast-element-word-searches" json:"fast-element-word-searches"`
	ElementWordPositions                bool                         `xml:"http://marklogic.com/manage element-word-positions" json:"element-word-positions"`
	FastElementPhraseSearches           bool                         `xml:"http://marklogic.com/manage fast-element-phrase-searches" json:"fast-element-phrase-searches"`
	ElementValuePositions               bool                         `xml:"http://marklogic.com/manage element-value-positions" json:"element-value-positions"`
	AttributeValuePositions             bool                         `xml:"http://marklogic.com/manage attribute-value-positions" json:"attribute-value-positions"`
	FieldValueSearches                  bool                         `xml:"http://marklogic.com/manage field-value-searches" json:"field-value-searches"`
	FieldValuePositions                 bool                         `xml:"http://marklogic.com/manage field-value-positions" json:"field-value-positions"`
	ThreeCharacterSearches              bool                         `xml:"http://marklogic.com/manage three-character-searches" json:"three-character-searches"`
	ThreeCharacterWordPositions         bool                         `xml:"http://marklogic.com/manage three-character-word-positions" json:"three-character-word-positions"`
	FastElementCharacterSearches        bool                         `xml:"http://marklogic.com/manage fast-element-character-searches" json:"fast-element-character-searches"`
	TrailingWildcardSearches            bool                         `xml:"http://marklogic.com/manage trailing-wildcard-searches" json:"trailing-wildcard-searches"`
	TrailingWildcardWordPositions       bool                         `xml:"http://marklogic.com/manage trailing-wildcard-word-positions" json:"trailing-wildcard-word-positions"`
	FastElementTrailingWildcardSearches bool                         `xml:"http://marklogic.com/manage fast-element-trailing-wildcard-searches" json:"fast-element-trailing-wildcard-searches"`
	TwoCharacterSearches                bool                         `xml:"http://marklogic.com/manage two-character-searches" json:"two-character-searches"`
	OneCharacterSearches                bool                         `xml:"http://marklogic.com/manage one-character-searches" json:"one-character-searches"`
	URILexicon                          bool                         `xml:"http://marklogic.com/manage uri-lexicon" json:"uri-lexicon"`
	CollectionLexicon                   bool                         `xml:"http://marklogic.com/manage collection-lexicon" json:"collection-lexicon"`
	ReindexerEnable                     bool                         `xml:"http://marklogic.com/manage reindexer-enable" json:"reindexer-enable"`
	ReindexerThrottle                   int                          `xml:"http://marklogic.com/manage reindexer-throttle" json:"reindexer-throttle"`
	ReindexerTimestamp                  int                          `xml:"http://marklogic.com/manage reindexer-timestamp" json:"reindexer-timestamp"`
	DirectoryCreation                   string                       `xml:"http://marklogic.com/manage directory-creation" json:"directory-creation"`
	MaintainLastModified                bool                         `xml:"http://marklogic.com/manage maintain-last-modified" json:"maintain-last-modified"`
	MaintainDirectoryLastModified       bool                         `xml:"http://marklogic.com/manage maintain-directory-last-modified" json:"maintain-directory-last-modified"`
	InheritPermissions                  bool                         `xml:"http://marklogic.com/manage inherit-permissions" json:"inherit-permissions"`
	InheritCollections                  bool                         `xml:"http://marklogic.com/manage inherit-collections" json:"inherit-collections"`
	InheritQuality                      bool                         `xml:"http://marklogic.com/manage inherit-quality" json:"inherit-quality"`
	InMemoryLimit                       int                          `xml:"http://marklogic.com/manage in-memory-limit" json:"in-memory-limit"`
	InMemoryListSize                    int                          `xml:"http://marklogic.com/manage in-memory-list-size" json:"in-memory-list-size"`
	InMemoryTreeSize                    int                          `xml:"http://marklogic.com/manage in-memory-tree-size" json:"in-memory-tree-size"`
	InMemoryRangeIndexSize              int                          `xml:"http://marklogic.com/manage in-memory-range-index-size" json:"in-memory-range-index-size"`
	InMemoryReverseIndexSize            int                          `xml:"http://marklogic.com/manage in-memory-reverse-index-size" json:"in-memory-reverse-index-size"`
	InMemoryTripleIndexSize             int                          `xml:"http://marklogic.com/manage in-memory-triple-index-size" json:"in-memory-triple-index-size"`
	LargeSizeThreshold                  int                          `xml:"http://marklogic.com/manage large-size-threshold" json:"large-size-threshold"`
	Locking                             string                       `xml:"http://marklogic.com/manage locking" json:"locking"`
	Journaling                          string                       `xml:"http://marklogic.com/manage journaling" json:"journaling"`
	JournalSize                         int                          `xml:"http://marklogic.com/manage journal-size" json:"journal-size"`
	JournalCount                        int                          `xml:"http://marklogic.com/manage journal-count" json:"journal-count"`
	PreallocateJournals                 bool                         `xml:"http://marklogic.com/manage preallocate-journals" json:"preallocate-journals"`
	PreloadMappedData                   bool                         `xml:"http://marklogic.com/manage preload-mapped-data" json:"preload-mapped-data"`
	PreloadReplicaMappedData            bool                         `xml:"http://marklogic.com/manage preload-replica-mapped-data" json:"preload-replica-mapped-data"`
	RangeIndexOptimize                  string                       `xml:"http://marklogic.com/manage range-index-optimize" json:"range-index-optimize"`
	PositionsListMaxSize                int                          `xml:"http://marklogic.com/manage positions-list-max-size" json:"positions-list-max-size"`
	FormatCompatibility                 string                       `xml:"http://marklogic.com/manage format-compatibility" json:"format-compatibility"`
	IndexDetection                      string                       `xml:"http://marklogic.com/manage index-detection" json:"index-detection"`
	ExpungeLocks                        string                       `xml:"http://marklogic.com/manage expunge-locks" json:"expunge-locks"`
	TfNormalization                     string                       `xml:"http://marklogic.com/manage tf-normalization" json:"tf-normalization"`
	MergePriority                       string                       `xml:"http://marklogic.com/manage merge-priority" json:"merge-priority"`
	MergeMaxSize                        int                          `xml:"http://marklogic.com/manage merge-max-size" json:"merge-max-size"`
	MergeMinSize                        int                          `xml:"http://marklogic.com/manage merge-min-size" json:"merge-min-size"`
	MergeMinRatio                       int                          `xml:"http://marklogic.com/manage merge-min-ratio" json:"merge-min-ratio"`
	MergeTimestamp                      int                          `xml:"http://marklogic.com/manage merge-timestamp" json:"merge-timestamp"`
	RetainUntilBackup                   bool                         `xml:"http://marklogic.com/manage retain-until-backup" json:"retain-until-backup"`
	ElementWordQueryThrough             []ElementWordQueryThrough    `xml:"http://marklogic.com/manage element-word-query-through" json:"element-word-query-through,omitempty"`
	PhraseThrough                       []PhraseThrough              `xml:"http://marklogic.com/manage phrase-through" json:"phrase-through,omitempty"`
	PhraseAround                        []PhraseAround               `xml:"http://marklogic.com/manage phrase-around" json:"phrase-around,omitempty"`
	RangeElementIndex                   []RangeElementIndex          `xml:"http://marklogic.com/manage range-element-index" json:"range-element-index,omitempty"`
	RangeElementAttributeIndex          []RangeElementAttributeIndex `xml:"http://marklogic.com/manage range-element-attribute-index" json:"range-element-attribute-index,omitempty"`
	Field                               []Field                      `xml:"http://marklogic.com/manage field" json:"field,omitempty"`
	RangeFieldIndex                     []RangeFieldIndex            `xml:"http://marklogic.com/manage range-field-index" json:"range-field-index,omitempty"`
	DatabaseReplication                 string                       `xml:"http://marklogic.com/manage database-replication" json:"database-replication"`
	RebalancerEnable                    bool                         `xml:"http://marklogic.com/manage rebalancer-enable" json:"rebalancer-enable"`
	RebalancerThrottle                  int                          `xml:"http://marklogic.com/manage rebalancer-throttle" json:"rebalancer-throttle"`
	AssignmentPolicy                    AssignmentPolicy             `xml:"http://marklogic.com/manage assignment-policy" json:"assignment-policy"`
}

DatabaseProperties represents the properties of a MarkLogic Database

type DatabasePropertiesHandle

type DatabasePropertiesHandle struct {
	*bytes.Buffer
	Format int
	// contains filtered or unexported fields
}

DatabasePropertiesHandle is a handle that places the results into a DatabaseProperties struct

func (*DatabasePropertiesHandle) AcceptResponse

func (dh *DatabasePropertiesHandle) AcceptResponse(resp *http.Response) error

AcceptResponse handles an *http.Response

func (*DatabasePropertiesHandle) Deserialize

func (dh *DatabasePropertiesHandle) Deserialize(bytes []byte)

Deserialize returns Query struct that represents XML or JSON

func (*DatabasePropertiesHandle) Deserialized

func (dh *DatabasePropertiesHandle) Deserialized() interface{}

Deserialized returns DatabaseProperties as interface{}

func (*DatabasePropertiesHandle) Get

Get returns string of XML or JSON

func (*DatabasePropertiesHandle) GetFormat

func (dh *DatabasePropertiesHandle) GetFormat() int

GetFormat returns int that represents XML or JSON

func (*DatabasePropertiesHandle) Serialize

func (dh *DatabasePropertiesHandle) Serialize(databaseProperties interface{})

Serialize returns []byte of XML or JSON that represents the Query struct

func (*DatabasePropertiesHandle) Serialized

func (dh *DatabasePropertiesHandle) Serialized() string

Serialized returns string of XML or JSON

func (*DatabasePropertiesHandle) SetTimestamp

func (dh *DatabasePropertiesHandle) SetTimestamp(timestamp string)

SetTimestamp sets the timestamp

func (*DatabasePropertiesHandle) Timestamp

func (dh *DatabasePropertiesHandle) Timestamp() string

Timestamp retieves a timestamp

type ElementWordQueryThrough

type ElementWordQueryThrough struct {
	NamespaceURI string      `xml:"http://marklogic.com/manage namespace-uri" json:"namespace-uri"`
	Localname    interface{} `xml:"http://marklogic.com/manage localname" json:"localname"`
}

ElementWordQueryThrough struct reprenting an element word query through in the database

type Field

type Field struct {
	FieldName          string            `xml:"http://marklogic.com/manage field-name" json:"field-name"`
	IncludeRoot        bool              `xml:"http://marklogic.com/manage include-root" json:"include-root"`
	WordLexicon        []string          `xml:"http://marklogic.com/manage word-lexicon" json:"word-lexicon,omitempty"`
	IncludedElement    []IncludedElement `xml:"http://marklogic.com/manage included-element" json:"included-element,omitempty"`
	ExcludedElement    []IncludedElement `xml:"http://marklogic.com/manage excluded-element" json:"excluded-element,omitempty"`
	TokenizerOverrides string            `xml:"http://marklogic.com/manage tokenizer-overrides" json:"tokenizer-overrides"`
}

Field struct reprenting a field in the database

type IncludedElement

type IncludedElement struct {
	NamespaceURI          string `xml:"http://marklogic.com/manage namespace-uri" json:"namespace-uri"`
	Localname             string `xml:"http://marklogic.com/manage localname" json:"localname"`
	Weight                int    `xml:"http://marklogic.com/manage weight" json:"weight"`
	AttributeNamespaceURI string `xml:"http://marklogic.com/manage attribute-namespace-uri" json:"attribute-namespace-uri"`
	AttributeLocalname    string `xml:"http://marklogic.com/manage attribute-localname" json:"attribute-localname"`
	AttributeValue        string `xml:"http://marklogic.com/manage attribute-value" json:"attribute-value"`
}

IncludedElement struct containing information about an element contained in a field

type PhraseAround

type PhraseAround struct {
	NamespaceURI string      `xml:"http://marklogic.com/manage namespace-uri" json:"namespace-uri"`
	Localname    interface{} `xml:"http://marklogic.com/manage localname" json:"localname"`
}

PhraseAround struct reprenting a phrase around in the database

type PhraseThrough

type PhraseThrough struct {
	NamespaceURI string      `xml:"http://marklogic.com/manage namespace-uri" json:"namespace-uri"`
	Localname    interface{} `xml:"http://marklogic.com/manage localname" json:"localname"`
}

PhraseThrough struct reprenting a phrase through in the database

type RangeElementAttributeIndex

type RangeElementAttributeIndex struct {
	ScalarType          string `xml:"http://marklogic.com/manage scalar-type" json:"scalar-type"`
	ParentNamespaceURI  string `xml:"http://marklogic.com/manage parent-namespace-uri" json:"parent-namespace-uri"`
	ParentLocalname     string `xml:"http://marklogic.com/manage parent-localname" json:"parent-localname"`
	NamespaceURI        string `xml:"http://marklogic.com/manage namespace-uri" json:"namespace-uri"`
	Localname           string `xml:"http://marklogic.com/manage localname" json:"localname"`
	Collation           string `xml:"http://marklogic.com/manage collation" json:"collation"`
	RangeValuePositions bool   `xml:"http://marklogic.com/manage range-value-positions" json:"range-value-positions"`
	InvalidValues       string `xml:"http://marklogic.com/manage invalid-values" json:"invalid-values"`
}

RangeElementAttributeIndex struct reprenting an element attribute range index in the database

type RangeElementIndex

type RangeElementIndex struct {
	ScalarType          string `xml:"http://marklogic.com/manage scalar-type" json:"scalar-type"`
	NamespaceURI        string `xml:"http://marklogic.com/manage namespace-uri" json:"namespace-uri"`
	Localname           string `xml:"http://marklogic.com/manage localname" json:"localname"`
	Collation           string `xml:"http://marklogic.com/manage collation" json:"collation"`
	RangeValuePositions bool   `xml:"http://marklogic.com/manage range-value-positions" json:"range-value-positions"`
	InvalidValues       string `xml:"http://marklogic.com/manage invalid-values" json:"invalid-values"`
}

RangeElementIndex struct reprenting an element range index in the database

type RangeFieldIndex

type RangeFieldIndex struct {
	ScalarType          string `xml:"http://marklogic.com/manage scalar-type" json:"scalar-type"`
	FieldName           string `xml:"http://marklogic.com/manage field-name" json:"field-name"`
	Collation           string `xml:"http://marklogic.com/manage collation" json:"collation"`
	RangeValuePositions bool   `xml:"http://marklogic.com/manage range-value-positions" json:"range-value-positions"`
	InvalidValues       string `xml:"http://marklogic.com/manage invalid-values" json:"invalid-values"`
}

RangeFieldIndex struct reprenting a field range index in the database

type ServerProperties

type ServerProperties struct {
	XMLName                        xml.Name `xml:"http://marklogic.com/manage http-server-properties" json:"-"`
	ServerName                     string   `xml:"http://marklogic.com/manage server-name" json:"server-name"`
	GroupName                      string   `xml:"http://marklogic.com/manage group-name" json:"group-name"`
	ServerType                     string   `xml:"http://marklogic.com/manage server-type" json:"server-type"`
	Enabled                        bool     `xml:"http://marklogic.com/manage enabled" json:"enabled"`
	Root                           string   `xml:"http://marklogic.com/manage root" json:"root"`
	Port                           int      `xml:"http://marklogic.com/manage port" json:"port"`
	WebDAV                         bool     `xml:"http://marklogic.com/manage webDAV" json:"webDAV"`
	Execute                        bool     `xml:"http://marklogic.com/manage execute" json:"execute"`
	DisplayLastLogin               bool     `xml:"http://marklogic.com/manage display-last-login" json:"display-last-login"`
	Address                        string   `xml:"http://marklogic.com/manage address" json:"address"`
	Backlog                        int      `xml:"http://marklogic.com/manage backlog" json:"backlog"`
	Threads                        int      `xml:"http://marklogic.com/manage threads" json:"threads"`
	RequestTimeout                 int      `xml:"http://marklogic.com/manage request-timeout" json:"request-timeout"`
	KeepAliveTimeout               int      `xml:"http://marklogic.com/manage keep-alive-timeout" json:"keep-alive-timeout"`
	SessionTimeout                 int      `xml:"http://marklogic.com/manage session-timeout" json:"session-timeout"`
	MaxTimeLimit                   int      `xml:"http://marklogic.com/manage max-time-limit" json:"max-time-limit"`
	DefaultTimeLimit               int      `xml:"http://marklogic.com/manage default-time-limit" json:"default-time-limit"`
	MaxInferenceSize               int      `xml:"http://marklogic.com/manage max-inference-size" json:"max-inference-size"`
	DefaultInferenceSize           int      `xml:"http://marklogic.com/manage default-inference-size" json:"default-inference-size"`
	StaticExpires                  int      `xml:"http://marklogic.com/manage static-expires" json:"static-expires"`
	PreCommitTriggerDepth          int      `xml:"http://marklogic.com/manage pre-commit-trigger-depth" json:"pre-commit-trigger-depth"`
	PreCommitTriggerLimit          int      `xml:"http://marklogic.com/manage pre-commit-trigger-limit" json:"pre-commit-trigger-limit"`
	Collation                      string   `xml:"http://marklogic.com/manage collation" json:"collation"`
	Authentication                 string   `xml:"http://marklogic.com/manage authentication" json:"authentication"`
	InternalSecurity               bool     `xml:"http://marklogic.com/manage internal-security" json:"internal-security"`
	ConcurrentRequestLimit         int      `xml:"http://marklogic.com/manage concurrent-request-limit" json:"concurrent-request-limit"`
	ComputeContentLength           bool     `xml:"http://marklogic.com/manage compute-content-length" json:"compute-content-length"`
	LogErrors                      bool     `xml:"http://marklogic.com/manage log-errors" json:"log-errors"`
	DebugAllow                     bool     `xml:"http://marklogic.com/manage debug-allow" json:"debug-allow"`
	ProfileAllow                   bool     `xml:"http://marklogic.com/manage profile-allow" json:"profile-allow"`
	DefaultXqueryVersion           string   `xml:"http://marklogic.com/manage default-xquery-version" json:"default-xquery-version"`
	MultiVersionConcurrencyControl string   `xml:"http://marklogic.com/manage multi-version-concurrency-control" json:"multi-version-concurrency-control"`
	DistributeTimestamps           string   `xml:"http://marklogic.com/manage distribute-timestamps" json:"distribute-timestamps"`
	OutputSgmlCharacterEntities    string   `xml:"http://marklogic.com/manage output-sgml-character-entities" json:"output-sgml-character-entities"`
	OutputEncoding                 string   `xml:"http://marklogic.com/manage output-encoding" json:"output-encoding"`
	OutputMethod                   string   `xml:"http://marklogic.com/manage output-method" json:"output-method"`
	OutputByteOrderMark            string   `xml:"http://marklogic.com/manage output-byte-order-mark" json:"output-byte-order-mark"`
	OutputCdataSectionNamespaceURI string   `xml:"http://marklogic.com/manage output-cdata-section-namespace-uri" json:"output-cdata-section-namespace-uri"`
	OutputCdataSectionLocalname    string   `xml:"http://marklogic.com/manage output-cdata-section-localname" json:"output-cdata-section-localname"`
	OutputDoctypePublic            string   `xml:"http://marklogic.com/manage output-doctype-public" json:"output-doctype-public"`
	OutputDoctypeSystem            string   `xml:"http://marklogic.com/manage output-doctype-system" json:"output-doctype-system"`
	OutputEscapeURIAttributes      string   `xml:"http://marklogic.com/manage output-escape-uri-attributes" json:"output-escape-uri-attributes"`
	OutputIncludeContentType       string   `xml:"http://marklogic.com/manage output-include-content-type" json:"output-include-content-type"`
	OutputIndent                   string   `xml:"http://marklogic.com/manage output-indent" json:"output-indent"`
	OutputIndentUntyped            string   `xml:"http://marklogic.com/manage output-indent-untyped" json:"output-indent-untyped"`
	OutputMediaType                string   `xml:"http://marklogic.com/manage output-media-type" json:"output-media-type"`
	OutputNormalizationForm        string   `xml:"http://marklogic.com/manage output-normalization-form" json:"output-normalization-form"`
	OutputOmitXMLDeclaration       string   `xml:"http://marklogic.com/manage output-omit-xml-declaration" json:"output-omit-xml-declaration"`
	OutputStandalone               string   `xml:"http://marklogic.com/manage output-standalone" json:"output-standalone"`
	OutputUndeclarePrefixes        string   `xml:"http://marklogic.com/manage output-undeclare-prefixes" json:"output-undeclare-prefixes"`
	OutputVersion                  string   `xml:"http://marklogic.com/manage output-version" json:"output-version"`
	OutputIncludeDefaultAttributes string   `xml:"http://marklogic.com/manage output-include-default-attributes" json:"output-include-default-attributes"`
	DefaultErrorFormat             string   `xml:"http://marklogic.com/manage default-error-format" json:"default-error-format"`
	ErrorHandler                   string   `xml:"http://marklogic.com/manage error-handler" json:"error-handler"`
	URLRewriter                    string   `xml:"http://marklogic.com/manage url-rewriter" json:"url-rewriter"`
	RewriteResolvesGlobally        bool     `xml:"http://marklogic.com/manage rewrite-resolves-globally" json:"rewrite-resolves-globally"`
	SslCertificateTemplate         int      `xml:"http://marklogic.com/manage ssl-certificate-template" json:"ssl-certificate-template"`
	SslAllowSslv3                  bool     `xml:"http://marklogic.com/manage ssl-allow-sslv3" json:"ssl-allow-sslv3"`
	SslAllowTLS                    bool     `xml:"http://marklogic.com/manage ssl-allow-tls" json:"ssl-allow-tls"`
	SslHostname                    string   `xml:"http://marklogic.com/manage ssl-hostname" json:"ssl-hostname"`
	SslCiphers                     string   `xml:"http://marklogic.com/manage ssl-ciphers" json:"ssl-ciphers"`
	SslRequireClientCertificate    bool     `xml:"http://marklogic.com/manage ssl-require-client-certificate" json:"ssl-require-client-certificate"`
	ContentDatabase                string   `xml:"http://marklogic.com/manage content-database" json:"content-database"`
	ModulesDatabase                string   `xml:"http://marklogic.com/manage modules-database" json:"modules-database"`
	DefaultUser                    string   `xml:"http://marklogic.com/manage default-user" json:"default-user"`
}

ServerProperties represents the properties of a MarkLogic AppServer

type ServerPropertiesHandle

type ServerPropertiesHandle struct {
	*bytes.Buffer
	Format int
	// contains filtered or unexported fields
}

ServerPropertiesHandle is a handle that places the results into a ServerProperties struct

func (*ServerPropertiesHandle) AcceptResponse

func (sh *ServerPropertiesHandle) AcceptResponse(resp *http.Response) error

AcceptResponse handles an *http.Response

func (*ServerPropertiesHandle) Deserialize

func (sh *ServerPropertiesHandle) Deserialize(bytes []byte)

Deserialize returns Query struct that represents XML or JSON

func (*ServerPropertiesHandle) Deserialized

func (sh *ServerPropertiesHandle) Deserialized() interface{}

Deserialized returns ServerProperties as interface{}

func (*ServerPropertiesHandle) Get

Get returns ServerProperties

func (*ServerPropertiesHandle) GetFormat

func (sh *ServerPropertiesHandle) GetFormat() int

GetFormat returns int that represents XML or JSON

func (*ServerPropertiesHandle) Serialize

func (sh *ServerPropertiesHandle) Serialize(serverProperties interface{})

Serialize returns []byte of XML or JSON that represents the Query struct

func (*ServerPropertiesHandle) Serialized

func (sh *ServerPropertiesHandle) Serialized() string

Serialized returns string of XML or JSON

func (*ServerPropertiesHandle) SetTimestamp

func (sh *ServerPropertiesHandle) SetTimestamp(timestamp string)

SetTimestamp sets the timestamp

func (*ServerPropertiesHandle) Timestamp

func (sh *ServerPropertiesHandle) Timestamp() string

Timestamp retieves a timestamp

Jump to

Keyboard shortcuts

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