|
| 1 | +package exptypes |
| 2 | + |
| 3 | +// Options keys supported by the image exporter output. |
| 4 | +var ( |
| 5 | + // Name of the image. |
| 6 | + // Value: string |
| 7 | + OptKeyName = "name" |
| 8 | + |
| 9 | + // Push after creating image. |
| 10 | + // Value: bool <true|false> |
| 11 | + OptKeyPush = "push" |
| 12 | + |
| 13 | + // Push unnamed image. |
| 14 | + // Value: bool <true|false> |
| 15 | + OptKeyPushByDigest = "push-by-digest" |
| 16 | + |
| 17 | + // Allow pushing to insecure HTTP registry. |
| 18 | + // Value: bool <true|false> |
| 19 | + OptKeyInsecure = "registry.insecure" |
| 20 | + |
| 21 | + // Unpack image after it's created (containerd). |
| 22 | + // Value: bool <true|false> |
| 23 | + OptKeyUnpack = "unpack" |
| 24 | + |
| 25 | + // Fallback image name prefix if image name isn't provided. |
| 26 | + // If used, image will be named as <value>@<digest> |
| 27 | + // Value: string |
| 28 | + OptKeyDanglingPrefix = "dangling-name-prefix" |
| 29 | + |
| 30 | + // Creates additional image name with format <name>@<digest> |
| 31 | + // Value: bool <true|false> |
| 32 | + OptKeyNameCanonical = "name-canonical" |
| 33 | + |
| 34 | + // Store the resulting image along with all of the content it references. |
| 35 | + // Ignored if the worker doesn't have image store (e.g. OCI worker). |
| 36 | + // Value: bool <true|false> |
| 37 | + OptKeyStore = "store" |
| 38 | + |
| 39 | + // Use OCI mediatypes instead of Docker in JSON configs. |
| 40 | + // Value: bool <true|false> |
| 41 | + OptKeyOCITypes = "oci-mediatypes" |
| 42 | + |
| 43 | + // Force attestation to be attached. |
| 44 | + // Value: bool <true|false> |
| 45 | + OptKeyForceInlineAttestations = "attestation-inline" |
| 46 | + |
| 47 | + // Mark layers as non-distributable if they are found to use a |
| 48 | + // non-distributable media type. When this option is not set, the exporter |
| 49 | + // will change the media type of the layer to a distributable one. |
| 50 | + // Value: bool <true|false> |
| 51 | + OptKeyPreferNondistLayers = "prefer-nondist-layers" |
| 52 | + |
| 53 | + // Clamp produced timestamps. For more information see the |
| 54 | + // SOURCE_DATE_EPOCH specification. |
| 55 | + // Value: int (number of seconds since Unix epoch) |
| 56 | + OptKeySourceDateEpoch = "source-date-epoch" |
| 57 | + |
| 58 | + // Compression type for newly created and cached layers. |
| 59 | + // estargz should be used with OptKeyOCITypes set to true. |
| 60 | + // Value: string <uncompressed|gzip|estargz|zstd> |
| 61 | + OptKeyLayerCompression = "compression" |
| 62 | + |
| 63 | + // Force compression on all (including existing) layers. |
| 64 | + // Value: bool <true|false> |
| 65 | + OptKeyForceCompression = "force-compression" |
| 66 | + |
| 67 | + // Compression level |
| 68 | + // Value: int (0-9) for gzip and estargz |
| 69 | + // Value: int (0-22) for zstd |
| 70 | + OptKeyCompressionLevel = "compression-level" |
| 71 | +) |
0 commit comments