Documentation ¶
Index ¶
- type GKEHubFeature
- func (s *GKEHubFeature) CreateFeature(ctx context.Context, req *pb.CreateFeatureRequest) (*longrunning.Operation, error)
- func (s *GKEHubFeature) DeleteFeature(ctx context.Context, req *pb.DeleteFeatureRequest) (*longrunning.Operation, error)
- func (s *GKEHubFeature) GetFeature(ctx context.Context, req *pb.GetFeatureRequest) (*pb.Feature, error)
- func (s *GKEHubFeature) UpdateFeature(ctx context.Context, req *pb.UpdateFeatureRequest) (*longrunning.Operation, error)
- type GKEHubMembership
- func (s *GKEHubMembership) CreateMembership(ctx context.Context, req *pb.CreateMembershipRequest) (*longrunning.Operation, error)
- func (s *GKEHubMembership) DeleteMembership(ctx context.Context, req *pb.DeleteMembershipRequest) (*longrunning.Operation, error)
- func (s *GKEHubMembership) GetMembership(ctx context.Context, req *pb.GetMembershipRequest) (*pb.Membership, error)
- func (s *GKEHubMembership) UpdateMembership(ctx context.Context, req *pb.UpdateMembershipRequest) (*longrunning.Operation, error)
- type MockService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GKEHubFeature ¶
type GKEHubFeature struct { *MockService pb.UnimplementedGkeHubServer }
func (*GKEHubFeature) CreateFeature ¶
func (s *GKEHubFeature) CreateFeature(ctx context.Context, req *pb.CreateFeatureRequest) (*longrunning.Operation, error)
func (*GKEHubFeature) DeleteFeature ¶
func (s *GKEHubFeature) DeleteFeature(ctx context.Context, req *pb.DeleteFeatureRequest) (*longrunning.Operation, error)
func (*GKEHubFeature) GetFeature ¶
func (s *GKEHubFeature) GetFeature(ctx context.Context, req *pb.GetFeatureRequest) (*pb.Feature, error)
func (*GKEHubFeature) UpdateFeature ¶
func (s *GKEHubFeature) UpdateFeature(ctx context.Context, req *pb.UpdateFeatureRequest) (*longrunning.Operation, error)
type GKEHubMembership ¶
type GKEHubMembership struct { *MockService pb.UnimplementedGkeHubMembershipServiceServer }
func (*GKEHubMembership) CreateMembership ¶
func (s *GKEHubMembership) CreateMembership(ctx context.Context, req *pb.CreateMembershipRequest) (*longrunning.Operation, error)
func (*GKEHubMembership) DeleteMembership ¶
func (s *GKEHubMembership) DeleteMembership(ctx context.Context, req *pb.DeleteMembershipRequest) (*longrunning.Operation, error)
func (*GKEHubMembership) GetMembership ¶
func (s *GKEHubMembership) GetMembership(ctx context.Context, req *pb.GetMembershipRequest) (*pb.Membership, error)
func (*GKEHubMembership) UpdateMembership ¶
func (s *GKEHubMembership) UpdateMembership(ctx context.Context, req *pb.UpdateMembershipRequest) (*longrunning.Operation, error)
type MockService ¶
type MockService struct { *common.MockEnvironment // contains filtered or unexported fields }
MockService represents a mocked gkehubfeature 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.