diff --git a/cmd/definitions/bindata/bindata.go b/cmd/definitions/bindata/bindata.go index 8520615b0..2de1c8b5f 100644 --- a/cmd/definitions/bindata/bindata.go +++ b/cmd/definitions/bindata/bindata.go @@ -4,7 +4,7 @@ // definitions/fields.toml (603B) // definitions/info_object_meta.toml (932B) // definitions/info_storage_meta.toml (1.139kB) -// definitions/operations.toml (5.014kB) +// definitions/operations.toml (7.716kB) // definitions/pairs.toml (1.416kB) // cmd/definitions/tmpl/function.tmpl (567B) // cmd/definitions/tmpl/info.tmpl (1.702kB) @@ -162,7 +162,7 @@ func definitionsInfo_storage_metaToml() (*asset, error) { return a, nil } -var _definitionsOperationsToml = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x94\x58\x4d\x6f\xdb\x38\x10\xbd\xeb\x57\x0c\xd4\x43\x2f\xa9\xff\x41\x0f\x6d\xd3\xc5\x2e\xb0\x4d\x8a\x6d\x7b\x2a\x82\x94\xa6\x46\xd6\x6c\x28\x92\x20\x29\xbb\xde\x5f\xbf\x18\x92\xb6\xf5\x69\x2b\x97\xc2\x91\x66\xe6\x3d\xce\x3c\x3e\x52\xfd\x29\xac\x45\x5d\xa1\x7b\x2a\x2a\xf4\xd2\x91\x0d\x64\x34\xbc\x87\x92\x3c\x84\x06\x81\x74\x40\x57\x0b\x89\x50\x1b\x07\x1f\x62\x34\x38\x54\x22\x60\x05\xc6\xa2\x13\x9c\xe0\x37\x65\x51\x9c\x6b\x6d\x8c\xdd\x48\x87\x22\xe0\x73\x7a\x34\x29\x7e\x20\xa5\x20\x85\x80\xd0\x90\xa2\xc0\x6c\xff\x45\x19\x36\x65\x61\x85\x13\xad\x87\xf7\xf0\xb3\xb4\x22\x34\xe5\x53\xe1\xd0\x77\x2a\xa4\x47\xa6\x7c\x1a\x81\x1d\x1c\xdd\xc0\xca\x08\xd2\xe8\x80\x3a\x40\x30\x37\x60\x4d\x79\x07\xa5\xe3\x7f\x3c\xfd\x87\x23\x02\xba\x7c\x2a\x52\xd2\x73\x6b\x2a\x64\x90\x54\x6a\xd2\x04\xd3\xb6\x14\xae\x37\x21\x86\x80\xd0\x15\xd4\xa4\xc9\x37\x3d\x62\xd6\x19\x89\xde\x8f\x99\x5d\x01\xdf\x2a\x23\x5f\xd6\x0e\xf3\x23\x07\x2f\xcd\x32\x57\xea\x8d\x32\x3e\xb9\x3e\x49\xd0\x78\x80\x18\xf7\xba\x59\xf6\xc0\xd2\x28\xaf\x60\xc5\x80\xc1\x20\x13\xe2\xd5\xf9\xdd\x41\xb9\xa5\xea\xf6\x18\x63\xa5\xf1\xf2\x4d\xbb\x25\x7d\x7d\xfd\x29\x24\x11\xf1\xdc\xe6\xa8\xaf\x45\x61\x6d\xa9\xf2\xeb\xc0\x15\xf9\x70\x0d\x99\xdf\x9f\x60\xb7\xa8\x8c\xde\x71\x4b\x42\x43\x7e\x01\x7d\xd8\x82\x2d\x5d\xa1\x21\x8d\xa5\xb5\x5a\xfa\x64\xec\x71\x73\x49\x4a\x7d\xb3\xc7\xa5\x76\xd9\x23\xf7\xe7\x31\x02\x83\x71\xd0\x76\x2a\x90\x55\x98\x49\x03\xe9\x88\xe1\xd1\xed\x49\xe2\x70\x0d\xde\x49\xee\x61\xe5\x43\xd4\x4e\x45\x6e\x2d\xc9\x7b\x72\x28\x83\x71\x89\x69\x4c\xec\xe9\xbb\xa2\x69\x99\xa9\xba\x2b\x72\xaf\xd3\x76\x8d\x41\x36\x6b\x19\xfe\xc1\xc1\x91\x5d\x4e\x63\x7e\xf1\xe7\x3c\xb5\xf8\x0a\x6a\x67\x5a\x10\xb0\xa3\x3d\x6a\xe8\x9c\x62\x09\x30\x9f\x19\x86\x77\x50\x76\x4e\x45\x62\xad\xd9\xaf\xa5\xf5\xc5\xec\x31\xb2\x8a\x39\xcc\x89\x7f\xcc\x53\xe2\x37\x17\xf1\xbf\x66\x92\x49\x04\xc2\x85\xd5\xb4\x4e\x09\x4b\x26\xd6\xab\xd8\x1b\xf4\xf9\xe9\x8a\x71\x9f\x63\x57\x4e\x7b\x84\x98\xdc\xec\x06\xe0\x8c\xa3\x2d\xc0\x4e\x5d\x8d\x74\x85\xbf\x27\xbe\x76\x07\x25\x27\x4f\xf7\x76\x7c\x3a\xd3\x18\xd3\x5a\x85\x2b\x5a\x93\xe3\xfa\x0c\xa1\xb3\xca\x88\x2a\x9e\x60\xd2\x68\x1f\x5c\x27\xc3\x65\x77\xcf\x2c\x80\xb3\x66\xec\x6f\x81\x5b\x74\xc0\x1b\xbc\xa2\x0b\xc6\xb2\x63\x13\x5c\x6c\xe4\xb0\x65\x76\xc6\x07\x4f\x7c\xac\xd8\xad\x15\xe4\x57\xb1\xc3\x19\x2d\xc2\xa1\x21\xd9\x80\xef\xac\x35\x2c\x56\xa1\x2b\xd3\xa6\xb1\x6f\xce\x08\x3d\x81\xf2\xdf\x2b\xb4\xc9\x61\xaf\xf3\xa2\x33\x50\xd2\xe5\x32\xce\x44\x92\xde\xa2\xa4\x9a\x24\x98\xba\xf6\x78\x53\x96\x29\xea\xf6\x79\xcb\x0c\xb8\x03\x0e\xc5\x7a\x93\xfc\x87\x83\x37\xbd\x34\x5e\x51\xfc\x39\xbf\x18\xeb\xcc\x9e\x2a\xee\xda\x41\x1c\xef\xf2\x30\xa4\xd0\x10\x73\x22\xc0\xca\x2e\x9e\xac\x33\xbb\xd9\x94\x2f\x57\x6d\x05\xe9\x20\x48\xf7\xb6\x88\x0f\xc6\xf1\xb0\x72\x5e\x32\xa7\x53\x91\xcb\xe0\x57\xcc\x3c\x57\x72\x40\xda\x07\xa1\xc7\x8e\xaa\x45\x3b\xbe\xac\x72\x06\x0e\x58\x33\x60\x85\xbc\x8f\xe7\x01\xd3\x3b\x10\x2b\xc1\x86\x85\x77\xb8\xb0\x47\x77\x18\x40\xc0\x5e\x28\xaa\xa6\x85\xe3\x5c\x67\xcf\x88\xd5\x2b\x62\x0f\xb8\xe2\x0e\x42\xa9\x29\xac\x87\x8e\xaf\xea\xc9\x2a\x2e\xf0\x43\x30\x4a\x50\x39\x77\x9d\x44\x47\x03\x4f\xf3\xce\x15\xfa\xed\x9f\xca\xcd\x0a\x72\x79\x57\x5d\xb6\x4a\x39\x41\x2d\xcb\x62\x30\xab\xf3\x79\x1b\xef\x02\x27\xd8\xa2\x78\xf3\x06\x3e\x62\x23\xf6\x64\x5c\x51\xbc\x83\xfb\x14\x6e\xb4\x3a\x9e\x52\x8d\xc6\xe8\xdd\xf1\x19\xff\x91\xf7\x42\x01\xf0\x0e\xbe\xa5\x42\x70\xff\xf8\xf0\xf6\x3b\x3c\x7c\xfe\x7c\x1f\xcd\xe0\x64\x64\x98\x0e\x7b\xa5\x52\xf4\x0f\x8f\xee\x1c\x44\x7c\x54\xb4\x6c\x1f\x29\xec\x99\x27\xb0\x3d\x72\xb3\x5a\x8f\xaa\xde\x5c\xe8\x90\x07\xaa\xb0\xb5\x86\xdd\x26\x03\x77\x92\x3f\x7d\xea\xee\xb2\x44\x75\x10\x47\x0f\x0e\x43\xe7\x34\x68\x52\x80\xce\x19\x97\xc2\x73\xa1\x6f\x7f\x3e\xfe\xf8\xfb\x1e\x34\xee\xd1\x9d\x22\x7f\xa5\x73\xe8\xc1\x84\xcf\xbf\xc9\x87\x5f\xfd\xf8\xe1\xb2\x64\x83\xf2\xa5\x67\x07\x80\x9c\xc0\xd7\x53\x6d\xc2\xa6\xe0\x9e\x0f\xa7\xd8\x62\x10\x95\x08\x62\x5e\x76\x19\x5f\x76\xce\x71\x17\xce\xe2\x3b\x65\x8d\x84\xc6\x8f\xcb\xa7\x42\x19\x29\x14\xbc\x87\xe0\x3a\x1c\xc1\x2d\x2b\x3c\x43\x25\xa1\x5f\xbc\x7a\xe1\x0e\xd8\x17\x59\x3a\x5d\x93\xc4\x06\xe7\xc5\x50\xf5\xd9\x61\x17\xbe\x61\xf9\x4d\xec\x5b\x4d\x0a\xdf\x7a\xc8\xab\x9b\xb9\x7b\x1e\x06\xe0\xa3\xd3\x82\xaf\x33\xe6\x59\x0a\xa5\xb6\x42\xbe\xcc\x1c\x1e\x43\x3e\x27\xcf\xbc\x7d\xf0\x2d\xed\xa9\x41\xaf\x17\x36\xd8\xc0\x7d\xb3\x2e\x0e\x14\x1a\xd3\xf1\x25\xe7\x08\xc2\x12\xc8\xb8\x03\xc6\x7b\xed\x53\xca\xcc\x9a\x7c\x78\xfc\x0e\x9e\x3f\xea\x39\xe9\xc3\xd7\xbf\x72\xd2\x38\x4c\x48\x89\x36\xe4\xbb\xd3\x17\x3e\x25\x99\x3c\x88\xd3\xe7\x1c\x30\xf5\x39\x2d\xfa\x20\xc2\x6b\xfc\x64\xdc\xa3\x85\xe5\x73\x59\x10\x51\x49\xbc\x45\xd8\xc4\x49\xd7\x06\x4c\xdd\xfb\xc0\x9d\x2c\xfd\x1b\x67\xdd\x5c\x51\x43\x3a\xf8\xa1\xcf\x7c\x8a\x29\x8d\xd8\x23\x54\x54\xd7\x18\x77\xce\xd9\x49\xf2\x6d\x8a\x0d\xf6\xf2\x76\xd0\x97\x7e\xad\x8c\x9f\x76\x35\xd5\x79\x93\x90\xde\xf5\xb9\xf0\x15\x51\x04\xd9\xcc\x74\x34\xde\x81\xae\x5d\x8f\x58\xe6\xf9\x5b\x3f\x2a\x7f\x5e\xf2\xfd\xff\x44\xba\x0c\xe3\xba\xd0\xff\x0f\x00\x00\xff\xff\x9d\xce\x3a\x7a\x96\x13\x00\x00") +var _definitionsOperationsToml = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\x59\xcd\x72\xdb\xb0\x11\xbe\xf3\x29\x76\x98\x83\x2f\xb6\x26\x2f\x90\x43\x62\xbb\xd3\xcc\x34\x76\xa6\x49\xa6\x07\x8f\xc7\x86\xc0\xa5\x88\x06\x04\x18\x00\x94\xa2\x3e\x7d\x67\x01\xf0\x9f\x94\x68\xc7\xed\xa5\xbd\x78\x64\x0a\xfb\x83\xc5\xb7\xdf\x7e\xa0\x1e\x58\x55\xa1\xca\xd0\x3c\x26\x19\x5a\x6e\x44\xe5\x84\x56\xf0\x01\x52\x61\xc1\x15\x08\x42\x39\x34\x39\xe3\x08\xb9\x36\xf0\xd1\xaf\x06\x83\x92\x39\xcc\x40\x57\x68\x18\x19\xd8\x4d\x9a\x24\xad\xaf\x8d\xae\x36\xdc\x20\x73\xf8\x14\x1e\x3d\x26\x15\x33\xac\xb4\xf0\x01\x1e\xd2\x8a\xb9\x22\x7d\x4c\x0c\xda\x5a\xba\xf0\x48\xa7\x93\xf0\x69\x9a\x1c\x84\x94\x10\xfc\x00\x53\x10\x5c\x81\xde\xfe\x13\xb9\xdb\x24\xc9\xbb\x77\xf0\x09\x0b\xb6\x17\xda\x24\xc9\x15\x5c\xfb\x85\x31\xc1\x6f\x7f\xbd\xff\xf1\xb7\x9b\x89\x31\xdb\x4a\x8c\x0e\xe0\x20\x5c\x01\x95\xb6\xc2\x47\x7c\x0f\x4c\x65\x60\xc5\xbf\x10\xde\x6f\x16\xbc\xdd\xdd\x7f\x07\x83\xae\x36\x8a\x3c\xa2\x31\xda\x00\x0b\x55\x8a\x3e\xf1\xb7\xb0\x6e\x93\x00\x5c\xc1\x37\x34\x7b\xc1\xb1\xcd\xa4\x40\xfe\xd3\xc7\xc8\x50\xa2\xc3\xbe\x95\xc8\x83\xa1\xdd\x24\xb4\xed\x61\x1d\x0f\x46\xf4\xca\x38\x2a\x92\xaf\x50\xac\x0b\xd7\xca\xa1\x72\xe0\xf4\xb4\x58\x69\xbf\xfe\x3a\xbd\x84\xd4\xd0\x1f\xda\xee\xe8\x24\x54\xfa\x98\x04\xa3\xa7\x52\x67\x48\x41\x82\xab\xc9\xf9\xea\xb2\x14\xee\x64\x62\x61\x89\xdf\x74\x2e\x94\xb0\x45\x2f\xb1\xca\x68\x8e\xd6\x8e\x33\x3b\x11\x7c\x2b\x35\xff\xb9\x16\xa7\x9f\x68\xf1\x12\x4c\xa3\xa7\x1e\x4a\xfd\x93\x37\x00\x29\x28\x3c\x80\x77\x36\x0f\xd3\x06\x57\x21\xbd\x3f\x81\x95\x2b\x98\x83\x82\x59\x50\xcc\x89\x3d\x82\xad\xab\x4a\x1b\xe7\x37\xff\xac\xf7\x68\x3c\x6e\x9e\x21\xd3\x68\xd5\x85\x83\xbb\xdb\xdb\x1b\x82\x46\xc0\xe1\xd8\xb7\x05\x6d\x40\xe9\xb9\x18\x8d\x83\x82\xed\xf1\x5c\xb0\xd7\x60\xbd\x77\x18\x01\xea\xf1\x2c\xe6\x00\xe5\x17\x0c\x80\x1e\x8a\x7d\x12\xdf\x97\x90\x6e\x45\x76\x1e\xe6\xde\xd3\x18\x1e\xba\xdc\x0a\x75\x32\xa7\xb8\x24\x24\x62\x09\x86\xbe\xff\x16\x1b\x6f\x2b\x32\xbb\x2e\xb8\x14\xd6\x9d\x8a\x4c\xdf\x37\x61\xb7\x28\xb5\xda\x51\x49\x5c\x21\xec\x42\xf4\x61\x09\xb6\xe2\x44\x1a\x5c\x57\x62\x6d\xaf\x5d\xeb\xea\xb8\xe9\x8c\x42\xdd\xaa\xe3\xa0\x9d\xac\xe1\xb4\xf9\xcc\xba\x13\x4d\xa4\xab\x23\x95\xee\x3e\x20\x45\x1b\x28\x6b\xe9\x44\xd5\x51\xb6\x50\x3e\xbc\x0d\xf8\x9c\x19\x01\xe4\x41\x2b\x79\x0c\xbe\xb4\x42\x8f\x42\xff\x84\xfe\x69\x7a\xb2\x0f\xf2\x9b\xfb\xbb\x8b\xef\x6d\x7b\x34\xc8\x0e\xb9\x80\xd2\xea\x0a\xcb\xca\x1d\x21\x13\x06\xb9\xd3\xe6\x48\x79\xf9\x6f\x73\x21\xd1\x82\x41\x5e\x1b\x2b\xf6\x28\x8f\xc1\xef\x0f\x8b\xa6\x75\x27\xca\x4a\x62\x49\x60\x3d\xe1\x90\x79\xf2\xae\x8e\x7d\x5f\xb0\x3d\xd2\x56\x4b\x8b\x32\x0f\x7e\xaf\x83\x03\x8a\x1a\x90\xdf\x39\x88\x6d\x17\x39\xe4\xf9\xd6\x98\x50\xc2\x2f\x3a\xc3\xcf\x6a\xcf\xa4\xc8\x9e\x37\x4d\x79\x4e\x93\x4e\x66\xdd\x90\x18\xde\x9a\x75\x26\x01\xfe\xf3\xcc\xd3\x0b\xd9\x63\x9f\x2b\xf8\x08\xb6\xe6\x34\x84\xf2\x3a\x82\x4f\x57\x61\x4c\x80\x2d\x74\x2d\x33\xd8\x12\xd9\xd0\x11\x3a\xbc\x84\x43\x21\x78\x01\x25\x32\x65\x47\x6e\x2f\x6c\xcb\x49\x14\xba\x44\xc7\x32\xe6\x58\xcf\x8b\x47\x2d\x2b\x91\x4a\x6c\x0d\x6f\x81\x18\x28\x90\x4e\x72\x65\xaf\xdd\x34\x87\xbe\x69\x0d\x7b\x63\x2c\x13\x53\x37\xd3\xf9\x94\x09\x33\x4b\x10\x0b\x23\x2f\x79\xc8\xd1\xf1\x62\x6d\x86\x7f\xa1\xc5\x3e\xbb\x68\x46\xf9\xf9\x8f\xd3\xf9\x7a\x09\x69\x6d\xe4\x32\x23\x78\x33\xc8\x8d\x2e\x81\xc1\x4e\xec\x51\x41\x6d\x24\x01\x8a\xcc\xa7\xfd\xef\x63\xbf\x70\xac\x4e\xa1\x10\xa2\xb6\x9a\x61\x15\x18\x5e\x03\x04\x83\xbf\x6a\x61\x84\xda\x85\x1d\xd2\x57\xb5\x91\x0d\x28\x4a\x42\xf7\xba\x92\x7f\xd1\x7b\xdc\xb4\x36\x54\x6f\xfa\xf0\x62\xfe\x25\xa3\x6e\x74\x9d\x25\x5b\x8a\x1a\xa8\xb5\x0c\x9f\x5e\x4d\xb6\x21\xf0\x1c\x37\x9e\xa4\xd4\x65\xb3\x29\x7b\x7e\x09\x6b\xff\x84\x3d\xbd\x8b\xff\xb3\xe7\x6c\xcb\x04\x04\xb4\x1d\x13\xfd\xfd\x97\xe8\x33\xa8\x04\x66\xdc\xea\x7e\x69\x0c\x96\x2e\x08\x3d\x8f\x3d\x76\x6d\x9f\xbe\xd5\x45\xa1\x75\xb8\x74\x99\xed\x12\x7d\x31\xa7\x4d\x4a\xd3\x09\xec\xde\x3e\x56\x8a\xec\x2e\xd1\x33\x42\x5b\xa8\x0c\x7f\x4f\xa4\xf6\x25\xa4\x64\x3c\x95\x9b\xfe\xe9\x4c\xbd\x23\x68\xce\x65\xda\xac\xeb\x67\x08\x75\x25\x35\xcb\xa2\xa8\x52\xd6\x99\x9a\xbb\x4e\x55\xce\x6c\x80\xac\x66\x14\xf9\x42\x6e\x5e\x94\x9f\xc9\xcb\x0b\x73\xef\x76\xac\xcb\x17\x0b\x39\x2c\x59\x35\x23\xcd\x9b\x7c\x2a\xb6\x5b\x8b\xf3\xaf\x6c\x87\x33\x10\x8f\xad\xd8\x90\x81\x61\x2a\xd3\x65\x38\xf6\x4d\x1b\xa1\x87\x7b\xfa\xff\xad\x20\x4f\xbe\xce\xbc\xc1\xf1\x59\xbf\x12\xef\x6d\xea\x01\xe9\x21\xf3\x55\x20\xb7\x15\x72\x91\x0b\x0e\x3a\xcf\x2d\x9e\x05\x7a\x58\x75\xfe\x52\x49\x19\x50\x62\x06\xd9\x7a\x09\xf5\x77\x5a\xbc\xe9\x99\xd1\x8e\xfc\xc7\xf9\xcd\x54\x46\xef\x45\x46\x25\x3e\xb0\x63\xc3\xb4\x9c\x29\xf0\x36\xbd\x6a\x9d\xd5\x7b\x41\x8d\x25\x0f\x71\xe8\x4f\xf3\x25\xaf\x25\x13\xca\x31\xa1\x7a\x4d\x67\x9d\x36\x74\x6c\xd1\x2e\xb0\x68\xe3\xa4\x83\xd2\x0a\x71\x1a\x3d\x19\x10\xca\x3a\xa6\x38\x0e\x73\x56\xac\x1c\xbf\xb1\x22\x0b\x1c\x64\x4d\x01\xc3\x04\x9b\x0f\x18\xa7\x1b\x5b\x19\x6c\xe8\x78\x87\x0b\x5d\xbf\x43\x07\x0c\xbc\x5e\x98\x3a\xf6\xe7\xda\x48\xa9\xd7\xed\x88\x58\xe5\x04\xdf\x30\x29\xa7\x61\x2d\xd4\x2a\x43\x13\xc8\xa7\x0b\x3f\x0c\x26\x42\xa8\x68\xbb\x0e\xa2\xa3\x03\x0f\xe7\x1d\x3d\xf4\xcb\x3f\x85\x5b\xc5\x84\x89\x5d\xd5\xb5\xca\x32\x7b\x34\x67\xd5\xca\x52\xaf\x95\x17\x45\xe9\x4d\x58\xee\x45\x68\xd6\x7c\x7e\xb5\x30\x35\x18\x34\xa6\x94\x27\x85\x68\x58\xf6\x44\x27\x30\x10\x9e\x6d\x3a\xc2\x82\xc8\xb0\xac\x34\xb1\x4d\x0c\xdc\x89\xa7\x66\x8b\xf2\xc0\x8e\xb6\xa1\x3b\x25\x64\xe0\xbb\xb0\x3c\x3a\x8a\xb4\xa8\x70\x8f\xa6\x55\xac\x61\xb2\xdd\x69\x77\x4b\x5c\xf8\xdc\x5f\x3f\xdc\xd6\xfc\xbb\xbf\x56\x42\x06\x0a\xed\x9f\x62\x23\xc5\xe6\x61\x17\xe3\xf3\xda\x18\xaa\x42\x0b\xbe\xc6\x6a\x04\x34\x7a\x9c\x3e\x26\x52\x73\x26\xe1\x03\x38\x53\xe3\x28\xdc\x32\xc2\x63\xa8\x00\xf4\x8e\xab\xfd\x2d\x70\x8e\xd3\x3a\x90\x85\x79\x1d\x20\x36\x18\x58\x43\xd4\x47\x86\x5d\x78\x91\x4d\xdf\xf8\xba\xd1\xfd\xe1\xc2\x42\xdc\xdd\xcc\x75\xf6\x30\x08\x3e\x9a\x16\x24\x90\xf4\x13\x67\x52\x6e\x19\xff\x39\x33\x3c\x86\xf9\x34\x9c\x79\x7e\xf2\x2e\xf5\xd4\xa0\xd6\x6b\xc6\x73\xef\xa7\x11\x5d\x93\x6c\x3a\x02\xab\x04\x70\xdf\x01\xf3\xe3\xba\x3f\xaa\x2d\xaa\xcc\x1b\x7d\xfc\xfa\x39\x1a\x8d\x97\x31\xce\xb1\x72\xd0\x5d\xb1\x80\x92\xa7\xa1\x1e\x63\x53\xea\x73\x58\xb4\x8e\xcd\x0a\xef\xa5\xbd\xaf\x54\x27\xe4\x16\x98\x47\x12\xb5\x08\x91\xb8\x50\xb9\x06\x9d\xf7\xde\xe2\x4e\xb6\xfe\x8d\xac\xce\xee\xa8\x10\x6a\x7c\x05\xbc\xf6\x26\xfe\x4e\x96\x89\x3c\x47\xdf\x39\x2d\x93\x44\x7d\x46\x04\xdb\x7d\x3b\xa8\xcb\xe2\x2f\x4b\x22\x8f\x4d\x22\xd4\xae\x9f\x0b\x89\x4e\xe6\x78\x31\x53\x51\xaf\x81\x66\x5f\xca\xf4\x7f\x1c\xea\xea\x7b\x1a\xbb\x0b\xf5\x0d\x42\xcb\xdf\xe7\xc2\xab\x71\xdf\x43\xd3\x8a\xfe\xc3\xaf\xfb\x1f\xff\x45\x64\x74\xab\x0e\xb5\x7b\xd9\xb5\xfa\x55\x57\xea\xc0\xa7\x98\x81\x50\x31\xa8\xc1\x5f\x35\xda\x38\x14\xfe\x1d\x00\x00\xff\xff\xbe\xe6\x91\xeb\x24\x1e\x00\x00") func definitionsOperationsTomlBytes() ([]byte, error) { return bindataRead( @@ -178,7 +178,7 @@ func definitionsOperationsToml() (*asset, error) { } info := bindataFileInfo{name: "definitions/operations.toml", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x4d, 0x6a, 0xba, 0xaa, 0x67, 0xe, 0xbd, 0x9, 0xfd, 0x48, 0x62, 0xd3, 0x8a, 0x67, 0xd6, 0x3d, 0xba, 0x1a, 0x97, 0x47, 0xce, 0x81, 0x86, 0x63, 0x5a, 0xbf, 0xdc, 0x65, 0xac, 0x78, 0xf6, 0x87}} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x2b, 0xb0, 0x42, 0xbb, 0xfc, 0xd3, 0xc1, 0x5d, 0xdd, 0x58, 0xdc, 0x2d, 0x51, 0x2c, 0x16, 0x4, 0x40, 0x4, 0xe9, 0x83, 0x4d, 0xe9, 0xae, 0x8a, 0xb, 0x32, 0x5c, 0xa4, 0x2b, 0xd, 0x37, 0x39}} return a, nil } diff --git a/definitions/operations.toml b/definitions/operations.toml index c2dc29662..8503f6329 100644 --- a/definitions/operations.toml +++ b/definitions/operations.toml @@ -2,9 +2,17 @@ description = "is the interface for Append related operations." [appender.op.create_append] -description = "will create an append object." params = ["path"] results = ["o"] +description = """ +will create an append object. + +## Behavior + +- CreateAppend SHOULD create an appendable object with position 0 and size 0. +- CreateAppend SHOULD NOT return an error as the object exist. + - Service SHOULD check and delete the object if exists. +""" [appender.op.write_append] description = "will append content to an append object." @@ -21,9 +29,16 @@ object_mode = "append" description = "is the interface for Block related operations." [blocker.op.create_block] -description = "will create a new block object." params = ["path"] results = ["o"] +description = """ +will create a new block object. + +## Behavior +- CreateBlock SHOULD NOT return an error as the object exist. + - Service that has native support for `overwrite` doesn't NEED to check the object exists or not. + - Service that doesn't have native support for `overwrite` SHOULD check and delete the object if exists. +""" [blocker.op.write_block] description = "will write content to a block." @@ -46,8 +61,21 @@ object_mode = "block" description = "is the interface for Copy." [copier.op.copy] -description = "will copy an Object or multiple object in the service." params = ["src", "dst"] +description = """ +will copy an Object or multiple object in the service. + +## Behavior + +- Copy only copy one and only one object. + - Service DON'T NEED to support copy a non-empty directory or copy files recursively. + - User NEED to implement copy a non-empty directory and copy recursively by themself. + - Copy a file to a directory SHOULD return `ErrObjectModeInvalid`. +- Copy SHOULD NOT return an error as dst object exists. + - Service that has native support for `overwrite` doesn't NEED to check the dst object exists or not. + - Service that doesn't have native support for `overwrite` SHOULD check and delete the dst object if exists. +- A successful copy opration should be complete, which means the dst object's content and metadata should be the same as src object. +""" [direr] description = "is the interface for Directory." @@ -61,23 +89,49 @@ results = ["o"] description = "is the interface for Fetch." [fetcher.op.fetch] -description = "will fetch from a given url to path." params = ["path", "url"] +description = """ +will fetch from a given url to path. + +## Behavior + +- Fetch SHOULD NOT return an error as the object exists. +- A successful fetch operation should be complete, which means the object's content and metadata should be the same as requiring from the url. +""" [mover] description = "is the interface for Move." [mover.op.move] -description = "will move an object in the service." params = ["src", "dst"] +description = """ +will move an object in the service. + +## Behavior + +- Move only move one and only one object. + - Service DON'T NEED to support move a non-empty directory. + - User NEED to implement move a non-empty directory by themself. + - Move a file to a directory SHOULD return `ErrObjectModeInvalid`. +- Move SHOULD NOT return an error as dst object exists. + - Service that has native support for `overwrite` doesn't NEED to check the dst object exists or not. + - Service that doesn't have native support for `overwrite` SHOULD check and delete the dst object if exists. +- A successful move operation SHOULD be complete, which means the dst object's content and metadata should be the same as src object. +""" [multiparter] description = "is the interface for Multipart related operations." [multiparter.op.create_multipart] -description = "will create a new multipart." params = ["path"] results = ["o"] +description = """ +will create a new multipart. + +## Behavior + +- CreateMultipart SHOULD NOT return an error as the object exists. +""" [multiparter.op.write_multipart] description = "will write content to a multipart." @@ -100,9 +154,15 @@ object_mode = "part" description = "is the interface for Page related operations which support random write." [pager.op.create_page] -description = "will create a new page object." params = ["path"] results = ["o"] +description = """ +will create a new page object. + +## Behavior + +- CreatePage SHOULD NOT return an error as the object exists. +""" [pager.op.write_page] description = "will write content to specific offset." @@ -205,7 +265,16 @@ will stat a path to get info of an object. """ [storager.op.write] -description = "will write data into a file." params = ["path", "r", "size"] pairs = ["io_callback"] results = ["n"] +description = """ +will write data into a file. + +## Behavior + +- Write SHOULD NOT return an error as the object exist. + - Service that has native support for `overwrite` doesn't NEED to check the object exists or not. + - Service that doesn't have native support for `overwrite` SHOULD check and delete the object if exists. +- A successful write operation SHOULD be complete, which means the object's content and metadata should be the same as specified in write request. +""" diff --git a/types/operation.generated.go b/types/operation.generated.go index 02c020078..3d670204f 100644 --- a/types/operation.generated.go +++ b/types/operation.generated.go @@ -14,8 +14,20 @@ type Appender interface { CommitAppendWithContext(ctx context.Context, o *Object, pairs ...Pair) (err error) // CreateAppend will create an append object. + // + // ## Behavior + // + // - CreateAppend SHOULD create an appendable object with position 0 and size 0. + // - CreateAppend SHOULD NOT return an error as the object exist. + // - Service SHOULD check and delete the object if exists. CreateAppend(path string, pairs ...Pair) (o *Object, err error) // CreateAppendWithContext will create an append object. + // + // ## Behavior + // + // - CreateAppend SHOULD create an appendable object with position 0 and size 0. + // - CreateAppend SHOULD NOT return an error as the object exist. + // - Service SHOULD check and delete the object if exists. CreateAppendWithContext(ctx context.Context, path string, pairs ...Pair) (o *Object, err error) // WriteAppend will append content to an append object. @@ -71,8 +83,18 @@ type Blocker interface { CombineBlockWithContext(ctx context.Context, o *Object, bids []string, pairs ...Pair) (err error) // CreateBlock will create a new block object. + // + // ## Behavior + // - CreateBlock SHOULD NOT return an error as the object exist. + // - Service that has native support for `overwrite` doesn't NEED to check the object exists or not. + // - Service that doesn't have native support for `overwrite` SHOULD check and delete the object if exists. CreateBlock(path string, pairs ...Pair) (o *Object, err error) // CreateBlockWithContext will create a new block object. + // + // ## Behavior + // - CreateBlock SHOULD NOT return an error as the object exist. + // - Service that has native support for `overwrite` doesn't NEED to check the object exists or not. + // - Service that doesn't have native support for `overwrite` SHOULD check and delete the object if exists. CreateBlockWithContext(ctx context.Context, path string, pairs ...Pair) (o *Object, err error) // ListBlock will list blocks belong to this object. @@ -137,8 +159,30 @@ func (s UnimplementedBlocker) WriteBlockWithContext(ctx context.Context, o *Obje type Copier interface { // Copy will copy an Object or multiple object in the service. + // + // ## Behavior + // + // - Copy only copy one and only one object. + // - Service DON'T NEED to support copy a non-empty directory or copy files recursively. + // - User NEED to implement copy a non-empty directory and copy recursively by themself. + // - Copy a file to a directory SHOULD return `ErrObjectModeInvalid`. + // - Copy SHOULD NOT return an error as dst object exists. + // - Service that has native support for `overwrite` doesn't NEED to check the dst object exists or not. + // - Service that doesn't have native support for `overwrite` SHOULD check and delete the dst object if exists. + // - A successful copy opration should be complete, which means the dst object's content and metadata should be the same as src object. Copy(src string, dst string, pairs ...Pair) (err error) // CopyWithContext will copy an Object or multiple object in the service. + // + // ## Behavior + // + // - Copy only copy one and only one object. + // - Service DON'T NEED to support copy a non-empty directory or copy files recursively. + // - User NEED to implement copy a non-empty directory and copy recursively by themself. + // - Copy a file to a directory SHOULD return `ErrObjectModeInvalid`. + // - Copy SHOULD NOT return an error as dst object exists. + // - Service that has native support for `overwrite` doesn't NEED to check the dst object exists or not. + // - Service that doesn't have native support for `overwrite` SHOULD check and delete the dst object if exists. + // - A successful copy opration should be complete, which means the dst object's content and metadata should be the same as src object. CopyWithContext(ctx context.Context, src string, dst string, pairs ...Pair) (err error) mustEmbedUnimplementedCopier() @@ -195,8 +239,18 @@ func (s UnimplementedDirer) CreateDirWithContext(ctx context.Context, path strin type Fetcher interface { // Fetch will fetch from a given url to path. + // + // ## Behavior + // + // - Fetch SHOULD NOT return an error as the object exists. + // - A successful fetch operation should be complete, which means the object's content and metadata should be the same as requiring from the url. Fetch(path string, url string, pairs ...Pair) (err error) // FetchWithContext will fetch from a given url to path. + // + // ## Behavior + // + // - Fetch SHOULD NOT return an error as the object exists. + // - A successful fetch operation should be complete, which means the object's content and metadata should be the same as requiring from the url. FetchWithContext(ctx context.Context, path string, url string, pairs ...Pair) (err error) mustEmbedUnimplementedFetcher() @@ -224,8 +278,30 @@ func (s UnimplementedFetcher) FetchWithContext(ctx context.Context, path string, type Mover interface { // Move will move an object in the service. + // + // ## Behavior + // + // - Move only move one and only one object. + // - Service DON'T NEED to support move a non-empty directory. + // - User NEED to implement move a non-empty directory by themself. + // - Move a file to a directory SHOULD return `ErrObjectModeInvalid`. + // - Move SHOULD NOT return an error as dst object exists. + // - Service that has native support for `overwrite` doesn't NEED to check the dst object exists or not. + // - Service that doesn't have native support for `overwrite` SHOULD check and delete the dst object if exists. + // - A successful move operation SHOULD be complete, which means the dst object's content and metadata should be the same as src object. Move(src string, dst string, pairs ...Pair) (err error) // MoveWithContext will move an object in the service. + // + // ## Behavior + // + // - Move only move one and only one object. + // - Service DON'T NEED to support move a non-empty directory. + // - User NEED to implement move a non-empty directory by themself. + // - Move a file to a directory SHOULD return `ErrObjectModeInvalid`. + // - Move SHOULD NOT return an error as dst object exists. + // - Service that has native support for `overwrite` doesn't NEED to check the dst object exists or not. + // - Service that doesn't have native support for `overwrite` SHOULD check and delete the dst object if exists. + // - A successful move operation SHOULD be complete, which means the dst object's content and metadata should be the same as src object. MoveWithContext(ctx context.Context, src string, dst string, pairs ...Pair) (err error) mustEmbedUnimplementedMover() @@ -258,8 +334,16 @@ type Multiparter interface { CompleteMultipartWithContext(ctx context.Context, o *Object, parts []*Part, pairs ...Pair) (err error) // CreateMultipart will create a new multipart. + // + // ## Behavior + // + // - CreateMultipart SHOULD NOT return an error as the object exists. CreateMultipart(path string, pairs ...Pair) (o *Object, err error) // CreateMultipartWithContext will create a new multipart. + // + // ## Behavior + // + // - CreateMultipart SHOULD NOT return an error as the object exists. CreateMultipartWithContext(ctx context.Context, path string, pairs ...Pair) (o *Object, err error) // ListMultipart will list parts belong to this multipart. @@ -324,8 +408,16 @@ func (s UnimplementedMultiparter) WriteMultipartWithContext(ctx context.Context, type Pager interface { // CreatePage will create a new page object. + // + // ## Behavior + // + // - CreatePage SHOULD NOT return an error as the object exists. CreatePage(path string, pairs ...Pair) (o *Object, err error) // CreatePageWithContext will create a new page object. + // + // ## Behavior + // + // - CreatePage SHOULD NOT return an error as the object exists. CreatePageWithContext(ctx context.Context, path string, pairs ...Pair) (o *Object, err error) // WritePage will write content to specific offset. @@ -532,8 +624,22 @@ type Storager interface { StatWithContext(ctx context.Context, path string, pairs ...Pair) (o *Object, err error) // Write will write data into a file. + // + // ## Behavior + // + // - Write SHOULD NOT return an error as the object exist. + // - Service that has native support for `overwrite` doesn't NEED to check the object exists or not. + // - Service that doesn't have native support for `overwrite` SHOULD check and delete the object if exists. + // - A successful write operation SHOULD be complete, which means the object's content and metadata should be the same as specified in write request. Write(path string, r io.Reader, size int64, pairs ...Pair) (n int64, err error) // WriteWithContext will write data into a file. + // + // ## Behavior + // + // - Write SHOULD NOT return an error as the object exist. + // - Service that has native support for `overwrite` doesn't NEED to check the object exists or not. + // - Service that doesn't have native support for `overwrite` SHOULD check and delete the object if exists. + // - A successful write operation SHOULD be complete, which means the object's content and metadata should be the same as specified in write request. WriteWithContext(ctx context.Context, path string, r io.Reader, size int64, pairs ...Pair) (n int64, err error) mustEmbedUnimplementedStorager()