Documentation ¶
Overview ¶
Package quotaapi provides a Quota admin server implementation.
Index ¶
- type Server
- func (s *Server) CreateConfig(ctx context.Context, req *quotapb.CreateConfigRequest) (*quotapb.Config, error)
- func (s *Server) DeleteConfig(ctx context.Context, req *quotapb.DeleteConfigRequest) (*emptypb.Empty, error)
- func (s *Server) GetConfig(ctx context.Context, req *quotapb.GetConfigRequest) (*quotapb.Config, error)
- func (s *Server) ListConfigs(ctx context.Context, req *quotapb.ListConfigsRequest) (*quotapb.ListConfigsResponse, error)
- func (s *Server) UpdateConfig(ctx context.Context, req *quotapb.UpdateConfigRequest) (*quotapb.Config, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a quotapb.QuotaServer implementation backed by etcd.
func (*Server) CreateConfig ¶
func (s *Server) CreateConfig(ctx context.Context, req *quotapb.CreateConfigRequest) (*quotapb.Config, error)
CreateConfig implements quotapb.QuotaServer.CreateConfig.
func (*Server) DeleteConfig ¶
func (s *Server) DeleteConfig(ctx context.Context, req *quotapb.DeleteConfigRequest) (*emptypb.Empty, error)
DeleteConfig implements quotapb.QuotaServer.DeleteConfig.
func (*Server) GetConfig ¶
func (s *Server) GetConfig(ctx context.Context, req *quotapb.GetConfigRequest) (*quotapb.Config, error)
GetConfig implements quotapb.QuotaServer.GetConfig.
func (*Server) ListConfigs ¶
func (s *Server) ListConfigs(ctx context.Context, req *quotapb.ListConfigsRequest) (*quotapb.ListConfigsResponse, error)
ListConfigs implements quotapb.QuotaServer.ListConfigs.
func (*Server) UpdateConfig ¶
func (s *Server) UpdateConfig(ctx context.Context, req *quotapb.UpdateConfigRequest) (*quotapb.Config, error)
UpdateConfig implements quotapb.QuotaServer.UpdateConfig.
Click to show internal directories.
Click to hide internal directories.