-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resolve and download actions via launch service (#128)
- Loading branch information
1 parent
0be62de
commit 454b336
Showing
2 changed files
with
130 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package launch | ||
|
||
type ActionReferenceRequest struct { | ||
Action string `json:"action,omitempty"` | ||
Version string `json:"version,omitempty"` | ||
Path string `json:"path,omitempty"` | ||
} | ||
|
||
type ActionReferenceRequestList struct { | ||
Actions []ActionReferenceRequest `json:"actions,omitempty"` | ||
} | ||
|
||
type ActionDownloadInfoResponse struct { | ||
Authentication *ActionDownloadAuthenticationResponse `json:"authentication,omitempty"` | ||
Name string `json:"name,omitempty"` | ||
ResolvedName string `json:"resolved_name,omitempty"` | ||
ResolvedSha string `json:"resolved_sha,omitempty"` | ||
TarUrl string `json:"tar_url,omitempty"` | ||
Version string `json:"version,omitempty"` | ||
ZipUrl string `json:"zip_url,omitempty"` | ||
} | ||
|
||
type ActionDownloadAuthenticationResponse struct { | ||
ExpiresAt string `json:"expires_at,omitempty"` | ||
Token string `json:"token,omitempty"` | ||
} | ||
|
||
type ActionDownloadInfoResponseCollection struct { | ||
Actions map[string]ActionDownloadInfoResponse `json:"actions,omitempty"` | ||
} |