-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathstructs.go
38 lines (32 loc) · 965 Bytes
/
structs.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package prometheus
/* License: GPLv3
Authors:
Mirko Brombin <mirko@fabricators.ltd>
Vanilla OS Contributors <https://github.com/vanilla-os/>
Copyright: 2023
Description:
Prometheus is a simple and accessible library for pulling and mounting
container images. It is designed to be used as a dependency in ABRoot
and Albius.
*/
import cstorage "github.com/containers/storage"
type Prometheus struct {
Store cstorage.Store
Config PrometheusConfig
}
type OciManifest struct {
SchemaVersion int `json:"schemaVersion"`
MediaType string `json:"mediaType"`
Config OciManifestConfig `json:"config"`
Layers []OciManifestConfig `json:"layers"`
}
type OciManifestConfig struct {
MediaType string `json:"mediaType"`
Size int `json:"size"`
Digest string `json:"digest"`
}
type PrometheusConfig struct {
Root string
GraphDriverName string
MaxParallelDownloads uint
}