quotaapi

package
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 14 Imported by: 12

Documentation

Overview

Package quotaapi provides a Quota admin server implementation.

Index

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL