...

Text file src/github.com/opencontainers/runtime-spec/schema/defs.json

Documentation: github.com/opencontainers/runtime-spec/schema

     1{
     2    "description": "Definitions used throughout the Open Container Initiative Runtime Specification",
     3    "definitions": {
     4        "int8": {
     5            "type": "integer",
     6            "minimum": -128,
     7            "maximum": 127
     8        },
     9        "int16": {
    10            "type": "integer",
    11            "minimum": -32768,
    12            "maximum": 32767
    13        },
    14        "int32": {
    15            "type": "integer",
    16            "minimum": -2147483648,
    17            "maximum": 2147483647
    18        },
    19        "int64": {
    20            "type": "integer",
    21            "minimum": -9223372036854775808,
    22            "maximum": 9223372036854775807
    23        },
    24        "uint8": {
    25            "type": "integer",
    26            "minimum": 0,
    27            "maximum": 255
    28        },
    29        "uint16": {
    30            "type": "integer",
    31            "minimum": 0,
    32            "maximum": 65535
    33        },
    34        "uint32": {
    35            "type": "integer",
    36            "minimum": 0,
    37            "maximum": 4294967295
    38        },
    39        "uint64": {
    40            "type": "integer",
    41            "minimum": 0,
    42            "maximum": 18446744073709551615
    43        },
    44        "percent": {
    45            "type": "integer",
    46            "minimum": 0,
    47            "maximum": 100
    48        },
    49        "mapStringString": {
    50            "type": "object",
    51            "patternProperties": {
    52                ".{1,}": {
    53                    "type": "string"
    54                }
    55            }
    56        },
    57        "UID": {
    58            "$ref": "#/definitions/uint32"
    59        },
    60        "GID": {
    61            "$ref": "#/definitions/uint32"
    62        },
    63        "Umask": {
    64            "$ref": "#/definitions/uint32"
    65        },
    66        "ArrayOfGIDs": {
    67            "type": "array",
    68            "items": {
    69                "$ref": "#/definitions/GID"
    70            }
    71        },
    72        "ArrayOfStrings": {
    73            "type": "array",
    74            "items": {
    75                "type": "string"
    76            }
    77        },
    78        "FilePath": {
    79            "type": "string"
    80        },
    81        "Env": {
    82            "$ref": "#/definitions/ArrayOfStrings"
    83        },
    84        "Hook": {
    85            "type": "object",
    86            "properties": {
    87                "path": {
    88                    "$ref": "#/definitions/FilePath"
    89                },
    90                "args": {
    91                    "$ref": "#/definitions/ArrayOfStrings"
    92                },
    93                "env": {
    94                    "$ref": "#/definitions/Env"
    95                },
    96                "timeout": {
    97                    "type": "integer",
    98                    "minimum": 1
    99                }
   100            },
   101            "required": [
   102                "path"
   103            ]
   104        },
   105        "ArrayOfHooks": {
   106            "type": "array",
   107            "items": {
   108                "$ref": "#/definitions/Hook"
   109            }
   110        },
   111        "IDMapping": {
   112            "type": "object",
   113            "properties": {
   114                "containerID": {
   115                    "$ref": "#/definitions/uint32"
   116                },
   117                "hostID": {
   118                    "$ref": "#/definitions/uint32"
   119                },
   120                "size": {
   121                    "$ref": "#/definitions/uint32"
   122                }
   123            },
   124            "required": [
   125                "containerID",
   126                "hostID",
   127                "size"
   128            ]
   129        },
   130        "Mount": {
   131            "type": "object",
   132            "properties": {
   133                "source": {
   134                    "$ref": "#/definitions/FilePath"
   135                },
   136                "destination": {
   137                    "$ref": "#/definitions/FilePath"
   138                },
   139                "options": {
   140                    "$ref": "#/definitions/ArrayOfStrings"
   141                },
   142                "type": {
   143                    "type": "string"
   144                },
   145                "uidMappings": {
   146                    "type": "array",
   147                    "items": {
   148                        "$ref": "#/definitions/IDMapping"
   149                    }
   150                },
   151                "gidMappings": {
   152                    "type": "array",
   153                    "items": {
   154                        "$ref": "#/definitions/IDMapping"
   155                    }
   156                }
   157            },
   158            "required": [
   159                "destination"
   160            ]
   161        },
   162        "ociVersion": {
   163            "description": "The version of Open Container Initiative Runtime Specification that the document complies with",
   164            "type": "string"
   165        },
   166        "annotations": {
   167            "$ref": "#/definitions/mapStringString"
   168        }
   169    }
   170}

View as plain text