mockservicedirectory

package
v0.0.0-...-9497574 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockService

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

MockService represents a mocked servicedirectory 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)

type NamespaceName

type NamespaceName struct {
	Project       *projects.ProjectData
	Location      string
	NamespaceName string
}

func (*NamespaceName) String

func (n *NamespaceName) String() string

type RegistrationServiceV1

type RegistrationServiceV1 struct {
	*MockService
	pb.UnimplementedRegistrationServiceServer
}

func (*RegistrationServiceV1) CreateNamespace

func (s *RegistrationServiceV1) CreateNamespace(ctx context.Context, req *pb.CreateNamespaceRequest) (*pb.Namespace, error)

func (*RegistrationServiceV1) CreateService

func (s *RegistrationServiceV1) CreateService(ctx context.Context, req *pb.CreateServiceRequest) (*pb.Service, error)

func (*RegistrationServiceV1) DeleteNamespace

func (s *RegistrationServiceV1) DeleteNamespace(ctx context.Context, req *pb.DeleteNamespaceRequest) (*empty.Empty, error)

func (*RegistrationServiceV1) DeleteService

func (s *RegistrationServiceV1) DeleteService(ctx context.Context, req *pb.DeleteServiceRequest) (*empty.Empty, error)

func (*RegistrationServiceV1) GetNamespace

func (*RegistrationServiceV1) GetService

func (*RegistrationServiceV1) UpdateNamespace

func (s *RegistrationServiceV1) UpdateNamespace(ctx context.Context, req *pb.UpdateNamespaceRequest) (*pb.Namespace, error)

func (*RegistrationServiceV1) UpdateService

func (s *RegistrationServiceV1) UpdateService(ctx context.Context, req *pb.UpdateServiceRequest) (*pb.Service, error)

Jump to

Keyboard shortcuts

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