Skip to content

Releases: bedrocketjmd/go-unimatrix-sdk

1.2.1

08 May 17:29
Compare
Choose a tag to compare

Fixed

  • Removed implementation of global variables
  • Updated Resource.AttributeAsMap() method to return map[string]string correctly

1.1.0

05 Apr 14:52
Compare
Choose a tag to compare

Added

Struct: Response

  • Has functions:
    • Name() Resources' name.
    • TypeName() Resources' type name.
    • Ids() List of resource IDs.
    • Count() Number of resources returned.
    • UnlimitedCount() Total number of resources.
    • Offset() Number of resources response is offset by.
    • Resources() List of Resource structs. Same return value as previous operation.Read() function.

Controller examples

  • samples/assets_controller/main.go
  • samples/genres_controller/main.go
  • samples/stations_controller/main.go
  • samples/schedules_controller/main.go
  • samples/search_controller/main.go

Changed

Operation functions: Read(), Write(), WriteResource(),WriteResources(), Destroy(), DestroyByUUID(), DestroyByUUIDs():

  • Returns Response struct instead of []Resource structs.

Struct: Resource

  • Function names changed:
    • GetUUID() to UUID()
    • GetRawAttributes() to RawAttributes()
    • GetAttributes() to Attributes()
    • GetAttributeAsString() to AttributeAsString()
    • GetAttributeAsArray() to AttributeAsArray()
    • GetAttributeAsMap() to AttributeAsMap()
    • GetErrors() to Errors()
    • GetAssociations() to Associations()
    • GetAssociation() to Association()
    • GetRelationships() to Relationships() (artifact specific)
    • GetRelatedArtifacts() to RelatedArtifacts() (artifact specific)