Remove install instructions from an internal PS repository (#10)
* Addresses issue #1 removing the Install Instructions from the README.md. Once the initial release is published on the PowerShell Gallery the README.md will be updated with the install from PowerShell Gallery guide. * Fixes minor typos in the README.md Signed-off-by: Dimitar Milov <dmilov@vmware.com>
This commit is contained in:
		
							parent
							
								
									b2afcf89bd
								
							
						
					
					
						commit
						62f14b6b1b
					
				
							
								
								
									
										34
									
								
								README.md
								
								
								
								
							
							
						
						
									
										34
									
								
								README.md
								
								
								
								
							| 
						 | 
				
			
			@ -13,8 +13,8 @@ The module contains functions to
 | 
			
		|||
- Create CloudEvent objects
 | 
			
		||||
- Add data to a CloudEvent object
 | 
			
		||||
- Read data from a CloudEvent object
 | 
			
		||||
- Convert an CloudEvent object to an HTTP Message
 | 
			
		||||
- Convert an HTTP Message to an CloudEvent object
 | 
			
		||||
- Convert a CloudEvent object to an HTTP Message
 | 
			
		||||
- Convert an HTTP Message to a CloudEvent object
 | 
			
		||||
 | 
			
		||||
## Producer
 | 
			
		||||
### Create a CloudEvent object
 | 
			
		||||
| 
						 | 
				
			
			@ -91,7 +91,7 @@ $hashtableData = Read-CloudEventJsonData -CloudEvent $cloudEvent
 | 
			
		|||
$hashtableData = Read-CloudEventXmlData -CloudEvent $cloudEvent -ConvertMode SkipAttributes
 | 
			
		||||
```
 | 
			
		||||
The `ConvertMode` parameter specifies how the XML to be represented in the result hashtable<br/>
 | 
			
		||||
`SkipAttributes` - Skips attributes of the XML elements. XmlElement is represented as a Key-Value pair where key is the xml element name, and the value is the xml element inner text<br/>
 | 
			
		||||
`SkipAttributes` - Skips attributes of the XML elements. XmlElement is a Key-Value pair where Key is the Xml element name, and the value is the Xml element inner text<br/>
 | 
			
		||||
Example:
 | 
			
		||||
```xml
 | 
			
		||||
<key att='true'>value1</key>
 | 
			
		||||
| 
						 | 
				
			
			@ -100,8 +100,8 @@ is converted to
 | 
			
		|||
```powershell
 | 
			
		||||
@{'key' = 'value-1'}
 | 
			
		||||
```
 | 
			
		||||
`AlwaysAttrValue` - Each element is represented as a hashtable with two keys<br/>
 | 
			
		||||
        'Attributes' - key-value pair of the cml element attributes if any, otherwise null<br/>
 | 
			
		||||
`AlwaysAttrValue` - Each element is a HashTable with two keys<br/>
 | 
			
		||||
        'Attributes' - key-value pair of the Xml element attributes if any, otherwise null<br/>
 | 
			
		||||
        'Value' - string value represinting the xml element inner text<br/>
 | 
			
		||||
Example:
 | 
			
		||||
```xml
 | 
			
		||||
| 
						 | 
				
			
			@ -187,27 +187,3 @@ Discovery finished in 176ms.
 | 
			
		|||
Tests completed in 2.56s
 | 
			
		||||
Tests Passed: 5, Failed: 0, Skipped: 0 NotRun: 0
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
# Install **CloudEvents.Sdk** Module
 | 
			
		||||
 | 
			
		||||
```powershell
 | 
			
		||||
$vmwareArtifactoryRepo = 'https://build-artifactory.eng.vmware.com/artifactory/api/nuget/powercli-nuget-local/'
 | 
			
		||||
 | 
			
		||||
Register-PSRepository -Name 'Artifactory' -SourceLocation $vmwareArtifactoryRepo -PublishLocation $vmwareArtifactoryRepo -InstallationPolicy Trusted
 | 
			
		||||
 | 
			
		||||
Install-Module CloudEvents.Sdk -Repository Artifactory
 | 
			
		||||
Import-Module CloudEvents.Sdk
 | 
			
		||||
Get-Command -Module CloudEvents.Sdk
 | 
			
		||||
 | 
			
		||||
ommandType     Name                                               Version    Source
 | 
			
		||||
-----------     ----                                               -------    ------
 | 
			
		||||
Function        Add-CloudEventData                                 0.1.2      CloudEvents.Sdk
 | 
			
		||||
Function        Add-CloudEventJsonData                             0.1.2      CloudEvents.Sdk
 | 
			
		||||
Function        Add-CloudEventXmlData                              0.1.2      CloudEvents.Sdk
 | 
			
		||||
Function        ConvertFrom-HttpMessage                            0.1.2      CloudEvents.Sdk
 | 
			
		||||
Function        ConvertTo-HttpMessage                              0.1.2      CloudEvents.Sdk
 | 
			
		||||
Function        New-CloudEvent                                     0.1.2      CloudEvents.Sdk
 | 
			
		||||
Function        Read-CloudEventData                                0.1.2      CloudEvents.Sdk
 | 
			
		||||
Function        Read-CloudEventJsonData                            0.1.2      CloudEvents.Sdk
 | 
			
		||||
Function        Read-CloudEventXmlData                             0.1.2      CloudEvents.Sdk
 | 
			
		||||
```
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue