From 4fe58fb9e4b31e724fe95aedaa60fe0fede8aafa Mon Sep 17 00:00:00 2001 From: JinnyYi Date: Wed, 1 Sep 2021 17:31:02 +0800 Subject: [PATCH] definitions: Implement GSP-729 Redesign HTTP Signer --- cmd/definitions/bindata/bindata.go | 12 +- cmd/definitions/tmpl/operation.tmpl | 14 -- definitions/operations.toml | 21 ++- types/operation.generated.go | 252 +++++----------------------- 4 files changed, 60 insertions(+), 239 deletions(-) diff --git a/cmd/definitions/bindata/bindata.go b/cmd/definitions/bindata/bindata.go index 3bafa9a9a..a8d144a2b 100644 --- a/cmd/definitions/bindata/bindata.go +++ b/cmd/definitions/bindata/bindata.go @@ -4,12 +4,12 @@ // definitions/fields.toml (714B) // definitions/info_object_meta.toml (932B) // definitions/info_storage_meta.toml (1.139kB) -// definitions/operations.toml (8.975kB) +// definitions/operations.toml (9.197kB) // definitions/pairs.toml (1.464kB) // cmd/definitions/tmpl/function.tmpl (567B) // cmd/definitions/tmpl/info.tmpl (1.702kB) // cmd/definitions/tmpl/object.tmpl (2.388kB) -// cmd/definitions/tmpl/operation.tmpl (2.113kB) +// cmd/definitions/tmpl/operation.tmpl (1.724kB) // cmd/definitions/tmpl/pair.tmpl (785B) // cmd/definitions/tmpl/service.tmpl (13.034kB) @@ -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\xec\x5a\x4b\x8f\xdc\xb8\x11\xbe\xf7\xaf\x28\xf4\x1e\x0c\x04\x33\x8d\x3d\x07\xd8\x83\x77\xc6\x41\x0c\xf8\xb1\xb0\xd7\xd9\x83\x31\x98\x66\x4b\xa5\x16\x63\x8a\x94\x49\xaa\xc7\x9d\x5f\x1f\x14\x8b\x92\xa8\x57\xb7\x3c\xeb\xe4\x92\x5c\x8c\x1e\x89\xf5\x55\xb1\xf8\xd5\x8b\xf2\x67\x51\xd7\xa8\x73\xb4\x0f\x9b\x1c\x5d\x66\x65\xed\xa5\xd1\xf0\x0b\x6c\xa5\x03\x5f\x22\x48\xed\xd1\x16\x22\x43\x28\x8c\x85\x97\x61\x35\x58\x54\xc2\x63\x0e\xa6\x46\x2b\x48\xc0\xed\xb6\x9b\x4d\x87\xb5\x33\xf5\x2e\xb3\x28\x3c\x3e\xf2\xa3\x87\x4d\x2d\xac\xa8\x1c\xfc\x02\x9f\xb7\xb5\xf0\xe5\xf6\x61\x63\xd1\x35\xca\xf3\x23\xb3\x9d\xa8\xdf\x6e\x37\x4f\x52\x29\x60\x1c\x10\x1a\x18\x0a\xcc\xe1\x9f\x98\xf9\xdd\x66\xf3\xd3\x4f\xf0\x2b\x96\xe2\x24\x8d\xdd\x6c\x6e\xe1\x2e\x2c\x8c\x06\x7e\xfc\xfb\xfb\x4f\x6f\xee\x27\xc2\xe2\xa0\x30\x02\xc0\x93\xf4\x25\xd4\xc6\xc9\xa0\xf1\x67\x10\x3a\x07\x27\xff\x85\xf0\xf3\x6e\x01\xed\xdd\xfb\xdf\xc1\xa2\x6f\xac\x26\x44\xb4\xd6\x58\x10\xec\xa5\x88\x89\xdf\xa4\xf3\xbb\x0d\xc0\x2d\x7c\x44\x7b\x92\x19\x76\x96\x94\x98\x7d\x09\x3a\x72\x54\xe8\x31\x95\x92\x05\x0b\xba\xdd\x86\xb6\x3d\xf4\xe3\x93\x95\x89\x1b\x47\x4e\x0a\x1e\x8a\x7e\xc9\x8c\xf6\xa8\x3d\x78\x33\x75\xd6\x36\xf5\xbf\xd9\xde\xc0\xd6\xd2\x3f\xb4\xdd\xd1\x49\xe8\xed\xc3\x86\x85\x1e\x2b\x93\x23\x29\x61\xa8\xc9\xf9\x9a\xaa\x92\xfe\xa2\x61\xbc\x24\x6c\xba\x90\x5a\xba\x32\x31\xac\xb6\x26\x43\xe7\xc6\x96\x5d\x50\x7e\x50\x26\xfb\xb2\x96\xa7\xbf\xd2\xe2\x25\x9a\x46\xa4\x84\xa5\xe1\xc9\x0f\x20\x29\x68\x7c\x82\x00\x36\x4f\xd3\x96\x57\x6c\xde\x9f\xa1\x95\x2f\x85\x87\x52\x38\xd0\xc2\xcb\x13\x82\x6b\xea\xda\x58\x1f\x36\xbf\x37\x27\xb4\x81\x37\x7b\xc8\x0d\x3a\xfd\xc2\xc3\xbb\x57\xaf\xee\x89\x1a\xcc\xc3\x31\xb6\x03\x63\x41\x9b\x39\x1d\x2d\x40\x29\x4e\x78\x4d\xd9\x73\xb8\x9e\x1c\x06\x53\x3d\x9e\xc5\x1c\xa1\xc2\x82\x01\xd1\xd9\xd9\x17\xf9\x7d\x03\xdb\x83\xcc\xaf\xd3\x3c\x20\x8d\xe9\x61\xaa\x83\xd4\x17\x6d\x8a\x4b\xd8\x10\x47\x34\x0c\xf1\xb7\x18\x78\x07\x99\xbb\x75\xca\x95\x74\xfe\x92\x66\x7a\xdf\xaa\x3d\xa0\x32\xfa\x48\x2e\xf1\xa5\x74\x0b\xda\x87\x2e\x38\xc8\x0b\x66\x64\xa6\x96\x6b\x63\xed\xce\xd4\xe7\x5d\x2f\xc4\x7e\xab\xcf\x83\x70\x72\x36\xa3\xcd\xe7\xce\x5f\x08\x22\x53\x9f\xc9\x75\xef\x99\x29\xc6\x42\xd5\x28\x2f\xeb\x3e\x65\x4b\x1d\xd4\x3b\xe6\xe7\x4c\x09\x20\x04\xa3\xd5\x99\xb1\x8c\xc6\xc0\xc2\xf0\x84\xfe\x68\x63\x32\x25\xf9\xfd\xfb\x77\x2f\x7e\xef\xc2\xa3\x65\x36\xdb\x02\xda\xe8\x5b\xac\x6a\x7f\x86\x5c\x5a\xcc\xbc\xb1\x67\xb2\x2b\xbc\x2d\xa4\x42\x07\x16\xb3\xc6\x3a\x79\x42\x75\x66\xdc\x4f\x0e\x6d\x07\x27\xab\x5a\x61\x45\x64\xbd\x00\x28\x42\xf2\xae\xcf\x29\x16\x1c\xce\xb4\xd5\xca\xa1\x2a\x18\xf7\x8e\x01\x48\x2b\x33\xbf\x07\x88\x61\x17\x73\xc8\xfe\x95\xb5\xec\xc2\xb7\x26\xc7\xd7\xfa\x24\x94\xcc\xf7\xbb\xd6\x3d\x97\x93\x4e\xee\xfc\x30\x31\xfc\xe8\xac\x33\x51\xf0\x9f\xcf\x3c\x89\xca\x24\xfb\xdc\xc2\x4b\x70\x4d\x46\x45\xa8\x68\x22\xf9\x4c\xcd\x65\x02\x5c\x69\x1a\x95\xc3\x81\x92\x0d\x1d\xa1\xc7\x1b\x78\x2a\x65\x56\x42\x85\x42\xbb\x11\xec\x0b\xd7\xe5\x24\x52\x5d\xa1\x17\xb9\xf0\x22\x41\x09\xac\x15\x15\x92\x8b\x9d\xcd\x3a\x22\x72\x0a\xa4\x93\x5c\x19\x6b\xf7\xed\xa1\xef\x3a\xc1\xa4\x8c\xe5\x72\x0a\x33\xad\x4f\xb9\xb4\xb3\x09\x62\xa1\xe4\x6d\x3e\x17\xe8\xb3\x72\xad\x85\x7f\xa3\xc5\xc1\xba\x28\x46\xf6\x85\x9f\xd3\xfa\x7a\x03\xdb\xc6\xaa\xe5\x8c\x10\xc4\xa0\xb0\xa6\x02\x01\x47\x79\x42\x0d\x8d\x55\x44\x28\x12\x9f\xc6\x7f\xd0\xfd\x9d\x65\x75\x4a\x05\xd6\xda\xf5\x0c\xab\xc8\xf0\x1c\x22\x58\xfc\xda\x48\x2b\xf5\x91\x77\x48\xaf\x1a\xab\x5a\x52\x94\xde\xd7\x8f\x4e\x1e\xf5\x5a\xc7\x7f\x0c\x6b\x77\x23\x59\xf2\xfe\xd7\x06\xed\x39\xfc\xfd\x48\x6f\xe6\x29\xd2\x66\x8f\xbf\xd0\x92\xdd\x07\xfc\xda\xa0\xf3\x7b\xee\x92\x03\x00\x38\x1f\x8c\x0d\x87\x88\x1e\x2d\x6f\x56\x48\x4d\x4f\x09\x5d\xf8\xc6\x92\x55\xb0\xff\xf4\xe1\xcd\x9e\x8e\xc9\x62\x6d\xd1\x85\x62\x5d\x22\x64\x4a\xa2\x26\x27\x59\x46\x1f\xd5\xa7\x9a\xf8\xd0\xf2\x02\xbf\xd5\xd2\x8e\x9b\x53\x8b\x5f\x03\x21\x2b\x8a\xfc\x75\x5e\x79\x6b\x4e\x18\x7c\x12\x64\xc8\x1b\xf4\xe3\xbb\x6b\x13\x09\xf5\x65\xfd\x6a\x21\x22\xad\x5c\x76\x2a\xfe\xf5\xec\x42\xc4\x8a\xe7\xea\xc6\xc5\x72\xb3\x2c\x36\xad\x2c\x6f\x79\xed\x9f\xa9\x2c\x01\xe2\xff\x95\x65\x36\x9d\x30\x03\xba\x6c\x12\xf1\xfe\x4b\xa5\x85\x3b\x28\x61\xfd\xea\x78\x69\x05\x96\x86\xa7\x04\x31\xa9\x3c\xdd\xd3\x1f\x35\x44\x75\x80\x4b\x83\x7e\x6f\xe8\x77\xe7\xfb\x89\x6b\xfa\xe1\x23\xd9\xc7\xca\x01\xa4\x37\xf4\xca\x10\x22\x75\x8e\xdf\x26\x63\x48\x48\x79\xd6\x4f\x5b\xf1\xf0\x74\xc6\xdf\x91\x34\xd7\x2c\x6d\xd7\xa5\x16\x42\x53\x2b\x23\xf2\xd8\x70\x6a\xe7\x6d\x93\xf9\xbe\xe3\x9e\xd9\x00\x49\xcd\x4c\x2b\x0b\xb6\x85\x81\xe5\x8a\x5d\x61\x68\x09\xb0\xe3\x99\x65\xd1\x91\x43\x97\xd5\x33\x63\x4b\x6b\x4f\x2d\x8e\x6b\x79\xfe\x9b\x38\xe2\x0c\xc5\x63\x28\xb6\xc9\xc0\x0a\x9d\x9b\x8a\x8f\x7d\xd7\x69\x48\x78\x4f\x7f\xff\x28\xca\x13\xd6\x95\xdb\xad\x60\xf5\x33\xf9\xde\x99\xce\x4c\x67\xcb\x57\x91\xdc\xd5\x98\xc9\x42\x66\x60\x8a\xc2\xe1\x55\xa2\xf3\xaa\xeb\x03\x37\x59\x40\x86\x59\x14\xeb\xdb\xcb\x0f\xb4\x78\x97\x88\xd1\x8e\xc2\xcf\xf9\xcd\xd4\xd6\x9c\x64\x4e\x2e\x7e\x12\xe7\x36\xd3\x66\x42\x43\x90\x49\xbc\x75\xb5\x17\xe6\x4e\x75\xf3\x39\x16\xfd\xa9\xbd\x84\x5a\x09\x19\x5a\xa2\x24\xe8\x9c\x37\x96\x8e\x2d\xca\x71\x16\x6d\x41\x7a\x2a\xad\x68\xdc\x23\x92\x05\xa9\x9d\x17\x3a\xc3\xa1\xcd\x5a\x54\xe3\x86\x89\x24\x70\x60\x35\x29\xe4\x0a\x36\xaf\x30\x56\x37\xb1\x52\xd9\x10\xf8\x88\x0b\x51\x7f\x44\x0f\x02\x42\xbf\x30\x05\x0e\xe7\xda\xb6\x52\xcf\xdb\x11\x65\x95\x0b\xf9\x46\x28\x35\x55\xeb\xa0\xd1\x39\x5a\x4e\x3e\xbd\xfa\xa1\x32\xc9\xaa\xa2\xec\x3a\x8a\x8e\x0e\x9c\xcf\x3b\x22\xa4\xee\x9f\xd2\xad\x16\xd2\xc6\xa8\xea\x43\x65\x39\x7b\xb4\x67\xd5\xb5\xa5\x61\x8e\x58\x6c\x4a\xef\x79\x79\x68\x42\xf3\xf6\xf7\xb3\x1b\x53\x8b\xdc\x63\x2a\x75\xb1\x11\xe5\x65\x8f\x74\x02\x83\xc6\xb3\x33\x47\x3a\x90\x39\x56\xb5\xa1\x6c\x13\x15\xf7\xcd\x53\xbb\x45\xf5\x24\xce\xae\x4d\x77\x5a\x2a\xce\x77\xbc\x3c\x02\xc5\xb4\xa8\xf1\x84\xb6\xeb\x58\xb9\xb2\xbd\x33\xfe\x15\xe5\xc2\x7d\xba\x7e\xb8\xad\xf9\x7b\xd1\xae\x85\xe4\x14\x9a\x9e\x62\xdb\x8a\x5d\x9c\xa6\xb2\xc6\x5a\xf2\x42\x47\xbe\x56\x6a\x44\x34\x7a\xbc\x7d\xd8\x28\x93\x09\x05\xbf\x80\xb7\x0d\x8e\xd4\x31\xc3\x2f\x51\x86\xab\x2f\x13\x66\x50\x7e\xe4\x32\x83\xa2\x99\x1c\x24\x7d\x9e\x9f\x9f\xae\x47\x5f\x34\x5a\x22\xe4\x58\x88\x46\x79\xd8\xbf\x91\x2e\x0c\x06\x61\x22\x18\x2d\xee\x09\xd1\x2d\xbb\x97\x96\xc7\x4b\xd3\xc4\xf1\x30\x1c\x41\xe8\xbf\xff\x21\xad\x6f\x84\xa2\x25\x29\xd8\xf0\xc8\xf6\x1f\xbd\xa0\x09\xb5\xa4\xc1\x85\xa6\x4e\x42\xde\xcf\x9d\x95\x45\xb1\xf0\x89\x82\xde\x04\xe5\x34\xfd\xbc\x70\x10\xcf\x66\xe6\xa2\xe2\x69\xe0\xec\x51\xad\xa3\xf6\xce\x3c\x66\x42\xa9\x83\xc8\xbe\xcc\x94\xbe\xa1\x3d\x6d\xc6\xbf\xde\x37\x2c\x65\x84\x01\x53\xd6\x34\x17\xc9\x47\x2f\xf2\xb7\xd0\x67\x10\xb5\x84\x2c\xc4\xef\x7c\xb3\x91\x36\x1a\x0e\x75\x1e\x84\x5e\xfe\xf6\x3a\x0a\x8d\x97\x89\x2c\xc3\xda\x43\x3f\x20\x02\x19\x4f\x2d\x49\xd4\x4d\xa6\xcf\x9d\x8e\xf3\xe2\x0a\xb5\x87\x7b\x5f\xd9\x5b\x11\x2c\x88\xc0\x65\x62\x0b\x95\x20\xa9\x0b\x03\xa6\x48\xee\xe7\xa7\x24\x27\xa9\xab\x3b\x2a\xa5\x1e\x0f\xb0\x77\x41\x24\x4c\x94\xb9\x2c\x0a\x0c\x71\xdf\xd1\x3e\x76\x97\x44\xee\xfe\xed\xc0\x2f\x8b\xdf\x0c\x65\x11\xc3\x54\xea\x63\x6a\x0b\xb5\xcc\xc2\x67\xe5\x8c\x47\x43\x07\x37\x7b\xdd\x96\x7e\xf6\xeb\xfd\x7b\x99\xbb\x0b\xfe\xe5\x36\x31\x4c\xa3\xfc\xd1\x23\xc4\xd0\xd4\xa3\x7f\x84\x75\xff\xe3\xdf\xba\x46\x77\x02\xec\xbb\xef\xbb\x14\x78\xd6\x85\x00\x67\x74\xcc\x29\x3f\xb2\xd2\xf6\xee\x2d\xd2\x46\x49\xbd\xfa\xa3\x2a\xad\xed\x65\x92\x29\x88\x1e\xcc\xd2\xcd\x0b\x7b\x9c\x8c\x02\xf3\x31\xfb\xc7\x20\x65\x11\x62\x12\xa3\x03\x42\xed\x09\x7d\x1f\xb6\xbf\x67\x05\xfb\x18\x7d\x87\x38\xd2\xd1\xb9\x11\xb1\x0e\xce\xa8\xc6\x63\xac\x67\xb7\xf0\xba\xe8\x25\xb4\x69\xf9\x70\x13\x13\xd9\x1b\xd2\x19\x53\xc7\x92\x31\xfd\xdd\x33\xa3\xb1\x29\x8c\xf3\xd7\x40\xa8\xfe\xa9\x74\x54\x53\xcf\x55\x22\x3e\x55\x15\xdb\xa8\x70\x68\x83\xa5\x3c\xa5\xa7\x29\x7c\xd6\x8c\x89\x4a\xda\xd7\x1a\xb5\x6d\x0c\xce\xdd\xe9\xc5\xc0\x7c\x2a\x71\x70\xcf\x19\xe2\x23\x28\x68\x83\xa2\x8b\x07\x66\x78\x6a\x61\x72\x22\xa4\x8a\x29\x18\x4b\x36\x85\x52\x2c\xd6\xb7\xa9\x69\x77\xa3\x5e\xe1\xc4\x6d\x40\xe0\x17\x14\xc8\xf7\xcb\xc1\xaa\xd6\xa2\xb6\x9e\x0d\x83\xb5\xef\x48\x5d\x1b\x5a\xa8\xc3\xff\xfd\x08\xcd\x7e\x8b\xd4\x37\xa4\x27\x8c\x63\xf2\xbf\x03\x00\x00\xff\xff\x6b\xbe\x46\x60\x0f\x23\x00\x00") +var _definitionsOperationsToml = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\x5a\x4b\x8f\xdc\xb8\x11\xbe\xf7\xaf\x28\xf4\x1e\x7c\x99\x69\xec\x39\x80\x0f\xde\x19\x07\x31\xe0\xc7\x22\xde\xcd\x1e\x8c\xc1\x34\x5b\x2a\xb5\x18\x53\xa4\x4c\x52\x3d\xee\xfc\xfa\xa0\x58\x94\x44\xbd\xba\xe5\xd9\x49\x2e\xc9\xc5\xe8\x91\x58\x0f\x16\xbf\xfa\xf8\x91\xf2\x17\x51\xd7\xa8\x73\xb4\x0f\x9b\x1c\x5d\x66\x65\xed\xa5\xd1\xf0\x1a\xb6\xd2\x81\x2f\x11\xa4\xf6\x68\x0b\x91\x21\x14\xc6\xc2\x9b\x30\x1a\x2c\x2a\xe1\x31\x07\x53\xa3\x15\x64\xe0\x76\xdb\xcd\xa6\xf3\xb5\x33\xf5\x2e\xb3\x28\x3c\x3e\xf2\xa3\x87\x4d\x2d\xac\xa8\x1c\xbc\x86\x2f\xdb\x5a\xf8\x72\xfb\xb0\xb1\xe8\x1a\xe5\xf9\x91\xd9\x4e\xc2\x6f\xb7\x9b\x27\xa9\x14\xb0\x1f\x10\x1a\xd8\x15\x98\xc3\x3f\x31\xf3\xbb\xcd\xe6\xa7\x9f\xe0\x17\x2c\xc5\x49\x1a\xbb\xd9\xdc\xc2\x5d\x18\x18\x13\xfc\xfc\xb7\x4f\xbf\xbf\xbf\x9f\x18\x8b\x83\xc2\xe8\x00\x9e\xa4\x2f\xa1\x36\x4e\x86\x88\x3f\x83\xd0\x39\x38\xf9\x2f\x84\x9f\x77\x0b\xde\x3e\x7e\xfa\x0d\x2c\xfa\xc6\x6a\xf2\x88\xd6\x1a\x0b\x82\xab\x14\x7d\xe2\x77\xe9\xfc\x6e\x03\x70\x0b\x9f\xd1\x9e\x64\x86\x5d\x26\x25\x66\x5f\x43\x8c\x1c\x15\x7a\x4c\xad\x64\xc1\x86\x6e\xb7\xa1\x69\x0f\xeb\xf8\x64\x65\x52\xc6\x51\x91\x42\x85\x62\x5d\x32\xa3\x3d\x6a\x0f\xde\x4c\x8b\xb5\x4d\xeb\x6f\xb6\x37\xb0\xb5\xf4\x0f\x4d\x77\xb4\x12\x7a\xfb\xb0\x61\xa3\xc7\xca\xe4\x48\x41\xd8\xd5\x64\x7d\x4d\x55\x49\x7f\x31\x31\x1e\x12\x26\x5d\x48\x2d\x5d\x99\x24\x56\x5b\x93\xa1\x73\xe3\xcc\x2e\x04\x3f\x28\x93\x7d\x5d\x8b\xd3\x5f\x68\xf0\x12\x4c\xa3\xa7\x04\xa5\xe1\xc9\x0b\x80\x14\x34\x3e\x41\x70\x36\x0f\xd3\x16\x57\x9c\xde\x9f\x81\x95\x2f\x85\x87\x52\x38\xd0\xc2\xcb\x13\x82\x6b\xea\xda\x58\x1f\x26\xbf\x37\x27\xb4\x01\x37\x7b\xc8\x0d\x3a\xfd\xca\xc3\xc7\xb7\x6f\xef\x09\x1a\x8c\xc3\xb1\x6f\x07\xc6\x82\x36\x73\x31\x5a\x07\xa5\x38\xe1\xb5\x60\xcf\xc1\x7a\xb2\x18\x0c\xf5\xb8\x16\x73\x80\x0a\x03\x06\x40\xe7\x62\x5f\xc4\xf7\x0d\x6c\x0f\x32\xbf\x0e\xf3\xe0\x69\x0c\x0f\x53\x1d\xa4\xbe\x98\x53\x1c\xc2\x89\x38\x82\x61\xe8\xbf\xc5\xc6\x3b\xc8\xdc\xad\x0b\xae\xa4\xf3\x97\x22\xd3\xfb\x36\xec\x01\x95\xd1\x47\x2a\x89\x2f\xa5\x5b\x88\x3e\x2c\xc1\x41\x5e\x48\x23\x33\xb5\x5c\xdb\x6b\x77\xa6\x3e\xef\x7a\x23\xae\x5b\x7d\x1e\xb4\x93\xb3\x19\x4d\x3e\x77\xfe\x42\x13\x99\xfa\x4c\xa5\xfb\xc4\x48\x31\x16\xaa\x46\x79\x59\xf7\x94\x2d\x75\x08\xef\x18\x9f\x33\x5b\x00\x79\x30\x5a\x9d\xd9\x97\xd1\x18\x50\x18\x9e\xd0\x1f\x6d\x4f\xa6\x20\xbf\xff\xf4\xf1\xd5\x6f\x5d\x7b\xb4\xc8\xe6\x5c\x40\x1b\x7d\x8b\x55\xed\xcf\x90\x4b\x8b\x99\x37\xf6\x4c\x79\x85\xb7\x85\x54\xe8\xc0\x62\xd6\x58\x27\x4f\xa8\xce\xec\xf7\x77\x87\xb6\x73\x27\xab\x5a\x61\x45\x60\xbd\xe0\x50\x04\xf2\xae\xcf\xa9\x2f\x38\x9c\x69\xaa\x95\x43\x55\xb0\xdf\x3b\x76\x40\x51\x19\xf9\xbd\x83\xd8\x76\x91\x43\xf6\x6f\xad\xe5\x12\x7e\x30\x39\xbe\xd3\x27\xa1\x64\xbe\xdf\xb5\xe5\xb9\x4c\x3a\xb9\xf3\x43\x62\x78\x69\xd6\x99\x04\xf8\xcf\x33\x4f\x12\x32\x61\x9f\x5b\x78\x03\xae\xc9\x68\x13\x2a\x9a\x08\x3e\x53\xf3\x36\x01\xae\x34\x8d\xca\xe1\x40\x64\x43\x4b\xe8\xf1\x06\x9e\x4a\x99\x95\x50\xa1\xd0\x6e\xe4\xf6\x95\xeb\x38\x89\x42\x57\xe8\x45\x2e\xbc\x48\xbc\x04\xd4\x8a\x0a\xa9\xc4\xce\x66\x1d\x10\x99\x02\x69\x25\x57\xf6\xda\x7d\xbb\xe8\xbb\xce\x30\xd9\xc6\x72\x39\x75\x33\xdd\x9f\x72\x69\x67\x09\x62\x61\xcb\xdb\x7c\x29\xd0\x67\xe5\xda\x0c\xff\x4a\x83\x43\x76\xd1\x8c\xf2\x0b\x3f\xa7\xfb\xeb\x0d\x6c\x1b\xab\x96\x19\x21\x98\x41\x61\x4d\x05\x02\x8e\xf2\x84\x1a\x1a\xab\x08\x50\x64\x3e\xed\xff\x10\xfb\x07\xb7\xd5\x29\x14\x38\x6a\xa7\x19\x56\x81\xe1\x39\x40\xb0\xf8\xad\x91\x56\xea\x23\xcf\x90\x5e\x35\x56\xb5\xa0\xa8\x08\xdd\xeb\x4a\xfe\xc1\x9c\x70\xd7\xd9\x50\xbd\xe9\xc7\x0f\xf3\x2f\x19\xf5\x5b\xd7\x55\xb2\xa5\xa8\x4c\xad\x15\xff\x7a\x36\xd9\x72\xe0\x39\x6e\xbc\x48\xa9\xcb\x66\x53\xf6\xfc\xc0\x63\xff\x0c\x7b\x06\x17\xff\x67\xcf\xd9\x96\x61\x04\x74\x1d\x13\xfd\xfd\x97\xe8\x93\x55\x82\xb0\x7e\x75\xbf\xb4\x06\x4b\x07\x84\xc4\x63\xc2\xae\xdd\xd3\x97\x3a\x28\x74\x0e\x97\x0e\xb3\x7d\xa2\x3f\xcc\x69\x93\xd2\xf4\x02\x3b\x99\xc7\x4a\x91\xdd\x27\x7a\x45\x68\x4b\x9d\xe3\xf7\x89\xd4\xbe\x81\x2d\x19\x4f\xe5\x66\x78\x3a\x53\xef\x08\x9a\x6b\x99\xb6\xe3\xd2\x0c\xa1\xa9\x95\x11\x79\x14\x55\xda\x79\xdb\x64\xbe\x57\x95\x33\x13\x20\xab\x19\x45\xbe\x90\x5b\x10\xe5\x57\xf2\x0a\xc2\x3c\xb8\x1d\xeb\xf2\xc5\x42\x0e\x4b\x56\xcf\x48\xf3\x36\x9f\x5a\x1c\xd7\xe2\xfc\x57\x71\xc4\x19\x88\xc7\x56\x6c\xc9\xc0\x0a\x9d\x9b\x8a\x97\x7d\xd7\x45\x48\x70\x4f\x7f\xbf\x14\xe4\xc9\xd7\x95\x1b\x9c\x90\xf5\x33\xf1\xde\xa5\xce\x48\xe7\xcc\x57\x81\xdc\xd5\x98\xc9\x42\x66\x60\x8a\xc2\xe1\x55\xa0\xf3\xa8\xeb\x87\x4a\xca\x80\x12\xb3\x28\xd6\x4b\xa8\xbf\xd3\xe0\x5d\x62\x46\x33\x0a\x3f\xe7\x27\x53\x5b\x73\x92\x39\x95\xf8\x49\x9c\x5b\xa6\xcd\x84\x86\x60\x93\x54\xeb\xaa\xde\x63\x35\xb6\xf9\x12\x37\xfd\x69\xbe\xe4\xb5\x12\x52\x7b\x21\x75\xd2\x74\xce\x1b\x4b\xcb\x16\xed\x98\x45\x5b\x27\x3d\x94\x56\x88\xd3\xe8\xc9\x82\xd4\xce\x0b\x9d\xe1\x30\x67\x2d\xaa\xf1\x8d\x15\x59\xe0\x20\x6b\x0a\xc8\x3b\xd8\x7c\xc0\xb8\xbb\x89\x95\xc1\x86\x8e\x8f\xb8\xd0\xf5\x47\xf4\x20\x20\xe8\x85\xa9\xe3\xb0\xae\xad\x94\x7a\xde\x8c\x88\x55\x2e\xf0\x8d\x50\x6a\x1a\xd6\x41\xa3\x73\xb4\x4c\x3e\x7d\xf8\x61\x30\xc9\xa1\xa2\xed\x3a\x88\x8e\x16\x9c\xd7\x3b\x7a\x48\xcb\x3f\x85\x5b\x2d\xa4\x8d\x5d\xd5\xb7\xca\x32\x7b\xb4\x6b\xd5\xc9\xd2\xa0\x95\x17\x45\xe9\x3d\x0f\x0f\x22\x34\x6f\x7f\x3f\x5b\x98\x5a\x64\x8d\xa9\xd4\x45\x21\xca\xc3\x1e\x69\x05\x06\xc2\xb3\x4b\x47\x3a\x90\x39\x56\xb5\x21\xb6\x89\x81\x7b\xf1\xd4\x4e\x51\x3d\x89\xb3\x6b\xe9\x4e\x4b\xc5\x7c\xc7\xc3\xa3\xa3\x48\x8b\x1a\x4f\x68\x3b\xc5\xca\x3b\xdb\x47\xe3\xdf\x12\x17\xee\xd3\xf1\xc3\x69\xcd\xdf\xfd\x75\x12\x92\x29\x34\x5d\xc5\x56\x8a\xcd\xc3\x2e\xc6\xcf\x1a\x6b\xa9\x0a\x1d\xf8\x5a\xab\x11\xd0\xe8\xf1\xf6\x61\xa3\x4c\x26\x14\xbc\x06\x6f\x1b\x1c\x85\x63\x84\x5f\x82\x0c\xef\xbe\x0c\x98\xc1\xf6\x23\x97\x11\x14\xd3\xe4\x26\xe9\x79\x7e\xfe\x04\x39\xba\xb5\x6f\x81\x90\x63\x21\x1a\xe5\x61\xff\x5e\xba\x70\x30\x08\x27\x82\xd1\xe0\x1e\x10\xdd\xb0\x7b\x69\xf7\xe1\x43\x83\x69\x7c\x28\x3c\x2f\x41\xd0\xdf\xff\x90\xd6\x37\x42\xd1\x90\xd4\xd9\x70\xc9\xf6\x9f\xbd\xf0\x7b\xa2\x74\x45\x2d\xc8\x9e\xf7\x73\x6b\x65\x51\x2c\x5c\xc3\xd3\x9b\x10\x9c\x4e\x3f\xaf\x1c\xc4\xb5\x99\x39\x8c\x3f\x0d\x8a\x3d\xda\xeb\x48\xde\x99\xc7\x4c\x28\x75\x10\xd9\xd7\x99\xad\x6f\x98\x4f\xcb\xf8\xd7\x75\xc3\x12\x23\x0c\x90\xb2\x46\x5c\x24\x1f\x76\xa8\xde\x42\x9f\x41\xd4\x12\xb2\xd0\xbf\xf3\x62\x23\x15\x1a\x0e\x75\x1e\x8c\xde\xfc\xfa\x2e\x1a\x8d\x87\x89\x2c\xc3\xda\x43\x7f\x40\x04\x4a\x9e\x24\x49\x8c\x4d\xa9\xcf\xad\x8e\xf3\xe2\x0a\xb4\x87\x73\x5f\xa9\xad\xc8\x2d\x88\x80\x65\x42\x0b\x6d\x41\x52\x17\x06\x4c\x91\xdc\x41\x4f\x41\x4e\x56\x57\x67\x54\x4a\x3d\x3e\xc0\xde\x05\x93\x70\xa2\xcc\x65\x51\x60\xe8\xfb\x0e\xf6\x51\x5d\x12\xb8\xfb\xb7\x83\xba\x2c\x7e\x17\x93\x45\x6c\x53\xa9\x8f\x69\x2e\x24\x99\x85\xcf\xca\x99\x8a\x06\x05\x37\x7b\xa5\x94\x7e\xda\xea\xeb\x7b\x19\xbb\x0b\xf5\x65\x99\x18\x4e\xa3\x7c\xb1\x1f\x7a\x68\x5a\xd1\x3f\xc2\xb8\xff\xf1\xef\x39\xa3\x3b\x01\xae\xdd\x8f\x5d\x0a\x3c\xeb\x42\x80\x19\x1d\x73\xe2\x47\x0e\x6a\xf1\x5b\x83\x6e\xbc\xa5\x3d\x96\xde\xd7\x8f\x4e\x1e\xf5\x5a\x95\xf3\xb9\xdd\xd2\xae\x1e\xa2\x44\xe3\x4b\xd4\x5e\x66\xe1\xed\x6e\x21\x2a\xe1\xf6\x5b\x83\xf6\x1c\xfe\xe6\x37\x57\x78\x3b\x4c\xbc\xbb\x1f\x0c\xf7\x57\x87\x33\x34\x8e\x1a\x25\xb8\x82\xd0\x01\xe8\xd1\xba\x70\x58\xef\x13\xe9\xea\xe0\xe6\xd9\x1e\xbf\xd7\xd2\x8e\xc9\xc6\xe2\xb7\x94\xca\xaf\x65\x1f\xbb\x70\xf9\x88\x35\xee\x9d\x17\xcb\xbe\xdd\x9d\x2e\xce\x42\x49\xbd\xfa\x93\x31\x8d\xdd\x76\x36\xc9\xf9\x97\x1e\xcc\x12\x8d\x17\xf6\x38\x39\x04\xce\xb3\xf5\x1f\x83\xcd\x8a\x3c\x26\xec\x3c\xa0\x92\x3d\x79\xdf\x07\xe0\xef\x39\xc0\x3e\xf2\xee\x21\x1e\xe6\xa9\x63\x89\x52\x0e\xce\xa8\xc6\x63\x54\x32\xb7\xf0\xae\xe8\x2d\xb4\x69\x99\xe0\x26\x6e\x61\xef\x29\x66\xdc\x34\x96\x92\xe9\x6f\xd6\xd9\x1b\xa7\xc2\x7e\xfe\x12\xa8\xa4\x7f\x2a\x1d\xa9\xa9\x73\x95\x98\x4f\x43\x45\x01\x1d\xda\x75\x30\x94\xef\x67\xd2\xcd\x7b\x36\x8d\x49\x48\x9a\xd7\x9a\xb0\x2d\xfb\xce\xdd\xe6\x46\x4a\x7e\x2a\x71\x70\xc3\x1d\x98\x31\x04\x68\x9b\xba\x63\x42\xe6\xb6\x34\xc3\x64\x45\x28\x14\x93\x4f\x14\x6b\x44\xa2\x51\xa6\xdd\xa6\xa9\xdd\x8d\x54\xe2\x89\x05\x60\xc0\x17\x14\x28\x7c\x63\x91\xb3\x6a\x33\x6a\x95\xcc\x90\xa6\xfb\xb3\x88\x6b\x49\x15\x75\xf8\x9f\x2d\xe1\x98\xd7\x7a\xea\x8f\x22\x27\x8c\x17\x24\xff\x0e\x00\x00\xff\xff\xb9\x67\x08\xde\xed\x23\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{0x3a, 0xeb, 0x6c, 0x4c, 0x21, 0xb6, 0x30, 0x31, 0x27, 0xcf, 0xa4, 0x38, 0xd3, 0x10, 0x8e, 0x5, 0xc5, 0xa1, 0x65, 0x45, 0x39, 0x69, 0x3, 0x87, 0x30, 0xa3, 0x79, 0x6c, 0x29, 0x70, 0x80, 0xe9}} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xc4, 0x85, 0xc6, 0x30, 0x6f, 0x65, 0x9c, 0xaf, 0xeb, 0x6b, 0xb1, 0xb7, 0x63, 0x19, 0xc9, 0xe8, 0xb1, 0x4c, 0xbc, 0x50, 0x34, 0xb, 0x1c, 0xe3, 0xf2, 0xad, 0xa6, 0x69, 0x97, 0xbf, 0xa8, 0x6f}} return a, nil } @@ -262,7 +262,7 @@ func cmdDefinitionsTmplObjectTmpl() (*asset, error) { return a, nil } -var _cmdDefinitionsTmplOperationTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xcc\x55\x4f\x8b\xdb\x3e\x10\xbd\xeb\x53\x0c\x26\x07\x1b\xf6\xe7\xdc\x7f\x90\x53\xbb\x85\x85\x92\x0d\x2d\xa5\xc7\x45\xb1\x27\x89\x68\xf4\xa7\xa3\x49\x76\x17\xd7\xdf\xbd\x48\x51\xbc\xb1\x71\x9b\x75\x5b\x4a\x6f\x1a\xc9\xf3\x66\xde\x93\xde\xd8\xc9\xea\x8b\xdc\x22\xf0\xb3\x43\x2f\x84\xd2\xce\x12\x43\x2e\x00\x00\xb2\xca\x1a\xc6\x27\xce\x4e\x91\xb2\x69\x61\x90\xe7\x3b\x66\x97\x42\x56\x1a\x33\x51\x08\xd1\x34\xff\x01\x49\xb3\x45\x98\x3d\xdc\xc0\x4c\xc1\xff\x0b\x28\xef\x0c\x23\x6d\x64\x85\x1e\xda\x56\xcc\xe7\x70\xef\x90\x24\x2b\x6b\xc0\x48\x8d\x1e\x94\x81\xa6\x81\x99\x2a\xdf\x2a\xef\xf6\xf2\x79\x29\x35\x42\xdb\x96\xa2\xb2\xc6\x87\x56\x06\xb0\xd6\x05\xdc\x99\x2a\xef\x5d\x84\x0c\x3d\x44\xd8\x31\x94\xb0\x67\x5d\x19\xa3\x6f\xc0\x76\x25\x7d\x25\xf7\xd0\xb6\xa0\x3c\xf0\x0e\xc1\xf6\xba\x81\x8d\x25\xb8\xcc\x09\x1f\x9e\xfb\xeb\x1a\x0b\x15\xa7\x96\x5b\x40\xd6\xc7\xcd\x22\x2f\x34\x75\xe0\x50\x08\x71\x94\xf4\x3a\xae\x0f\xb0\x98\x5a\x7d\x50\x2a\xe5\xa2\xaf\x48\xb9\xc8\xbd\x6d\x45\x78\x00\xa3\x17\x01\xea\x7c\x83\xd0\xc4\x06\x02\x98\xda\x80\x25\xc8\xf1\x6b\x27\x4c\xe6\x91\x8e\xaa\x42\xca\x8a\xc1\x3e\x5b\x92\xdb\xb0\x9f\x08\x7c\x64\x52\x66\x9b\x17\xe0\xe3\xa2\xc3\x4c\x0d\xa6\xf8\x15\x57\xfe\x63\xb5\xd3\xc9\x80\x62\x02\x1e\xcf\xc9\xd3\xc9\x3b\x4b\x5a\xf2\x4a\x92\xd4\xa1\x56\x01\xfd\x83\x0f\xe8\x0f\x7b\xf6\x9f\x15\xef\x56\x27\xeb\xf4\x58\x66\x21\xe5\x52\x25\x63\x39\x66\xbf\xb7\xe9\x2a\xae\xf5\x1e\x90\xdf\x9c\x7c\xf7\x2b\x34\x2e\xd2\xf3\x8a\x9f\x20\x59\xb8\x4c\x7b\x37\x7f\x9c\xe5\xf9\xda\xfa\x51\x0c\xf5\xc1\xf3\xad\x5e\x63\xfd\xc9\x28\xed\xf6\xa8\xd1\x30\xd6\x63\x6f\x2c\x2f\x44\x2b\xc2\x70\xb8\xfa\x65\x04\x85\x35\x02\x06\xe0\x1a\x6b\x60\x0b\x3b\x79\x8c\xd6\x7d\x94\x54\x43\x65\xb5\x93\xac\xd6\x7b\x84\x0e\x2b\x3a\xdc\x97\xa7\x47\x7e\xbd\x86\x67\x3a\x54\x0c\x4d\x2b\xc4\xe6\x60\x2a\xc8\xfd\xf5\xa4\x62\x12\xdd\xa9\xd8\x03\xcf\x24\x27\x12\xf2\x81\x0c\x64\x57\x01\xb2\x20\xef\xcf\x3d\x35\xa1\x99\xbf\x62\xa2\xfe\xb0\x19\xb5\x11\x12\xc1\x02\x96\xf8\xd8\xfd\x52\x96\x96\xef\x5e\xba\xbf\x25\xb2\x94\x0f\xe7\x6e\x31\x1c\x38\x2f\x4a\x8a\xd3\xa4\x1c\xab\x37\x41\x9e\x7f\xc0\x9b\x49\xbc\xdf\x11\xe8\x42\x91\xb3\x50\x97\xab\x4e\xbd\xef\x01\x00\x00\xff\xff\x90\x85\xb0\xf4\x41\x08\x00\x00") +var _cmdDefinitionsTmplOperationTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xcc\x54\x5d\x8b\x53\x31\x10\x7d\xcf\xaf\x18\x42\x1f\xee\x85\xb5\x7d\x17\xf6\x49\x57\x58\x90\xdd\xa2\x88\x8f\x92\xe6\x4e\xdb\x60\xf3\xe1\x64\xba\x1f\x5c\xf3\xdf\x25\xb9\x69\xf7\xb6\x54\x4b\x55\xc4\xb7\x4c\x92\x39\x67\xce\x99\x4c\x82\xd2\x5f\xd5\x0a\x81\x9f\x03\x46\x21\x8c\x0d\x9e\x18\x1a\x01\x00\x20\xb5\x77\x8c\x4f\x2c\x87\xc8\xf8\xba\x70\xc8\xb3\x35\x73\xa8\x21\x1b\x8b\x52\xb4\x42\xf4\xfd\x2b\x20\xe5\x56\x08\x93\x2f\x57\x30\x31\xf0\xfa\x1a\xa6\xb7\x8e\x91\x96\x4a\x63\x84\x94\x44\xdf\xc3\xc4\x4c\xdf\x62\xd4\x64\x02\x1b\xef\xf2\x66\xe6\x86\x7a\x62\x62\xd8\xa8\xe7\x3b\x65\x11\x52\x02\xb3\x4b\x86\xbe\x70\x65\x06\xb3\x04\x4f\xd0\xe0\xb7\x7c\xbf\x5c\x94\x11\xe9\xc1\x68\x24\xd9\x1e\xed\xb3\x27\xb5\xca\xfb\x29\x95\xfc\x8f\x4c\xc6\xad\x9a\x16\x62\x59\xec\x31\xd1\x75\xb9\x90\x1a\x8f\x45\xf8\x90\x55\x4c\xcc\xf4\x3e\x14\x01\xf9\xc6\x6c\x56\xaa\xf5\x61\xa0\xf9\x0e\xec\xe7\x2a\x6a\xb5\xc9\x25\xd7\x93\x23\x89\x15\xf8\x74\x4e\x53\x4f\xde\x79\xb2\x8a\xe7\x8a\x94\xcd\x5c\x2d\x1c\x1e\x7c\xc0\xb8\xdd\x70\xfc\x6c\x78\x3d\x1f\xba\x76\xa0\x52\xe6\x94\xb1\x4b\xce\x73\xc9\x7e\xef\x07\x9a\xb3\xb5\x67\xe4\x37\x43\xcb\x7f\x47\xc6\x28\xbd\xd1\xfc\x04\xf5\xf5\x4c\xeb\xde\xd5\x5f\x57\xb9\x6b\xdb\x61\x54\x42\xbb\x8d\x7c\x63\x17\xd8\x7d\x72\xc6\x86\x0d\x5a\x74\x8c\xdd\xa9\x37\xd6\xb4\x22\x09\x31\x9b\xc1\xd9\x9b\x05\x14\x16\x08\x98\x81\x3b\xec\x80\x3d\xac\xd5\x03\xc2\xd2\xd3\xa3\xa2\x0e\xb4\xb7\x41\xb1\x59\x6c\x10\xf6\x58\x2a\x7b\x17\xa7\xc3\x23\x3f\xcf\x11\x99\xb6\x9a\xa1\x4f\x42\x2c\xb7\x4e\x43\x13\xcf\x27\xb5\x17\xc9\xbd\x14\xfb\x68\x66\xea\x24\x12\xf2\x96\x1c\xc8\xb3\x00\x32\xdb\xfb\xeb\x99\xba\xa0\x98\x7f\x32\x44\x87\x9f\xcd\xc9\x31\x42\x22\xb8\x86\x3b\x7c\xbc\x0f\x48\xa5\xc5\x77\x9e\x6f\x5f\xaa\xbf\x21\xf2\xd4\xc8\x71\xb5\x29\xc9\xf6\xf8\xc3\x79\x71\x52\x24\xf1\x33\xbe\x0b\xec\xf9\x0f\x66\xb3\x9a\xf7\x27\x06\x8d\x1c\xd9\x19\x35\x5e\xed\xdd\xfb\x11\x00\x00\xff\xff\x15\xfc\x02\xfd\xbc\x06\x00\x00") func cmdDefinitionsTmplOperationTmplBytes() ([]byte, error) { return bindataRead( @@ -278,7 +278,7 @@ func cmdDefinitionsTmplOperationTmpl() (*asset, error) { } info := bindataFileInfo{name: "cmd/definitions/tmpl/operation.tmpl", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x2e, 0x96, 0x53, 0xae, 0xa1, 0x71, 0xc3, 0x6a, 0xbb, 0x44, 0x86, 0x22, 0x32, 0x2f, 0x89, 0x1c, 0x7e, 0x7c, 0xce, 0xaa, 0x5d, 0x4f, 0x5a, 0x85, 0x74, 0xb5, 0xa6, 0x3a, 0xa1, 0xda, 0xaf, 0x3a}} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x66, 0xcb, 0x17, 0xca, 0x91, 0xbe, 0x2d, 0x99, 0xd5, 0x6e, 0x4, 0x8e, 0xfe, 0x6b, 0xf9, 0x3c, 0x3a, 0xf4, 0xfc, 0x3e, 0x84, 0xa3, 0x15, 0x2b, 0x27, 0x74, 0xa6, 0x9f, 0xc0, 0xd2, 0xe5, 0xc5}} return a, nil } diff --git a/cmd/definitions/tmpl/operation.tmpl b/cmd/definitions/tmpl/operation.tmpl index 91e5444ed..bd08c3168 100644 --- a/cmd/definitions/tmpl/operation.tmpl +++ b/cmd/definitions/tmpl/operation.tmpl @@ -8,20 +8,6 @@ import ( ) {{- range $_, $i := .Interfaces }} -// Operation names in {{ $i.DisplayName }}. -const ( -{{- range $_, $op := $i.Ops }} - // Op{{ $i.DisplayName }}{{ $op.Name | toPascal }} is the operation name for {{ $op.Name }} in {{ $i.Name }}. - Op{{ $i.DisplayName }}{{ $op.Name | toPascal }} = "{{ $op.Name }}" -{{- end }} -) - -var ( -{{- range $_, $op := $i.Ops }} - _ = Op{{ $i.DisplayName }}{{ $op.Name | toPascal }} -{{- end }} -) - {{ $i.Description }} type {{ $i.DisplayName }} interface { {{- if or (eq $i.Name "servicer") (eq $i.Name "storager")}} diff --git a/definitions/operations.toml b/definitions/operations.toml index 00cf0062f..d0b19bf04 100644 --- a/definitions/operations.toml +++ b/definitions/operations.toml @@ -99,14 +99,6 @@ will fetch from a given url to path. - A successful fetch operation should be complete, which means the object's content and metadata should be the same as requiring from the url. """ -[http_signer] -description = "is the interface for Signer." - -[http_signer.op.query_sign_http] -description = "will return `*http.Request` with query string parameters containing signature in `URL` to represent the client's request." -params = ["op", "path", "expire"] -results = ["req"] - [mover] description = "is the interface for Move." @@ -295,6 +287,19 @@ will write data into a file. - A successful write operation SHOULD be complete, which means the object's content and metadata should be the same as specified in write request. """ +[storage_http_signer] +description = "is the interface for Storager related operations which support authentication." + +[storage_http_signer.op.query_sign_http_read] +description = "will read data from the file by using query parameters to authenticate requests." +params = ["path", "expire"] +results = ["req"] + +[storage_http_signer.op.query_sign_http_write] +description = "will write data into a file by using query parameters to authenticate requests." +params = ["path", "size", "expire"] +results = ["req"] + [linker] description = "is the interface for link" diff --git a/types/operation.generated.go b/types/operation.generated.go index 84e334fe5..a688574db 100644 --- a/types/operation.generated.go +++ b/types/operation.generated.go @@ -7,22 +7,6 @@ import ( "time" ) -// Operation names in Appender. -const ( - // OpAppenderCommitAppend is the operation name for commit_append in appender. - OpAppenderCommitAppend = "commit_append" - // OpAppenderCreateAppend is the operation name for create_append in appender. - OpAppenderCreateAppend = "create_append" - // OpAppenderWriteAppend is the operation name for write_append in appender. - OpAppenderWriteAppend = "write_append" -) - -var ( - _ = OpAppenderCommitAppend - _ = OpAppenderCreateAppend - _ = OpAppenderWriteAppend -) - // Appender is the interface for Append related operations. type Appender interface { @@ -92,25 +76,6 @@ func (s UnimplementedAppender) WriteAppendWithContext(ctx context.Context, o *Ob return } -// Operation names in Blocker. -const ( - // OpBlockerCombineBlock is the operation name for combine_block in blocker. - OpBlockerCombineBlock = "combine_block" - // OpBlockerCreateBlock is the operation name for create_block in blocker. - OpBlockerCreateBlock = "create_block" - // OpBlockerListBlock is the operation name for list_block in blocker. - OpBlockerListBlock = "list_block" - // OpBlockerWriteBlock is the operation name for write_block in blocker. - OpBlockerWriteBlock = "write_block" -) - -var ( - _ = OpBlockerCombineBlock - _ = OpBlockerCreateBlock - _ = OpBlockerListBlock - _ = OpBlockerWriteBlock -) - // Blocker is the interface for Block related operations. type Blocker interface { @@ -192,16 +157,6 @@ func (s UnimplementedBlocker) WriteBlockWithContext(ctx context.Context, o *Obje return } -// Operation names in Copier. -const ( - // OpCopierCopy is the operation name for copy in copier. - OpCopierCopy = "copy" -) - -var ( - _ = OpCopierCopy -) - // Copier is the interface for Copy. type Copier interface { @@ -253,16 +208,6 @@ func (s UnimplementedCopier) CopyWithContext(ctx context.Context, src string, ds return } -// Operation names in Direr. -const ( - // OpDirerCreateDir is the operation name for create_dir in direr. - OpDirerCreateDir = "create_dir" -) - -var ( - _ = OpDirerCreateDir -) - // Direr is the interface for Directory. type Direr interface { @@ -292,16 +237,6 @@ func (s UnimplementedDirer) CreateDirWithContext(ctx context.Context, path strin return } -// Operation names in Fetcher. -const ( - // OpFetcherFetch is the operation name for fetch in fetcher. - OpFetcherFetch = "fetch" -) - -var ( - _ = OpFetcherFetch -) - // Fetcher is the interface for Fetch. type Fetcher interface { @@ -341,55 +276,6 @@ func (s UnimplementedFetcher) FetchWithContext(ctx context.Context, path string, return } -// Operation names in HTTPSigner. -const ( - // OpHTTPSignerQuerySignHTTP is the operation name for query_sign_http in http_signer. - OpHTTPSignerQuerySignHTTP = "query_sign_http" -) - -var ( - _ = OpHTTPSignerQuerySignHTTP -) - -// HTTPSigner is the interface for Signer. -type HTTPSigner interface { - - // QuerySignHTTP will return `*http.Request` with query string parameters containing signature in `URL` to represent the client's request. - QuerySignHTTP(op string, path string, expire time.Duration, pairs ...Pair) (req *http.Request, err error) - // QuerySignHTTPWithContext will return `*http.Request` with query string parameters containing signature in `URL` to represent the client's request. - QuerySignHTTPWithContext(ctx context.Context, op string, path string, expire time.Duration, pairs ...Pair) (req *http.Request, err error) - - mustEmbedUnimplementedHTTPSigner() -} - -// UnimplementedHTTPSigner must be embedded to have forward compatible implementations. -type UnimplementedHTTPSigner struct{} - -func (s UnimplementedHTTPSigner) mustEmbedUnimplementedHTTPSigner() {} - -func (s UnimplementedHTTPSigner) String() string { - return "UnimplementedHTTPSigner" -} - -func (s UnimplementedHTTPSigner) QuerySignHTTP(op string, path string, expire time.Duration, pairs ...Pair) (req *http.Request, err error) { - err = NewOperationNotImplementedError("query_sign_http") - return -} -func (s UnimplementedHTTPSigner) QuerySignHTTPWithContext(ctx context.Context, op string, path string, expire time.Duration, pairs ...Pair) (req *http.Request, err error) { - err = NewOperationNotImplementedError("query_sign_http") - return -} - -// Operation names in Linker. -const ( - // OpLinkerCreateLink is the operation name for create_link in linker. - OpLinkerCreateLink = "create_link" -) - -var ( - _ = OpLinkerCreateLink -) - // Linker is the interface for link type Linker interface { @@ -441,16 +327,6 @@ func (s UnimplementedLinker) CreateLinkWithContext(ctx context.Context, path str return } -// Operation names in Mover. -const ( - // OpMoverMove is the operation name for move in mover. - OpMoverMove = "move" -) - -var ( - _ = OpMoverMove -) - // Mover is the interface for Move. type Mover interface { @@ -502,25 +378,6 @@ func (s UnimplementedMover) MoveWithContext(ctx context.Context, src string, dst return } -// Operation names in Multiparter. -const ( - // OpMultiparterCompleteMultipart is the operation name for complete_multipart in multiparter. - OpMultiparterCompleteMultipart = "complete_multipart" - // OpMultiparterCreateMultipart is the operation name for create_multipart in multiparter. - OpMultiparterCreateMultipart = "create_multipart" - // OpMultiparterListMultipart is the operation name for list_multipart in multiparter. - OpMultiparterListMultipart = "list_multipart" - // OpMultiparterWriteMultipart is the operation name for write_multipart in multiparter. - OpMultiparterWriteMultipart = "write_multipart" -) - -var ( - _ = OpMultiparterCompleteMultipart - _ = OpMultiparterCreateMultipart - _ = OpMultiparterListMultipart - _ = OpMultiparterWriteMultipart -) - // Multiparter is the interface for Multipart related operations. type Multiparter interface { @@ -600,19 +457,6 @@ func (s UnimplementedMultiparter) WriteMultipartWithContext(ctx context.Context, return } -// Operation names in Pager. -const ( - // OpPagerCreatePage is the operation name for create_page in pager. - OpPagerCreatePage = "create_page" - // OpPagerWritePage is the operation name for write_page in pager. - OpPagerWritePage = "write_page" -) - -var ( - _ = OpPagerCreatePage - _ = OpPagerWritePage -) - // Pager is the interface for Page related operations which support random write. type Pager interface { @@ -664,16 +508,6 @@ func (s UnimplementedPager) WritePageWithContext(ctx context.Context, o *Object, return } -// Operation names in Reacher. -const ( - // OpReacherReach is the operation name for reach in reacher. - OpReacherReach = "reach" -) - -var ( - _ = OpReacherReach -) - // Reacher is the interface for Reach. type Reacher interface { @@ -703,25 +537,6 @@ func (s UnimplementedReacher) ReachWithContext(ctx context.Context, path string, return } -// Operation names in Servicer. -const ( - // OpServicerCreate is the operation name for create in servicer. - OpServicerCreate = "create" - // OpServicerDelete is the operation name for delete in servicer. - OpServicerDelete = "delete" - // OpServicerGet is the operation name for get in servicer. - OpServicerGet = "get" - // OpServicerList is the operation name for list in servicer. - OpServicerList = "list" -) - -var ( - _ = OpServicerCreate - _ = OpServicerDelete - _ = OpServicerGet - _ = OpServicerList -) - // Servicer can maintain multipart storage services. type Servicer interface { String() string @@ -794,33 +609,48 @@ func (s UnimplementedServicer) ListWithContext(ctx context.Context, pairs ...Pai return } -// Operation names in Storager. -const ( - // OpStoragerCreate is the operation name for create in storager. - OpStoragerCreate = "create" - // OpStoragerDelete is the operation name for delete in storager. - OpStoragerDelete = "delete" - // OpStoragerList is the operation name for list in storager. - OpStoragerList = "list" - // OpStoragerMetadata is the operation name for metadata in storager. - OpStoragerMetadata = "metadata" - // OpStoragerRead is the operation name for read in storager. - OpStoragerRead = "read" - // OpStoragerStat is the operation name for stat in storager. - OpStoragerStat = "stat" - // OpStoragerWrite is the operation name for write in storager. - OpStoragerWrite = "write" -) +// StorageHTTPSigner is the interface for Storager related operations which support authentication. +type StorageHTTPSigner interface { -var ( - _ = OpStoragerCreate - _ = OpStoragerDelete - _ = OpStoragerList - _ = OpStoragerMetadata - _ = OpStoragerRead - _ = OpStoragerStat - _ = OpStoragerWrite -) + // QuerySignHTTPRead will read data from the file by using query parameters to authenticate requests. + QuerySignHTTPRead(path string, expire time.Duration, pairs ...Pair) (req *http.Request, err error) + // QuerySignHTTPReadWithContext will read data from the file by using query parameters to authenticate requests. + QuerySignHTTPReadWithContext(ctx context.Context, path string, expire time.Duration, pairs ...Pair) (req *http.Request, err error) + + // QuerySignHTTPWrite will write data into a file by using query parameters to authenticate requests. + QuerySignHTTPWrite(path string, size int64, expire time.Duration, pairs ...Pair) (req *http.Request, err error) + // QuerySignHTTPWriteWithContext will write data into a file by using query parameters to authenticate requests. + QuerySignHTTPWriteWithContext(ctx context.Context, path string, size int64, expire time.Duration, pairs ...Pair) (req *http.Request, err error) + + mustEmbedUnimplementedStorageHTTPSigner() +} + +// UnimplementedStorageHTTPSigner must be embedded to have forward compatible implementations. +type UnimplementedStorageHTTPSigner struct{} + +func (s UnimplementedStorageHTTPSigner) mustEmbedUnimplementedStorageHTTPSigner() {} + +func (s UnimplementedStorageHTTPSigner) String() string { + return "UnimplementedStorageHTTPSigner" +} + +func (s UnimplementedStorageHTTPSigner) QuerySignHTTPRead(path string, expire time.Duration, pairs ...Pair) (req *http.Request, err error) { + err = NewOperationNotImplementedError("query_sign_http_read") + return +} +func (s UnimplementedStorageHTTPSigner) QuerySignHTTPReadWithContext(ctx context.Context, path string, expire time.Duration, pairs ...Pair) (req *http.Request, err error) { + err = NewOperationNotImplementedError("query_sign_http_read") + return +} + +func (s UnimplementedStorageHTTPSigner) QuerySignHTTPWrite(path string, size int64, expire time.Duration, pairs ...Pair) (req *http.Request, err error) { + err = NewOperationNotImplementedError("query_sign_http_write") + return +} +func (s UnimplementedStorageHTTPSigner) QuerySignHTTPWriteWithContext(ctx context.Context, path string, size int64, expire time.Duration, pairs ...Pair) (req *http.Request, err error) { + err = NewOperationNotImplementedError("query_sign_http_write") + return +} // Storager is the interface for storage service. type Storager interface {