Documentation ¶
Index ¶
- type MockService
- type SpannerDatabaseV1
- func (s *SpannerDatabaseV1) CreateDatabase(ctx context.Context, req *pb.CreateDatabaseRequest) (*longrunningpb.Operation, error)
- func (s *SpannerDatabaseV1) DropDatabase(ctx context.Context, req *pb.DropDatabaseRequest) (*emptypb.Empty, error)
- func (s *SpannerDatabaseV1) GetDatabase(ctx context.Context, req *pb.GetDatabaseRequest) (*pb.Database, error)
- func (s *SpannerDatabaseV1) UpdateDatabaseDdl(ctx context.Context, req *pb.UpdateDatabaseDdlRequest) (*longrunningpb.Operation, error)
- type SpannerInstanceV1
- func (s *SpannerInstanceV1) CreateInstance(ctx context.Context, req *pb.CreateInstanceRequest) (*longrunningpb.Operation, error)
- func (s *SpannerInstanceV1) DeleteInstance(ctx context.Context, req *pb.DeleteInstanceRequest) (*emptypb.Empty, error)
- func (s *SpannerInstanceV1) GetInstance(ctx context.Context, req *pb.GetInstanceRequest) (*pb.Instance, error)
- func (s *SpannerInstanceV1) UpdateInstance(ctx context.Context, req *pb.UpdateInstanceRequest) (*longrunningpb.Operation, 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 privateca 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 SpannerDatabaseV1 ¶
type SpannerDatabaseV1 struct { *MockService pb.UnimplementedDatabaseAdminServer }
func (*SpannerDatabaseV1) CreateDatabase ¶
func (s *SpannerDatabaseV1) CreateDatabase(ctx context.Context, req *pb.CreateDatabaseRequest) (*longrunningpb.Operation, error)
func (*SpannerDatabaseV1) DropDatabase ¶
func (s *SpannerDatabaseV1) DropDatabase(ctx context.Context, req *pb.DropDatabaseRequest) (*emptypb.Empty, error)
func (*SpannerDatabaseV1) GetDatabase ¶
func (s *SpannerDatabaseV1) GetDatabase(ctx context.Context, req *pb.GetDatabaseRequest) (*pb.Database, error)
func (*SpannerDatabaseV1) UpdateDatabaseDdl ¶
func (s *SpannerDatabaseV1) UpdateDatabaseDdl(ctx context.Context, req *pb.UpdateDatabaseDdlRequest) (*longrunningpb.Operation, error)
type SpannerInstanceV1 ¶
type SpannerInstanceV1 struct { *MockService pb.UnimplementedInstanceAdminServer }
func (*SpannerInstanceV1) CreateInstance ¶
func (s *SpannerInstanceV1) CreateInstance(ctx context.Context, req *pb.CreateInstanceRequest) (*longrunningpb.Operation, error)
func (*SpannerInstanceV1) DeleteInstance ¶
func (s *SpannerInstanceV1) DeleteInstance(ctx context.Context, req *pb.DeleteInstanceRequest) (*emptypb.Empty, error)
func (*SpannerInstanceV1) GetInstance ¶
func (s *SpannerInstanceV1) GetInstance(ctx context.Context, req *pb.GetInstanceRequest) (*pb.Instance, error)
func (*SpannerInstanceV1) UpdateInstance ¶
func (s *SpannerInstanceV1) UpdateInstance(ctx context.Context, req *pb.UpdateInstanceRequest) (*longrunningpb.Operation, error)
Click to show internal directories.
Click to hide internal directories.