Documentation ¶
Overview ¶
Package grpcproxy is an OSI level 7 proxy for etcd v3 API requests.
Index ¶
- func DelRequestToOp(r *pb.DeleteRangeRequest) clientv3.Op
- func KvServerToKvClient(kvs pb.KVServer) pb.KVClient
- func NewAuthProxy(c *clientv3.Client) pb.AuthServer
- func NewClusterProxy(c *clientv3.Client) pb.ClusterServer
- func NewKvProxy(c *clientv3.Client) pb.KVServer
- func NewLeaseProxy(c *clientv3.Client) pb.LeaseServer
- func NewMaintenanceProxy(c *clientv3.Client) pb.MaintenanceServer
- func NewWatchProxy(c *clientv3.Client) pb.WatchServer
- func PutRequestToOp(r *pb.PutRequest) clientv3.Op
- func RangeRequestToOp(r *pb.RangeRequest) clientv3.Op
- func WatchServerToWatchClient(wserv pb.WatchServer) pb.WatchClient
- type AuthProxy
- func (ap *AuthProxy) AuthDisable(ctx context.Context, r *pb.AuthDisableRequest) (*pb.AuthDisableResponse, error)
- func (ap *AuthProxy) AuthEnable(ctx context.Context, r *pb.AuthEnableRequest) (*pb.AuthEnableResponse, error)
- func (ap *AuthProxy) Authenticate(ctx context.Context, r *pb.AuthenticateRequest) (*pb.AuthenticateResponse, error)
- func (ap *AuthProxy) RoleAdd(ctx context.Context, r *pb.AuthRoleAddRequest) (*pb.AuthRoleAddResponse, error)
- func (ap *AuthProxy) RoleDelete(ctx context.Context, r *pb.AuthRoleDeleteRequest) (*pb.AuthRoleDeleteResponse, error)
- func (ap *AuthProxy) RoleGet(ctx context.Context, r *pb.AuthRoleGetRequest) (*pb.AuthRoleGetResponse, error)
- func (ap *AuthProxy) RoleGrantPermission(ctx context.Context, r *pb.AuthRoleGrantPermissionRequest) (*pb.AuthRoleGrantPermissionResponse, error)
- func (ap *AuthProxy) RoleList(ctx context.Context, r *pb.AuthRoleListRequest) (*pb.AuthRoleListResponse, error)
- func (ap *AuthProxy) RoleRevokePermission(ctx context.Context, r *pb.AuthRoleRevokePermissionRequest) (*pb.AuthRoleRevokePermissionResponse, error)
- func (ap *AuthProxy) UserAdd(ctx context.Context, r *pb.AuthUserAddRequest) (*pb.AuthUserAddResponse, error)
- func (ap *AuthProxy) UserChangePassword(ctx context.Context, r *pb.AuthUserChangePasswordRequest) (*pb.AuthUserChangePasswordResponse, error)
- func (ap *AuthProxy) UserDelete(ctx context.Context, r *pb.AuthUserDeleteRequest) (*pb.AuthUserDeleteResponse, error)
- func (ap *AuthProxy) UserGet(ctx context.Context, r *pb.AuthUserGetRequest) (*pb.AuthUserGetResponse, error)
- func (ap *AuthProxy) UserGrantRole(ctx context.Context, r *pb.AuthUserGrantRoleRequest) (*pb.AuthUserGrantRoleResponse, error)
- func (ap *AuthProxy) UserList(ctx context.Context, r *pb.AuthUserListRequest) (*pb.AuthUserListResponse, error)
- func (ap *AuthProxy) UserRevokeRole(ctx context.Context, r *pb.AuthUserRevokeRoleRequest) (*pb.AuthUserRevokeRoleResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DelRequestToOp ¶
func DelRequestToOp(r *pb.DeleteRangeRequest) clientv3.Op
func NewAuthProxy ¶ added in v3.1.0
func NewAuthProxy(c *clientv3.Client) pb.AuthServer
func NewClusterProxy ¶ added in v3.1.0
func NewClusterProxy(c *clientv3.Client) pb.ClusterServer
func NewLeaseProxy ¶ added in v3.1.0
func NewLeaseProxy(c *clientv3.Client) pb.LeaseServer
func NewMaintenanceProxy ¶ added in v3.1.0
func NewMaintenanceProxy(c *clientv3.Client) pb.MaintenanceServer
func NewWatchProxy ¶ added in v3.1.0
func NewWatchProxy(c *clientv3.Client) pb.WatchServer
func PutRequestToOp ¶
func PutRequestToOp(r *pb.PutRequest) clientv3.Op
func RangeRequestToOp ¶
func RangeRequestToOp(r *pb.RangeRequest) clientv3.Op
func WatchServerToWatchClient ¶ added in v3.1.0
func WatchServerToWatchClient(wserv pb.WatchServer) pb.WatchClient
Types ¶
type AuthProxy ¶ added in v3.1.0
type AuthProxy struct {
// contains filtered or unexported fields
}
func (*AuthProxy) AuthDisable ¶ added in v3.1.0
func (ap *AuthProxy) AuthDisable(ctx context.Context, r *pb.AuthDisableRequest) (*pb.AuthDisableResponse, error)
func (*AuthProxy) AuthEnable ¶ added in v3.1.0
func (ap *AuthProxy) AuthEnable(ctx context.Context, r *pb.AuthEnableRequest) (*pb.AuthEnableResponse, error)
func (*AuthProxy) Authenticate ¶ added in v3.1.0
func (ap *AuthProxy) Authenticate(ctx context.Context, r *pb.AuthenticateRequest) (*pb.AuthenticateResponse, error)
func (*AuthProxy) RoleAdd ¶ added in v3.1.0
func (ap *AuthProxy) RoleAdd(ctx context.Context, r *pb.AuthRoleAddRequest) (*pb.AuthRoleAddResponse, error)
func (*AuthProxy) RoleDelete ¶ added in v3.1.0
func (ap *AuthProxy) RoleDelete(ctx context.Context, r *pb.AuthRoleDeleteRequest) (*pb.AuthRoleDeleteResponse, error)
func (*AuthProxy) RoleGet ¶ added in v3.1.0
func (ap *AuthProxy) RoleGet(ctx context.Context, r *pb.AuthRoleGetRequest) (*pb.AuthRoleGetResponse, error)
func (*AuthProxy) RoleGrantPermission ¶ added in v3.1.0
func (ap *AuthProxy) RoleGrantPermission(ctx context.Context, r *pb.AuthRoleGrantPermissionRequest) (*pb.AuthRoleGrantPermissionResponse, error)
func (*AuthProxy) RoleList ¶ added in v3.1.0
func (ap *AuthProxy) RoleList(ctx context.Context, r *pb.AuthRoleListRequest) (*pb.AuthRoleListResponse, error)
func (*AuthProxy) RoleRevokePermission ¶ added in v3.1.0
func (ap *AuthProxy) RoleRevokePermission(ctx context.Context, r *pb.AuthRoleRevokePermissionRequest) (*pb.AuthRoleRevokePermissionResponse, error)
func (*AuthProxy) UserAdd ¶ added in v3.1.0
func (ap *AuthProxy) UserAdd(ctx context.Context, r *pb.AuthUserAddRequest) (*pb.AuthUserAddResponse, error)
func (*AuthProxy) UserChangePassword ¶ added in v3.1.0
func (ap *AuthProxy) UserChangePassword(ctx context.Context, r *pb.AuthUserChangePasswordRequest) (*pb.AuthUserChangePasswordResponse, error)
func (*AuthProxy) UserDelete ¶ added in v3.1.0
func (ap *AuthProxy) UserDelete(ctx context.Context, r *pb.AuthUserDeleteRequest) (*pb.AuthUserDeleteResponse, error)
func (*AuthProxy) UserGet ¶ added in v3.1.0
func (ap *AuthProxy) UserGet(ctx context.Context, r *pb.AuthUserGetRequest) (*pb.AuthUserGetResponse, error)
func (*AuthProxy) UserGrantRole ¶ added in v3.1.0
func (ap *AuthProxy) UserGrantRole(ctx context.Context, r *pb.AuthUserGrantRoleRequest) (*pb.AuthUserGrantRoleResponse, error)
func (*AuthProxy) UserList ¶ added in v3.1.0
func (ap *AuthProxy) UserList(ctx context.Context, r *pb.AuthUserListRequest) (*pb.AuthUserListResponse, error)
func (*AuthProxy) UserRevokeRole ¶ added in v3.1.0
func (ap *AuthProxy) UserRevokeRole(ctx context.Context, r *pb.AuthUserRevokeRoleRequest) (*pb.AuthUserRevokeRoleResponse, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.