Documentation ¶
Index ¶
- type ContainerAnalysisV1
- func (s *ContainerAnalysisV1) CreateNote(ctx context.Context, req *pb.CreateNoteRequest) (*pb.Note, error)
- func (s *ContainerAnalysisV1) DeleteNote(ctx context.Context, req *pb.DeleteNoteRequest) (*empty.Empty, error)
- func (s *ContainerAnalysisV1) GetNote(ctx context.Context, req *pb.GetNoteRequest) (*pb.Note, error)
- func (s *ContainerAnalysisV1) UpdateNote(ctx context.Context, req *pb.UpdateNoteRequest) (*pb.Note, error)
- type MockService
- type NoteName
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerAnalysisV1 ¶
type ContainerAnalysisV1 struct { *MockService pb.UnimplementedGrafeasServer }
func (*ContainerAnalysisV1) CreateNote ¶
func (s *ContainerAnalysisV1) CreateNote(ctx context.Context, req *pb.CreateNoteRequest) (*pb.Note, error)
func (*ContainerAnalysisV1) DeleteNote ¶
func (s *ContainerAnalysisV1) DeleteNote(ctx context.Context, req *pb.DeleteNoteRequest) (*empty.Empty, error)
func (*ContainerAnalysisV1) GetNote ¶
func (s *ContainerAnalysisV1) GetNote(ctx context.Context, req *pb.GetNoteRequest) (*pb.Note, error)
func (*ContainerAnalysisV1) UpdateNote ¶
func (s *ContainerAnalysisV1) UpdateNote(ctx context.Context, req *pb.UpdateNoteRequest) (*pb.Note, error)
type MockService ¶
type MockService struct { *common.MockEnvironment // contains filtered or unexported fields }
MockService represents a mocked containeranalysis 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.