mockcontaineranalysis

package
v0.0.0-...-748718d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

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)

type NoteName

type NoteName struct {
	Project  *projects.ProjectData
	NoteName string
}

func (*NoteName) String

func (n *NoteName) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL