Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catalog subscription #511

Merged
merged 30 commits into from
Nov 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
76ac6f3
Improve task comments and error messages
Oct 13, 2022
1d9d14c
Add functions to handle lists of tasks
Oct 13, 2022
ced1d70
Add Mime constant for Media Item
Oct 13, 2022
3981aaa
Update ExternalCatalogSubscription struct
Oct 13, 2022
ca056ca
Add task monitoring function MinimalShowTask
Oct 13, 2022
7b40008
Add methods to retrieve and sync catalog items
Oct 13, 2022
ac9b612
Add functions to retrieve and sync catalog elements
Oct 13, 2022
92a39fc
Add functions to subscribe and sync admin catalogs
Oct 13, 2022
50045ec
Add complete catalog subscription test
Oct 13, 2022
1f9e83a
Fix minor staticcheck issues
Oct 13, 2022
c42f105
Add changelog item
Oct 13, 2022
006465a
Add method AdminCatalog.UpdateSubscriptionParams
Oct 17, 2022
20aaccc
WIP - Add task query elements
Oct 17, 2022
3025b70
Fix unreachable code
Oct 17, 2022
7a561c5
Merge branch 'main' into catalog-subscribe
Oct 19, 2022
27675a6
Update method AdminOrg.QueryVappTemplateList
Oct 19, 2022
c1d59dd
Merge branch 'main' into catalog-subscribe
Oct 19, 2022
fa70a63
Add task management functions
Oct 27, 2022
394a02b
Improve CreateCatalogFromSubscriptionAsync
Nov 3, 2022
00a3a9c
Update comments and remove obsolete code
Nov 3, 2022
42e250d
Add more checks to subscription operations
Nov 7, 2022
7cf70f7
Fix complete task detection
Nov 7, 2022
b6e6159
Merge branch 'main' into catalog-subscribe
Nov 7, 2022
9798fe6
Update Changelog entry
Nov 8, 2022
4071730
Upgrade Go requirement to 1.19
Nov 8, 2022
c6c5d4e
Update catalog_subscription_test comments
Nov 8, 2022
f73f519
Remove unused functions
Nov 8, 2022
01997b2
Add go versionrequirement to gosec action
Nov 8, 2022
aaaa65e
Make ConsumeTasks private
Nov 8, 2022
388043b
Address review requests
Nov 13, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .changes/v2.17.0/511-features.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
* Add `AdminOrg` methods `CreateCatalogFromSubscriptionAsync` and `CreateCatalogFromSubscription` to create a
subscribed catalog [GH-511]
* Add method `AdminCatalog.FullSubscriptionUrl` to return the subscription URL of a published catalog [GH-511]
* Add method `AdminCatalog.WaitForTasks` to wait for catalog tasks to complete [GH-511]
* Add method `AdminCatalog.UpdateSubscriptionParams` to modify the terms of an existing subscription [GH-511]
* Add methods `Catalog.QueryTaskList` and `AdminCatalog.QueryTaskList` to retrieve the tasks associated with a catalog [GH-511]
* Add function `IsValidUrl` to determine if a URL is valid [GH-511]
* Add `AdminCatalog` methods `Sync` and `LaunchSync` to synchronise a subscribed catalog [GH-511]
* Add method `AdminCatalog.GetCatalogHref` to retrieve the HREF of a regular catalog [GN-511]
* Add `AdminCatalog` methods `QueryCatalogItemList`, `QueryVappTemplateList`, and `QueryMediaList` to retrieve lists of
dependent items [GH-511]
* Add `AdminCatalog` methods `LaunchSynchronisationVappTemplates`, `LaunchSynchronisationAllVappTemplates`,
`LaunchSynchronisationMediaItems`, and `LaunchSynchronisationAllMediaItems` to start synchronisation of dependent
items [GH-511]
* Add `AdminCatalog` methods `GetCatalogItemByHref` and `QueryCatalogItem` to retrieve a single Catalog Item [GH-511]
* Add method `CatalogItem.LaunchSync` to start synchronisation of a catalog item [GH-511]
* Add method `CatalogItem.Refresh` to get fresh contents for a catalog item [GH-511]
* Add function `WaitResource` to wait for tasks associated to a gioven resource [GH-511]
* Add function `MinimalShowTask` to display task progress with minimal info [GH-511]
* Add functions `ResourceInProgress` and `ResourceComplete` to check on task activity for a given entity [GH-511]
* Add functions `SkimTasksList`, `SkimTasksListMonitor`, `WaitTaskListCompletion`, `WaitTaskListCompletionMonitor` to
process lists of tasks and lists of task IDs [GH-511]
* Add `Client` methods `GetTaskByHREF` and `GetTaskById` to retrieve individual tasks [GH-511]
* Implement `QueryItem` for `Task` and `AdminTask` (`GetHref`, `GetName`, `GetType`, `GetParentId`, `GetParentName`, `GetMetadataValue`, `GetDate`) [GH-511]
6 changes: 5 additions & 1 deletion .github/workflows/check-security.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
name: Run Gosec
on: [push, pull_request]
on: [ push, pull_request ]
jobs:
gosec:
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: '1.19'
- name: Checkout Source
uses: actions/checkout@v2
- name: gosec
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/vmware/go-vcloud-director/v2

go 1.18
go 1.19

require (
github.com/araddon/dateparse v0.0.0-20190622164848-0fb0a474d195
Expand Down
Loading