Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the OCIManifest class.
 /// </summary>
 /// <param name="schemaVersion">Schema version</param>
 /// <param name="config">V2 image config descriptor</param>
 /// <param name="layers">List of V2 image layer information</param>
 public OCIManifest(int?schemaVersion = default(int?), string mediaType = default(string), Descriptor config = default(Descriptor), IList <Descriptor> layers = default(IList <Descriptor>), Annotations annotations = default(Annotations))
     : base(schemaVersion)
 {
     MediaType   = mediaType;
     Config      = config;
     Layers      = layers;
     Annotations = annotations;
     CustomInit();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the OCIIndex class.
 /// </summary>
 /// <param name="schemaVersion">Schema version</param>
 /// <param name="manifests">List of OCI image layer information</param>
 public OCIIndex(int?schemaVersion = default(int?), string mediaType = default(string), IList <ManifestListAttributes> manifests = default(IList <ManifestListAttributes>), Annotations annotations = default(Annotations))
     : base(schemaVersion)
 {
     MediaType   = mediaType;
     Manifests   = manifests;
     Annotations = annotations;
     CustomInit();
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the Descriptor class.
 /// </summary>
 /// <param name="mediaType">Layer media type</param>
 /// <param name="size">Layer size</param>
 /// <param name="digest">Layer digest</param>
 /// <param name="urls">Specifies a list of URIs from which this object
 /// may be downloaded.</param>
 public Descriptor(string mediaType = default(string), long?size = default(long?), string digest = default(string), IList <string> urls = default(IList <string>), Annotations annotations = default(Annotations))
 {
     MediaType   = mediaType;
     Size        = size;
     Digest      = digest;
     Urls        = urls;
     Annotations = annotations;
     CustomInit();
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the ManifestWrapper class.
 /// </summary>
 /// <param name="schemaVersion">Schema version</param>
 /// <param name="mediaType">Media type for this Manifest</param>
 /// <param name="manifests">(ManifestList, OCIIndex) List of V2 image
 /// layer information</param>
 /// <param name="config">(V2, OCI) Image config descriptor</param>
 /// <param name="layers">(V2, OCI) List of V2 image layer
 /// information</param>
 /// <param name="annotations">(OCI, OCIIndex) Additional
 /// metadata</param>
 /// <param name="architecture">(V1) CPU architecture</param>
 /// <param name="name">(V1) Image name</param>
 /// <param name="tag">(V1) Image tag</param>
 /// <param name="fsLayers">(V1) List of layer information</param>
 /// <param name="history">(V1) Image history</param>
 /// <param name="signatures">(V1) Image signature</param>
 public ManifestWrapper(int?schemaVersion = default(int?), string mediaType = default(string), IList <ManifestListAttributes> manifests = default(IList <ManifestListAttributes>), Descriptor config = default(Descriptor), IList <Descriptor> layers = default(IList <Descriptor>), Annotations annotations = default(Annotations), string architecture = default(string), string name = default(string), string tag = default(string), IList <FsLayer> fsLayers = default(IList <FsLayer>), IList <History> history = default(IList <History>), IList <ImageSignature> signatures = default(IList <ImageSignature>))
     : base(schemaVersion)
 {
     MediaType    = mediaType;
     Manifests    = manifests;
     Config       = config;
     Layers       = layers;
     Annotations  = annotations;
     Architecture = architecture;
     Name         = name;
     Tag          = tag;
     FsLayers     = fsLayers;
     History      = history;
     Signatures   = signatures;
     CustomInit();
 }