Documentation ¶
Overview ¶
Package docparser contains methods for parsing and encoding any type of document, i.e. association document, MDS/SSM messages, offline service documents, etc.
Index ¶
- func InitializeDocState(log log.T, documentType contracts.DocumentType, ...) (docState contracts.DocumentState, err error)
- func ParseDocument(log log.T, docContent *contracts.DocumentContent, ...) (pluginsInfo []contracts.PluginState, err error)
- func ParseDocumentNameAndVersion(name string) (docName, docVersion string)
- func ParseParameters(log log.T, params map[string][]*string, ...) map[string]interface{}
- type DocumentParserInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitializeDocState ¶
func InitializeDocState(log log.T, documentType contracts.DocumentType, docContent *contracts.DocumentContent, docInfo contracts.DocumentInfo, parserInfo DocumentParserInfo, params map[string]interface{}) (docState contracts.DocumentState, err error)
InitializeDocState is a method to obtain the state of the document. This method calls into ParseDocument to obtain the InstancePluginInformation
func ParseDocument ¶
func ParseDocument(log log.T, docContent *contracts.DocumentContent, parserInfo DocumentParserInfo, params map[string]interface{}) (pluginsInfo []contracts.PluginState, err error)
ParseDocument is a method used to parse documents that are not received by any service (MDS or State manager)
func ParseDocumentNameAndVersion ¶
ParseDocumentNameAndVersion parses the name and version from the document name
Types ¶
Click to show internal directories.
Click to hide internal directories.