Documentation
¶
Index ¶
- type ComposerV1
- func (s *ComposerV1) CreateEnvironment(ctx context.Context, req *pb.CreateEnvironmentRequest) (*longrunningpb.Operation, error)
- func (s *ComposerV1) DeleteEnvironment(ctx context.Context, req *pb.DeleteEnvironmentRequest) (*longrunningpb.Operation, error)
- func (s *ComposerV1) GetEnvironment(ctx context.Context, req *pb.GetEnvironmentRequest) (*pb.Environment, error)
- func (s *ComposerV1) UpdateEnvironment(ctx context.Context, req *pb.UpdateEnvironmentRequest) (*longrunningpb.Operation, error)
- type MockService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComposerV1 ¶
type ComposerV1 struct { *MockService pb.UnimplementedEnvironmentsServer }
func (*ComposerV1) CreateEnvironment ¶
func (s *ComposerV1) CreateEnvironment(ctx context.Context, req *pb.CreateEnvironmentRequest) (*longrunningpb.Operation, error)
func (*ComposerV1) DeleteEnvironment ¶
func (s *ComposerV1) DeleteEnvironment(ctx context.Context, req *pb.DeleteEnvironmentRequest) (*longrunningpb.Operation, error)
func (*ComposerV1) GetEnvironment ¶
func (s *ComposerV1) GetEnvironment(ctx context.Context, req *pb.GetEnvironmentRequest) (*pb.Environment, error)
func (*ComposerV1) UpdateEnvironment ¶
func (s *ComposerV1) UpdateEnvironment(ctx context.Context, req *pb.UpdateEnvironmentRequest) (*longrunningpb.Operation, error)
type MockService ¶
type MockService struct { *common.MockEnvironment // contains filtered or unexported fields }
MockService represents a mocked composer 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)
Click to show internal directories.
Click to hide internal directories.