mocks

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ManagerServiceClient added in v0.5.0

type ManagerServiceClient struct {
	mock.Mock
}

ManagerServiceClient is an autogenerated mock type for the ManagerServiceClient type

func NewManagerServiceClient added in v0.5.0

func NewManagerServiceClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *ManagerServiceClient

NewManagerServiceClient creates a new instance of ManagerServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ManagerServiceClient) AttestationPolicy added in v0.5.0

AttestationPolicy provides a mock function with given fields: ctx, in, opts

func (*ManagerServiceClient) CVMInfo added in v0.5.2

CVMInfo provides a mock function with given fields: ctx, in, opts

func (*ManagerServiceClient) CreateVm added in v0.5.0

CreateVm provides a mock function with given fields: ctx, in, opts

func (*ManagerServiceClient) EXPECT added in v0.5.0

func (*ManagerServiceClient) RemoveVm added in v0.5.0

func (_m *ManagerServiceClient) RemoveVm(ctx context.Context, in *manager.RemoveReq, opts ...grpc.CallOption) (*emptypb.Empty, error)

RemoveVm provides a mock function with given fields: ctx, in, opts

type ManagerServiceClient_AttestationPolicy_Call added in v0.5.0

type ManagerServiceClient_AttestationPolicy_Call struct {
	*mock.Call
}

ManagerServiceClient_AttestationPolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AttestationPolicy'

func (*ManagerServiceClient_AttestationPolicy_Call) Return added in v0.5.0

func (*ManagerServiceClient_AttestationPolicy_Call) Run added in v0.5.0

func (*ManagerServiceClient_AttestationPolicy_Call) RunAndReturn added in v0.5.0

type ManagerServiceClient_CVMInfo_Call added in v0.5.2

type ManagerServiceClient_CVMInfo_Call struct {
	*mock.Call
}

ManagerServiceClient_CVMInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CVMInfo'

func (*ManagerServiceClient_CVMInfo_Call) Return added in v0.5.2

func (*ManagerServiceClient_CVMInfo_Call) Run added in v0.5.2

func (*ManagerServiceClient_CVMInfo_Call) RunAndReturn added in v0.5.2

type ManagerServiceClient_CreateVm_Call added in v0.5.0

type ManagerServiceClient_CreateVm_Call struct {
	*mock.Call
}

ManagerServiceClient_CreateVm_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateVm'

func (*ManagerServiceClient_CreateVm_Call) Return added in v0.5.0

func (*ManagerServiceClient_CreateVm_Call) Run added in v0.5.0

func (*ManagerServiceClient_CreateVm_Call) RunAndReturn added in v0.5.0

type ManagerServiceClient_Expecter added in v0.5.0

type ManagerServiceClient_Expecter struct {
	// contains filtered or unexported fields
}

func (*ManagerServiceClient_Expecter) AttestationPolicy added in v0.5.0

func (_e *ManagerServiceClient_Expecter) AttestationPolicy(ctx interface{}, in interface{}, opts ...interface{}) *ManagerServiceClient_AttestationPolicy_Call

AttestationPolicy is a helper method to define mock.On call

  • ctx context.Context
  • in *manager.AttestationPolicyReq
  • opts ...grpc.CallOption

func (*ManagerServiceClient_Expecter) CVMInfo added in v0.5.2

func (_e *ManagerServiceClient_Expecter) CVMInfo(ctx interface{}, in interface{}, opts ...interface{}) *ManagerServiceClient_CVMInfo_Call

CVMInfo is a helper method to define mock.On call

  • ctx context.Context
  • in *manager.CVMInfoReq
  • opts ...grpc.CallOption

func (*ManagerServiceClient_Expecter) CreateVm added in v0.5.0

func (_e *ManagerServiceClient_Expecter) CreateVm(ctx interface{}, in interface{}, opts ...interface{}) *ManagerServiceClient_CreateVm_Call

CreateVm is a helper method to define mock.On call

  • ctx context.Context
  • in *manager.CreateReq
  • opts ...grpc.CallOption

func (*ManagerServiceClient_Expecter) RemoveVm added in v0.5.0

func (_e *ManagerServiceClient_Expecter) RemoveVm(ctx interface{}, in interface{}, opts ...interface{}) *ManagerServiceClient_RemoveVm_Call

RemoveVm is a helper method to define mock.On call

  • ctx context.Context
  • in *manager.RemoveReq
  • opts ...grpc.CallOption

type ManagerServiceClient_RemoveVm_Call added in v0.5.0

type ManagerServiceClient_RemoveVm_Call struct {
	*mock.Call
}

ManagerServiceClient_RemoveVm_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveVm'

func (*ManagerServiceClient_RemoveVm_Call) Return added in v0.5.0

func (*ManagerServiceClient_RemoveVm_Call) Run added in v0.5.0

func (*ManagerServiceClient_RemoveVm_Call) RunAndReturn added in v0.5.0

type Service

type Service struct {
	mock.Mock
}

Service is an autogenerated mock type for the Service type

func NewService

func NewService(t interface {
	mock.TestingT
	Cleanup(func())
}) *Service

NewService creates a new instance of Service. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Service) CreateVM added in v0.5.0

func (_m *Service) CreateVM(ctx context.Context, req *manager.CreateReq) (string, string, error)

CreateVM provides a mock function with given fields: ctx, req

func (*Service) EXPECT

func (_m *Service) EXPECT() *Service_Expecter

func (*Service) FetchAttestationPolicy

func (_m *Service) FetchAttestationPolicy(ctx context.Context, computationID string) ([]byte, error)

FetchAttestationPolicy provides a mock function with given fields: ctx, computationID

func (*Service) RemoveVM added in v0.5.0

func (_m *Service) RemoveVM(ctx context.Context, computationID string) error

RemoveVM provides a mock function with given fields: ctx, computationID

func (*Service) ReturnCVMInfo added in v0.5.2

func (_m *Service) ReturnCVMInfo(ctx context.Context) (string, int, string, string)

ReturnCVMInfo provides a mock function with given fields: ctx

type Service_CreateVM_Call added in v0.5.0

type Service_CreateVM_Call struct {
	*mock.Call
}

Service_CreateVM_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateVM'

func (*Service_CreateVM_Call) Return added in v0.5.0

func (_c *Service_CreateVM_Call) Return(_a0 string, _a1 string, _a2 error) *Service_CreateVM_Call

func (*Service_CreateVM_Call) Run added in v0.5.0

func (*Service_CreateVM_Call) RunAndReturn added in v0.5.0

type Service_Expecter

type Service_Expecter struct {
	// contains filtered or unexported fields
}

func (*Service_Expecter) CreateVM added in v0.5.0

func (_e *Service_Expecter) CreateVM(ctx interface{}, req interface{}) *Service_CreateVM_Call

CreateVM is a helper method to define mock.On call

  • ctx context.Context
  • req *manager.CreateReq

func (*Service_Expecter) FetchAttestationPolicy

func (_e *Service_Expecter) FetchAttestationPolicy(ctx interface{}, computationID interface{}) *Service_FetchAttestationPolicy_Call

FetchAttestationPolicy is a helper method to define mock.On call

  • ctx context.Context
  • computationID string

func (*Service_Expecter) RemoveVM added in v0.5.0

func (_e *Service_Expecter) RemoveVM(ctx interface{}, computationID interface{}) *Service_RemoveVM_Call

RemoveVM is a helper method to define mock.On call

  • ctx context.Context
  • computationID string

func (*Service_Expecter) ReturnCVMInfo added in v0.5.2

func (_e *Service_Expecter) ReturnCVMInfo(ctx interface{}) *Service_ReturnCVMInfo_Call

ReturnCVMInfo is a helper method to define mock.On call

  • ctx context.Context

type Service_FetchAttestationPolicy_Call

type Service_FetchAttestationPolicy_Call struct {
	*mock.Call
}

Service_FetchAttestationPolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FetchAttestationPolicy'

func (*Service_FetchAttestationPolicy_Call) Return

func (*Service_FetchAttestationPolicy_Call) Run

func (*Service_FetchAttestationPolicy_Call) RunAndReturn

type Service_RemoveVM_Call added in v0.5.0

type Service_RemoveVM_Call struct {
	*mock.Call
}

Service_RemoveVM_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveVM'

func (*Service_RemoveVM_Call) Return added in v0.5.0

func (*Service_RemoveVM_Call) Run added in v0.5.0

func (_c *Service_RemoveVM_Call) Run(run func(ctx context.Context, computationID string)) *Service_RemoveVM_Call

func (*Service_RemoveVM_Call) RunAndReturn added in v0.5.0

type Service_ReturnCVMInfo_Call added in v0.5.2

type Service_ReturnCVMInfo_Call struct {
	*mock.Call
}

Service_ReturnCVMInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReturnCVMInfo'

func (*Service_ReturnCVMInfo_Call) Return added in v0.5.2

func (*Service_ReturnCVMInfo_Call) Run added in v0.5.2

func (*Service_ReturnCVMInfo_Call) RunAndReturn added in v0.5.2

Jump to

Keyboard shortcuts

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