Documentation
¶
Index ¶
- type MockService
- type NamespaceName
- type RegistrationServiceV1
- func (s *RegistrationServiceV1) CreateNamespace(ctx context.Context, req *pb.CreateNamespaceRequest) (*pb.Namespace, error)
- func (s *RegistrationServiceV1) CreateService(ctx context.Context, req *pb.CreateServiceRequest) (*pb.Service, error)
- func (s *RegistrationServiceV1) DeleteNamespace(ctx context.Context, req *pb.DeleteNamespaceRequest) (*empty.Empty, error)
- func (s *RegistrationServiceV1) DeleteService(ctx context.Context, req *pb.DeleteServiceRequest) (*empty.Empty, error)
- func (s *RegistrationServiceV1) GetNamespace(ctx context.Context, req *pb.GetNamespaceRequest) (*pb.Namespace, error)
- func (s *RegistrationServiceV1) GetService(ctx context.Context, req *pb.GetServiceRequest) (*pb.Service, error)
- func (s *RegistrationServiceV1) UpdateNamespace(ctx context.Context, req *pb.UpdateNamespaceRequest) (*pb.Namespace, error)
- func (s *RegistrationServiceV1) UpdateService(ctx context.Context, req *pb.UpdateServiceRequest) (*pb.Service, error)
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 (s *RegistrationServiceV1) GetNamespace(ctx context.Context, req *pb.GetNamespaceRequest) (*pb.Namespace, error)
func (*RegistrationServiceV1) GetService ¶
func (s *RegistrationServiceV1) GetService(ctx context.Context, req *pb.GetServiceRequest) (*pb.Service, error)
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)
Click to show internal directories.
Click to hide internal directories.