package quotaapi

import "github.com/google/trillian/quota/etcd/quotaapi"

Package quotaapi provides a Quota admin server implementation.

Index

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server is a quotapb.QuotaServer implementation backed by etcd.

func NewServer

func NewServer(client *clientv3.Client) *Server

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) (*empty.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

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.0.6
Published
Feb 1, 2018
Platform
js/wasm
Imports
14 packages
Last checked
3 hours ago

Tools for package owners.