package quotaapi
import "github.com/google/trillian/quota/etcd/quotaapi"
Package quotaapi provides a Quota admin server implementation.
Index ¶
- type Server
- func NewServer(client *clientv3.Client) *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)
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a quotapb.QuotaServer implementation backed by etcd.
func NewServer ¶
NewServer returns a new Server instance backed by client.
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.
Source Files ¶
conversions.go name.go quota_server.go
- Version
- v1.7.1 (latest)
- Published
- Jan 9, 2025
- Platform
- linux/amd64
- Imports
- 14 packages
- Last checked
- 5 days ago –
Tools for package owners.