|
|
|
@ -7,9 +7,10 @@ Package etcdserverpb is a reverse proxy.
|
|
|
|
|
|
|
|
|
|
It translates gRPC into RESTful JSON APIs.
|
|
|
|
|
*/
|
|
|
|
|
package etcdserverpb
|
|
|
|
|
package gw
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"github.com/coreos/etcd/etcdserver/etcdserverpb"
|
|
|
|
|
"io"
|
|
|
|
|
"net/http"
|
|
|
|
|
|
|
|
|
@ -27,8 +28,8 @@ var _ io.Reader
|
|
|
|
|
var _ = runtime.String
|
|
|
|
|
var _ = utilities.NewDoubleArray
|
|
|
|
|
|
|
|
|
|
func request_KV_Range_0(ctx context.Context, marshaler runtime.Marshaler, client KVClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq RangeRequest
|
|
|
|
|
func request_KV_Range_0(ctx context.Context, marshaler runtime.Marshaler, client etcdserverpb.KVClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq etcdserverpb.RangeRequest
|
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
|
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil {
|
|
|
|
@ -40,8 +41,8 @@ func request_KV_Range_0(ctx context.Context, marshaler runtime.Marshaler, client
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func request_KV_Put_0(ctx context.Context, marshaler runtime.Marshaler, client KVClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq PutRequest
|
|
|
|
|
func request_KV_Put_0(ctx context.Context, marshaler runtime.Marshaler, client etcdserverpb.KVClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq etcdserverpb.PutRequest
|
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
|
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil {
|
|
|
|
@ -53,8 +54,8 @@ func request_KV_Put_0(ctx context.Context, marshaler runtime.Marshaler, client K
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func request_KV_DeleteRange_0(ctx context.Context, marshaler runtime.Marshaler, client KVClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq DeleteRangeRequest
|
|
|
|
|
func request_KV_DeleteRange_0(ctx context.Context, marshaler runtime.Marshaler, client etcdserverpb.KVClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq etcdserverpb.DeleteRangeRequest
|
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
|
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil {
|
|
|
|
@ -66,8 +67,8 @@ func request_KV_DeleteRange_0(ctx context.Context, marshaler runtime.Marshaler,
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func request_KV_Txn_0(ctx context.Context, marshaler runtime.Marshaler, client KVClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq TxnRequest
|
|
|
|
|
func request_KV_Txn_0(ctx context.Context, marshaler runtime.Marshaler, client etcdserverpb.KVClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq etcdserverpb.TxnRequest
|
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
|
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil {
|
|
|
|
@ -79,8 +80,8 @@ func request_KV_Txn_0(ctx context.Context, marshaler runtime.Marshaler, client K
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func request_KV_Compact_0(ctx context.Context, marshaler runtime.Marshaler, client KVClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq CompactionRequest
|
|
|
|
|
func request_KV_Compact_0(ctx context.Context, marshaler runtime.Marshaler, client etcdserverpb.KVClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq etcdserverpb.CompactionRequest
|
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
|
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil {
|
|
|
|
@ -92,7 +93,7 @@ func request_KV_Compact_0(ctx context.Context, marshaler runtime.Marshaler, clie
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func request_Watch_Watch_0(ctx context.Context, marshaler runtime.Marshaler, client WatchClient, req *http.Request, pathParams map[string]string) (Watch_WatchClient, runtime.ServerMetadata, error) {
|
|
|
|
|
func request_Watch_Watch_0(ctx context.Context, marshaler runtime.Marshaler, client etcdserverpb.WatchClient, req *http.Request, pathParams map[string]string) (etcdserverpb.Watch_WatchClient, runtime.ServerMetadata, error) {
|
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
stream, err := client.Watch(ctx)
|
|
|
|
|
if err != nil {
|
|
|
|
@ -101,7 +102,7 @@ func request_Watch_Watch_0(ctx context.Context, marshaler runtime.Marshaler, cli
|
|
|
|
|
}
|
|
|
|
|
dec := marshaler.NewDecoder(req.Body)
|
|
|
|
|
handleSend := func() error {
|
|
|
|
|
var protoReq WatchRequest
|
|
|
|
|
var protoReq etcdserverpb.WatchRequest
|
|
|
|
|
err = dec.Decode(&protoReq)
|
|
|
|
|
if err == io.EOF {
|
|
|
|
|
return err
|
|
|
|
@ -144,8 +145,8 @@ func request_Watch_Watch_0(ctx context.Context, marshaler runtime.Marshaler, cli
|
|
|
|
|
return stream, metadata, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func request_Lease_LeaseGrant_0(ctx context.Context, marshaler runtime.Marshaler, client LeaseClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq LeaseGrantRequest
|
|
|
|
|
func request_Lease_LeaseGrant_0(ctx context.Context, marshaler runtime.Marshaler, client etcdserverpb.LeaseClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq etcdserverpb.LeaseGrantRequest
|
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
|
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil {
|
|
|
|
@ -157,8 +158,8 @@ func request_Lease_LeaseGrant_0(ctx context.Context, marshaler runtime.Marshaler
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func request_Lease_LeaseRevoke_0(ctx context.Context, marshaler runtime.Marshaler, client LeaseClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq LeaseRevokeRequest
|
|
|
|
|
func request_Lease_LeaseRevoke_0(ctx context.Context, marshaler runtime.Marshaler, client etcdserverpb.LeaseClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq etcdserverpb.LeaseRevokeRequest
|
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
|
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil {
|
|
|
|
@ -170,7 +171,7 @@ func request_Lease_LeaseRevoke_0(ctx context.Context, marshaler runtime.Marshale
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func request_Lease_LeaseKeepAlive_0(ctx context.Context, marshaler runtime.Marshaler, client LeaseClient, req *http.Request, pathParams map[string]string) (Lease_LeaseKeepAliveClient, runtime.ServerMetadata, error) {
|
|
|
|
|
func request_Lease_LeaseKeepAlive_0(ctx context.Context, marshaler runtime.Marshaler, client etcdserverpb.LeaseClient, req *http.Request, pathParams map[string]string) (etcdserverpb.Lease_LeaseKeepAliveClient, runtime.ServerMetadata, error) {
|
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
stream, err := client.LeaseKeepAlive(ctx)
|
|
|
|
|
if err != nil {
|
|
|
|
@ -179,7 +180,7 @@ func request_Lease_LeaseKeepAlive_0(ctx context.Context, marshaler runtime.Marsh
|
|
|
|
|
}
|
|
|
|
|
dec := marshaler.NewDecoder(req.Body)
|
|
|
|
|
handleSend := func() error {
|
|
|
|
|
var protoReq LeaseKeepAliveRequest
|
|
|
|
|
var protoReq etcdserverpb.LeaseKeepAliveRequest
|
|
|
|
|
err = dec.Decode(&protoReq)
|
|
|
|
|
if err == io.EOF {
|
|
|
|
|
return err
|
|
|
|
@ -222,8 +223,8 @@ func request_Lease_LeaseKeepAlive_0(ctx context.Context, marshaler runtime.Marsh
|
|
|
|
|
return stream, metadata, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func request_Lease_LeaseTimeToLive_0(ctx context.Context, marshaler runtime.Marshaler, client LeaseClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq LeaseTimeToLiveRequest
|
|
|
|
|
func request_Lease_LeaseTimeToLive_0(ctx context.Context, marshaler runtime.Marshaler, client etcdserverpb.LeaseClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq etcdserverpb.LeaseTimeToLiveRequest
|
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
|
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil {
|
|
|
|
@ -235,8 +236,8 @@ func request_Lease_LeaseTimeToLive_0(ctx context.Context, marshaler runtime.Mars
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func request_Cluster_MemberAdd_0(ctx context.Context, marshaler runtime.Marshaler, client ClusterClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq MemberAddRequest
|
|
|
|
|
func request_Cluster_MemberAdd_0(ctx context.Context, marshaler runtime.Marshaler, client etcdserverpb.ClusterClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq etcdserverpb.MemberAddRequest
|
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
|
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil {
|
|
|
|
@ -248,8 +249,8 @@ func request_Cluster_MemberAdd_0(ctx context.Context, marshaler runtime.Marshale
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func request_Cluster_MemberRemove_0(ctx context.Context, marshaler runtime.Marshaler, client ClusterClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq MemberRemoveRequest
|
|
|
|
|
func request_Cluster_MemberRemove_0(ctx context.Context, marshaler runtime.Marshaler, client etcdserverpb.ClusterClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq etcdserverpb.MemberRemoveRequest
|
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
|
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil {
|
|
|
|
@ -261,8 +262,8 @@ func request_Cluster_MemberRemove_0(ctx context.Context, marshaler runtime.Marsh
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func request_Cluster_MemberUpdate_0(ctx context.Context, marshaler runtime.Marshaler, client ClusterClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq MemberUpdateRequest
|
|
|
|
|
func request_Cluster_MemberUpdate_0(ctx context.Context, marshaler runtime.Marshaler, client etcdserverpb.ClusterClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq etcdserverpb.MemberUpdateRequest
|
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
|
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil {
|
|
|
|
@ -274,8 +275,8 @@ func request_Cluster_MemberUpdate_0(ctx context.Context, marshaler runtime.Marsh
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func request_Cluster_MemberList_0(ctx context.Context, marshaler runtime.Marshaler, client ClusterClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq MemberListRequest
|
|
|
|
|
func request_Cluster_MemberList_0(ctx context.Context, marshaler runtime.Marshaler, client etcdserverpb.ClusterClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq etcdserverpb.MemberListRequest
|
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
|
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil {
|
|
|
|
@ -287,8 +288,8 @@ func request_Cluster_MemberList_0(ctx context.Context, marshaler runtime.Marshal
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func request_Maintenance_Alarm_0(ctx context.Context, marshaler runtime.Marshaler, client MaintenanceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq AlarmRequest
|
|
|
|
|
func request_Maintenance_Alarm_0(ctx context.Context, marshaler runtime.Marshaler, client etcdserverpb.MaintenanceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq etcdserverpb.AlarmRequest
|
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
|
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil {
|
|
|
|
@ -300,8 +301,8 @@ func request_Maintenance_Alarm_0(ctx context.Context, marshaler runtime.Marshale
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func request_Maintenance_Status_0(ctx context.Context, marshaler runtime.Marshaler, client MaintenanceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq StatusRequest
|
|
|
|
|
func request_Maintenance_Status_0(ctx context.Context, marshaler runtime.Marshaler, client etcdserverpb.MaintenanceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq etcdserverpb.StatusRequest
|
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
|
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil {
|
|
|
|
@ -313,8 +314,8 @@ func request_Maintenance_Status_0(ctx context.Context, marshaler runtime.Marshal
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func request_Maintenance_Defragment_0(ctx context.Context, marshaler runtime.Marshaler, client MaintenanceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq DefragmentRequest
|
|
|
|
|
func request_Maintenance_Defragment_0(ctx context.Context, marshaler runtime.Marshaler, client etcdserverpb.MaintenanceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq etcdserverpb.DefragmentRequest
|
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
|
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil {
|
|
|
|
@ -326,8 +327,8 @@ func request_Maintenance_Defragment_0(ctx context.Context, marshaler runtime.Mar
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func request_Maintenance_Hash_0(ctx context.Context, marshaler runtime.Marshaler, client MaintenanceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq HashRequest
|
|
|
|
|
func request_Maintenance_Hash_0(ctx context.Context, marshaler runtime.Marshaler, client etcdserverpb.MaintenanceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq etcdserverpb.HashRequest
|
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
|
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil {
|
|
|
|
@ -339,8 +340,8 @@ func request_Maintenance_Hash_0(ctx context.Context, marshaler runtime.Marshaler
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func request_Maintenance_Snapshot_0(ctx context.Context, marshaler runtime.Marshaler, client MaintenanceClient, req *http.Request, pathParams map[string]string) (Maintenance_SnapshotClient, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq SnapshotRequest
|
|
|
|
|
func request_Maintenance_Snapshot_0(ctx context.Context, marshaler runtime.Marshaler, client etcdserverpb.MaintenanceClient, req *http.Request, pathParams map[string]string) (etcdserverpb.Maintenance_SnapshotClient, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq etcdserverpb.SnapshotRequest
|
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
|
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil {
|
|
|
|
@ -360,8 +361,8 @@ func request_Maintenance_Snapshot_0(ctx context.Context, marshaler runtime.Marsh
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func request_Auth_AuthEnable_0(ctx context.Context, marshaler runtime.Marshaler, client AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq AuthEnableRequest
|
|
|
|
|
func request_Auth_AuthEnable_0(ctx context.Context, marshaler runtime.Marshaler, client etcdserverpb.AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq etcdserverpb.AuthEnableRequest
|
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
|
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil {
|
|
|
|
@ -373,8 +374,8 @@ func request_Auth_AuthEnable_0(ctx context.Context, marshaler runtime.Marshaler,
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func request_Auth_AuthDisable_0(ctx context.Context, marshaler runtime.Marshaler, client AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq AuthDisableRequest
|
|
|
|
|
func request_Auth_AuthDisable_0(ctx context.Context, marshaler runtime.Marshaler, client etcdserverpb.AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq etcdserverpb.AuthDisableRequest
|
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
|
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil {
|
|
|
|
@ -386,8 +387,8 @@ func request_Auth_AuthDisable_0(ctx context.Context, marshaler runtime.Marshaler
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func request_Auth_Authenticate_0(ctx context.Context, marshaler runtime.Marshaler, client AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq AuthenticateRequest
|
|
|
|
|
func request_Auth_Authenticate_0(ctx context.Context, marshaler runtime.Marshaler, client etcdserverpb.AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq etcdserverpb.AuthenticateRequest
|
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
|
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil {
|
|
|
|
@ -399,8 +400,8 @@ func request_Auth_Authenticate_0(ctx context.Context, marshaler runtime.Marshale
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func request_Auth_UserAdd_0(ctx context.Context, marshaler runtime.Marshaler, client AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq AuthUserAddRequest
|
|
|
|
|
func request_Auth_UserAdd_0(ctx context.Context, marshaler runtime.Marshaler, client etcdserverpb.AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq etcdserverpb.AuthUserAddRequest
|
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
|
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil {
|
|
|
|
@ -412,8 +413,8 @@ func request_Auth_UserAdd_0(ctx context.Context, marshaler runtime.Marshaler, cl
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func request_Auth_UserGet_0(ctx context.Context, marshaler runtime.Marshaler, client AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq AuthUserGetRequest
|
|
|
|
|
func request_Auth_UserGet_0(ctx context.Context, marshaler runtime.Marshaler, client etcdserverpb.AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq etcdserverpb.AuthUserGetRequest
|
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
|
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil {
|
|
|
|
@ -425,8 +426,8 @@ func request_Auth_UserGet_0(ctx context.Context, marshaler runtime.Marshaler, cl
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func request_Auth_UserList_0(ctx context.Context, marshaler runtime.Marshaler, client AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq AuthUserListRequest
|
|
|
|
|
func request_Auth_UserList_0(ctx context.Context, marshaler runtime.Marshaler, client etcdserverpb.AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq etcdserverpb.AuthUserListRequest
|
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
|
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil {
|
|
|
|
@ -438,8 +439,8 @@ func request_Auth_UserList_0(ctx context.Context, marshaler runtime.Marshaler, c
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func request_Auth_UserDelete_0(ctx context.Context, marshaler runtime.Marshaler, client AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq AuthUserDeleteRequest
|
|
|
|
|
func request_Auth_UserDelete_0(ctx context.Context, marshaler runtime.Marshaler, client etcdserverpb.AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq etcdserverpb.AuthUserDeleteRequest
|
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
|
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil {
|
|
|
|
@ -451,8 +452,8 @@ func request_Auth_UserDelete_0(ctx context.Context, marshaler runtime.Marshaler,
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func request_Auth_UserChangePassword_0(ctx context.Context, marshaler runtime.Marshaler, client AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq AuthUserChangePasswordRequest
|
|
|
|
|
func request_Auth_UserChangePassword_0(ctx context.Context, marshaler runtime.Marshaler, client etcdserverpb.AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq etcdserverpb.AuthUserChangePasswordRequest
|
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
|
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil {
|
|
|
|
@ -464,8 +465,8 @@ func request_Auth_UserChangePassword_0(ctx context.Context, marshaler runtime.Ma
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func request_Auth_UserGrantRole_0(ctx context.Context, marshaler runtime.Marshaler, client AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq AuthUserGrantRoleRequest
|
|
|
|
|
func request_Auth_UserGrantRole_0(ctx context.Context, marshaler runtime.Marshaler, client etcdserverpb.AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq etcdserverpb.AuthUserGrantRoleRequest
|
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
|
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil {
|
|
|
|
@ -477,8 +478,8 @@ func request_Auth_UserGrantRole_0(ctx context.Context, marshaler runtime.Marshal
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func request_Auth_UserRevokeRole_0(ctx context.Context, marshaler runtime.Marshaler, client AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq AuthUserRevokeRoleRequest
|
|
|
|
|
func request_Auth_UserRevokeRole_0(ctx context.Context, marshaler runtime.Marshaler, client etcdserverpb.AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq etcdserverpb.AuthUserRevokeRoleRequest
|
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
|
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil {
|
|
|
|
@ -490,8 +491,8 @@ func request_Auth_UserRevokeRole_0(ctx context.Context, marshaler runtime.Marsha
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func request_Auth_RoleAdd_0(ctx context.Context, marshaler runtime.Marshaler, client AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq AuthRoleAddRequest
|
|
|
|
|
func request_Auth_RoleAdd_0(ctx context.Context, marshaler runtime.Marshaler, client etcdserverpb.AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq etcdserverpb.AuthRoleAddRequest
|
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
|
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil {
|
|
|
|
@ -503,8 +504,8 @@ func request_Auth_RoleAdd_0(ctx context.Context, marshaler runtime.Marshaler, cl
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func request_Auth_RoleGet_0(ctx context.Context, marshaler runtime.Marshaler, client AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq AuthRoleGetRequest
|
|
|
|
|
func request_Auth_RoleGet_0(ctx context.Context, marshaler runtime.Marshaler, client etcdserverpb.AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq etcdserverpb.AuthRoleGetRequest
|
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
|
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil {
|
|
|
|
@ -516,8 +517,8 @@ func request_Auth_RoleGet_0(ctx context.Context, marshaler runtime.Marshaler, cl
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func request_Auth_RoleList_0(ctx context.Context, marshaler runtime.Marshaler, client AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq AuthRoleListRequest
|
|
|
|
|
func request_Auth_RoleList_0(ctx context.Context, marshaler runtime.Marshaler, client etcdserverpb.AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq etcdserverpb.AuthRoleListRequest
|
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
|
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil {
|
|
|
|
@ -529,8 +530,8 @@ func request_Auth_RoleList_0(ctx context.Context, marshaler runtime.Marshaler, c
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func request_Auth_RoleDelete_0(ctx context.Context, marshaler runtime.Marshaler, client AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq AuthRoleDeleteRequest
|
|
|
|
|
func request_Auth_RoleDelete_0(ctx context.Context, marshaler runtime.Marshaler, client etcdserverpb.AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq etcdserverpb.AuthRoleDeleteRequest
|
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
|
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil {
|
|
|
|
@ -542,8 +543,8 @@ func request_Auth_RoleDelete_0(ctx context.Context, marshaler runtime.Marshaler,
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func request_Auth_RoleGrantPermission_0(ctx context.Context, marshaler runtime.Marshaler, client AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq AuthRoleGrantPermissionRequest
|
|
|
|
|
func request_Auth_RoleGrantPermission_0(ctx context.Context, marshaler runtime.Marshaler, client etcdserverpb.AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq etcdserverpb.AuthRoleGrantPermissionRequest
|
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
|
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil {
|
|
|
|
@ -555,8 +556,8 @@ func request_Auth_RoleGrantPermission_0(ctx context.Context, marshaler runtime.M
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func request_Auth_RoleRevokePermission_0(ctx context.Context, marshaler runtime.Marshaler, client AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq AuthRoleRevokePermissionRequest
|
|
|
|
|
func request_Auth_RoleRevokePermission_0(ctx context.Context, marshaler runtime.Marshaler, client etcdserverpb.AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
|
|
var protoReq etcdserverpb.AuthRoleRevokePermissionRequest
|
|
|
|
|
var metadata runtime.ServerMetadata
|
|
|
|
|
|
|
|
|
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil {
|
|
|
|
@ -596,7 +597,7 @@ func RegisterKVHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, e
|
|
|
|
|
// RegisterKVHandler registers the http handlers for service KV to "mux".
|
|
|
|
|
// The handlers forward requests to the grpc endpoint over "conn".
|
|
|
|
|
func RegisterKVHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error {
|
|
|
|
|
client := NewKVClient(conn)
|
|
|
|
|
client := etcdserverpb.NewKVClient(conn)
|
|
|
|
|
|
|
|
|
|
mux.Handle("POST", pattern_KV_Range_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
|
|
|
|
ctx, cancel := context.WithCancel(ctx)
|
|
|
|
@ -793,7 +794,7 @@ func RegisterWatchHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux
|
|
|
|
|
// RegisterWatchHandler registers the http handlers for service Watch to "mux".
|
|
|
|
|
// The handlers forward requests to the grpc endpoint over "conn".
|
|
|
|
|
func RegisterWatchHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error {
|
|
|
|
|
client := NewWatchClient(conn)
|
|
|
|
|
client := etcdserverpb.NewWatchClient(conn)
|
|
|
|
|
|
|
|
|
|
mux.Handle("POST", pattern_Watch_Watch_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
|
|
|
|
ctx, cancel := context.WithCancel(ctx)
|
|
|
|
@ -862,7 +863,7 @@ func RegisterLeaseHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux
|
|
|
|
|
// RegisterLeaseHandler registers the http handlers for service Lease to "mux".
|
|
|
|
|
// The handlers forward requests to the grpc endpoint over "conn".
|
|
|
|
|
func RegisterLeaseHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error {
|
|
|
|
|
client := NewLeaseClient(conn)
|
|
|
|
|
client := etcdserverpb.NewLeaseClient(conn)
|
|
|
|
|
|
|
|
|
|
mux.Handle("POST", pattern_Lease_LeaseGrant_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
|
|
|
|
ctx, cancel := context.WithCancel(ctx)
|
|
|
|
@ -1027,7 +1028,7 @@ func RegisterClusterHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeM
|
|
|
|
|
// RegisterClusterHandler registers the http handlers for service Cluster to "mux".
|
|
|
|
|
// The handlers forward requests to the grpc endpoint over "conn".
|
|
|
|
|
func RegisterClusterHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error {
|
|
|
|
|
client := NewClusterClient(conn)
|
|
|
|
|
client := etcdserverpb.NewClusterClient(conn)
|
|
|
|
|
|
|
|
|
|
mux.Handle("POST", pattern_Cluster_MemberAdd_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
|
|
|
|
ctx, cancel := context.WithCancel(ctx)
|
|
|
|
@ -1192,7 +1193,7 @@ func RegisterMaintenanceHandlerFromEndpoint(ctx context.Context, mux *runtime.Se
|
|
|
|
|
// RegisterMaintenanceHandler registers the http handlers for service Maintenance to "mux".
|
|
|
|
|
// The handlers forward requests to the grpc endpoint over "conn".
|
|
|
|
|
func RegisterMaintenanceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error {
|
|
|
|
|
client := NewMaintenanceClient(conn)
|
|
|
|
|
client := etcdserverpb.NewMaintenanceClient(conn)
|
|
|
|
|
|
|
|
|
|
mux.Handle("POST", pattern_Maintenance_Alarm_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
|
|
|
|
ctx, cancel := context.WithCancel(ctx)
|
|
|
|
@ -1389,7 +1390,7 @@ func RegisterAuthHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux,
|
|
|
|
|
// RegisterAuthHandler registers the http handlers for service Auth to "mux".
|
|
|
|
|
// The handlers forward requests to the grpc endpoint over "conn".
|
|
|
|
|
func RegisterAuthHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error {
|
|
|
|
|
client := NewAuthClient(conn)
|
|
|
|
|
client := etcdserverpb.NewAuthClient(conn)
|
|
|
|
|
|
|
|
|
|
mux.Handle("POST", pattern_Auth_AuthEnable_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
|
|
|
|
ctx, cancel := context.WithCancel(ctx)
|