mockcloudquota

package
v0.0.0-...-f40b5dd Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudQuotasV1

type CloudQuotasV1 struct {
	*MockService
	pb.UnimplementedCloudQuotasServer
}

func (*CloudQuotasV1) CreateQuotaPreference

func (s *CloudQuotasV1) CreateQuotaPreference(ctx context.Context, req *pb.CreateQuotaPreferenceRequest) (*pb.QuotaPreference, error)

func (*CloudQuotasV1) GetQuotaPreference

func (s *CloudQuotasV1) GetQuotaPreference(ctx context.Context, req *pb.GetQuotaPreferenceRequest) (*pb.QuotaPreference, error)

func (*CloudQuotasV1) UpdateQuotaPreference

func (s *CloudQuotasV1) UpdateQuotaPreference(ctx context.Context, req *pb.UpdateQuotaPreferenceRequest) (*pb.QuotaPreference, error)

type MockService

type MockService struct {
	*common.MockEnvironment
	// contains filtered or unexported fields
}

MockService represents a mocked cloudquotas service.

func New

func New(env *common.MockEnvironment, storage storage.Storage) *MockService

New creates a MockService.

func (*MockService) ExpectedHosts

func (s *MockService) ExpectedHosts() []string

func (*MockService) NewHTTPMux

func (s *MockService) NewHTTPMux(ctx context.Context, conn *grpc.ClientConn) (http.Handler, error)

func (*MockService) Register

func (s *MockService) Register(grpcServer *grpc.Server)

Jump to

Keyboard shortcuts

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