@actions/artifact 0.5.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +8 -8
- package/README.md +213 -213
- package/lib/artifact-client.d.ts +10 -10
- package/lib/artifact-client.js +10 -10
- package/lib/internal/artifact-client.d.ts +41 -41
- package/lib/internal/artifact-client.js +164 -148
- package/lib/internal/artifact-client.js.map +1 -1
- package/lib/internal/config-variables.d.ts +11 -11
- package/lib/internal/config-variables.js +70 -70
- package/lib/internal/contracts.d.ts +67 -57
- package/lib/internal/contracts.js +2 -2
- package/lib/internal/download-http-client.d.ts +39 -39
- package/lib/internal/download-http-client.js +271 -274
- package/lib/internal/download-http-client.js.map +1 -1
- package/lib/internal/download-options.d.ts +7 -7
- package/lib/internal/download-options.js +2 -2
- package/lib/internal/download-response.d.ts +10 -10
- package/lib/internal/download-response.js +2 -2
- package/lib/internal/download-specification.d.ts +19 -19
- package/lib/internal/download-specification.js +60 -60
- package/lib/internal/http-manager.d.ts +12 -12
- package/lib/internal/http-manager.js +30 -30
- package/lib/internal/path-and-artifact-name-validation.d.ts +8 -0
- package/lib/internal/path-and-artifact-name-validation.js +66 -0
- package/lib/internal/path-and-artifact-name-validation.js.map +1 -0
- package/lib/internal/requestUtils.d.ts +3 -3
- package/lib/internal/requestUtils.js +74 -74
- package/lib/internal/status-reporter.d.ts +21 -22
- package/lib/internal/status-reporter.js +50 -63
- package/lib/internal/status-reporter.js.map +1 -1
- package/lib/internal/upload-gzip.d.ts +14 -14
- package/lib/internal/upload-gzip.js +107 -88
- package/lib/internal/upload-gzip.js.map +1 -1
- package/lib/internal/upload-http-client.d.ts +48 -48
- package/lib/internal/upload-http-client.js +393 -378
- package/lib/internal/upload-http-client.js.map +1 -1
- package/lib/internal/upload-options.d.ts +34 -34
- package/lib/internal/upload-options.js +2 -2
- package/lib/internal/upload-response.d.ts +19 -19
- package/lib/internal/upload-response.js +2 -2
- package/lib/internal/upload-specification.d.ts +11 -11
- package/lib/internal/upload-specification.js +87 -87
- package/lib/internal/upload-specification.js.map +1 -1
- package/lib/internal/utils.d.ts +66 -74
- package/lib/internal/utils.js +262 -303
- package/lib/internal/utils.js.map +1 -1
- package/package.json +49 -49
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=contracts.js.map
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import * as fs from 'fs';
|
|
3
|
-
import { ListArtifactsResponse, QueryArtifactResponse } from './contracts';
|
|
4
|
-
import { IHttpClientResponse } from '@actions/http-client/interfaces';
|
|
5
|
-
import { DownloadItem } from './download-specification';
|
|
6
|
-
export declare class DownloadHttpClient {
|
|
7
|
-
private downloadHttpManager;
|
|
8
|
-
private statusReporter;
|
|
9
|
-
constructor();
|
|
10
|
-
/**
|
|
11
|
-
* Gets a list of all artifacts that are in a specific container
|
|
12
|
-
*/
|
|
13
|
-
listArtifacts(): Promise<ListArtifactsResponse>;
|
|
14
|
-
/**
|
|
15
|
-
* Fetches a set of container items that describe the contents of an artifact
|
|
16
|
-
* @param artifactName the name of the artifact
|
|
17
|
-
* @param containerUrl the artifact container URL for the run
|
|
18
|
-
*/
|
|
19
|
-
getContainerItems(artifactName: string, containerUrl: string): Promise<QueryArtifactResponse>;
|
|
20
|
-
/**
|
|
21
|
-
* Concurrently downloads all the files that are part of an artifact
|
|
22
|
-
* @param downloadItems information about what items to download and where to save them
|
|
23
|
-
*/
|
|
24
|
-
downloadSingleArtifact(downloadItems: DownloadItem[]): Promise<void>;
|
|
25
|
-
/**
|
|
26
|
-
* Downloads an individual file
|
|
27
|
-
* @param httpClientIndex the index of the http client that is used to make all of the calls
|
|
28
|
-
* @param artifactLocation origin location where a file will be downloaded from
|
|
29
|
-
* @param downloadPath destination location for the file being downloaded
|
|
30
|
-
*/
|
|
31
|
-
private downloadIndividualFile;
|
|
32
|
-
/**
|
|
33
|
-
* Pipes the response from downloading an individual file to the appropriate destination stream while decoding gzip content if necessary
|
|
34
|
-
* @param response the http response received when downloading a file
|
|
35
|
-
* @param destinationStream the stream where the file should be written to
|
|
36
|
-
* @param isGzip a boolean denoting if the content is compressed using gzip and if we need to decode it
|
|
37
|
-
*/
|
|
38
|
-
pipeResponseToFile(response: IHttpClientResponse, destinationStream: fs.WriteStream, isGzip: boolean): Promise<void>;
|
|
39
|
-
}
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import * as fs from 'fs';
|
|
3
|
+
import { ListArtifactsResponse, QueryArtifactResponse } from './contracts';
|
|
4
|
+
import { IHttpClientResponse } from '@actions/http-client/interfaces';
|
|
5
|
+
import { DownloadItem } from './download-specification';
|
|
6
|
+
export declare class DownloadHttpClient {
|
|
7
|
+
private downloadHttpManager;
|
|
8
|
+
private statusReporter;
|
|
9
|
+
constructor();
|
|
10
|
+
/**
|
|
11
|
+
* Gets a list of all artifacts that are in a specific container
|
|
12
|
+
*/
|
|
13
|
+
listArtifacts(): Promise<ListArtifactsResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* Fetches a set of container items that describe the contents of an artifact
|
|
16
|
+
* @param artifactName the name of the artifact
|
|
17
|
+
* @param containerUrl the artifact container URL for the run
|
|
18
|
+
*/
|
|
19
|
+
getContainerItems(artifactName: string, containerUrl: string): Promise<QueryArtifactResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Concurrently downloads all the files that are part of an artifact
|
|
22
|
+
* @param downloadItems information about what items to download and where to save them
|
|
23
|
+
*/
|
|
24
|
+
downloadSingleArtifact(downloadItems: DownloadItem[]): Promise<void>;
|
|
25
|
+
/**
|
|
26
|
+
* Downloads an individual file
|
|
27
|
+
* @param httpClientIndex the index of the http client that is used to make all of the calls
|
|
28
|
+
* @param artifactLocation origin location where a file will be downloaded from
|
|
29
|
+
* @param downloadPath destination location for the file being downloaded
|
|
30
|
+
*/
|
|
31
|
+
private downloadIndividualFile;
|
|
32
|
+
/**
|
|
33
|
+
* Pipes the response from downloading an individual file to the appropriate destination stream while decoding gzip content if necessary
|
|
34
|
+
* @param response the http response received when downloading a file
|
|
35
|
+
* @param destinationStream the stream where the file should be written to
|
|
36
|
+
* @param isGzip a boolean denoting if the content is compressed using gzip and if we need to decode it
|
|
37
|
+
*/
|
|
38
|
+
pipeResponseToFile(response: IHttpClientResponse, destinationStream: fs.WriteStream, isGzip: boolean): Promise<void>;
|
|
39
|
+
}
|