You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/content-service-api/initializer.proto
+26
Original file line number
Diff line number
Diff line change
@@ -11,9 +11,35 @@ message WorkspaceInitializer {
11
11
GitInitializergit=2;
12
12
SnapshotInitializersnapshot=3;
13
13
PrebuildInitializerprebuild=4;
14
+
CompositeInitializercomposite=5;
15
+
FileDownloadInitializerdownload=6;
14
16
}
15
17
}
16
18
19
+
// CompositeInitializer uses a collection of initializer to produce workspace content.
20
+
// All initializer are executed in the order they're provided.
21
+
messageCompositeInitializer {
22
+
repeatedWorkspaceInitializerinitializer=1;
23
+
}
24
+
25
+
// FileDownloadInitializer downloads files and uses them as workspace content.
26
+
messageFileDownloadInitializer {
27
+
messageFileInfo {
28
+
stringurl=1;
29
+
// file_path is relative to the target_location, e.g. if target_location is in `/workspace/myrepo`
30
+
// a file_path of `foobar/file` would produce a file in `/workspace/myrepo/foobar/file`.
31
+
// file_path must include the filename. The FileDownloadInitializer will create any parent directories
32
+
// necessary to place the file.
33
+
stringfile_path=2;
34
+
// digest is a hash of the file content in the OCI digest format (see https://github.com/opencontainers/image-spec/blob/master/descriptor.md#digests).
35
+
// This information is used to compute subsequent
36
+
// content versions, and to validate the file content was downloaded correctly.
0 commit comments