Documentation
¶
Index ¶
- type ManagerServiceClient
- func (_m *ManagerServiceClient) AttestationPolicy(ctx context.Context, in *manager.AttestationPolicyReq, opts ...grpc.CallOption) (*manager.AttestationPolicyRes, error)
- func (_m *ManagerServiceClient) CVMInfo(ctx context.Context, in *manager.CVMInfoReq, opts ...grpc.CallOption) (*manager.CVMInfoRes, error)
- func (_m *ManagerServiceClient) CreateVm(ctx context.Context, in *manager.CreateReq, opts ...grpc.CallOption) (*manager.CreateRes, error)
- func (_m *ManagerServiceClient) EXPECT() *ManagerServiceClient_Expecter
- func (_m *ManagerServiceClient) RemoveVm(ctx context.Context, in *manager.RemoveReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
- type ManagerServiceClient_AttestationPolicy_Call
- func (_c *ManagerServiceClient_AttestationPolicy_Call) Return(_a0 *manager.AttestationPolicyRes, _a1 error) *ManagerServiceClient_AttestationPolicy_Call
- func (_c *ManagerServiceClient_AttestationPolicy_Call) Run(...) *ManagerServiceClient_AttestationPolicy_Call
- func (_c *ManagerServiceClient_AttestationPolicy_Call) RunAndReturn(...) *ManagerServiceClient_AttestationPolicy_Call
- type ManagerServiceClient_CVMInfo_Call
- func (_c *ManagerServiceClient_CVMInfo_Call) Return(_a0 *manager.CVMInfoRes, _a1 error) *ManagerServiceClient_CVMInfo_Call
- func (_c *ManagerServiceClient_CVMInfo_Call) Run(run func(ctx context.Context, in *manager.CVMInfoReq, opts ...grpc.CallOption)) *ManagerServiceClient_CVMInfo_Call
- func (_c *ManagerServiceClient_CVMInfo_Call) RunAndReturn(...) *ManagerServiceClient_CVMInfo_Call
- type ManagerServiceClient_CreateVm_Call
- func (_c *ManagerServiceClient_CreateVm_Call) Return(_a0 *manager.CreateRes, _a1 error) *ManagerServiceClient_CreateVm_Call
- func (_c *ManagerServiceClient_CreateVm_Call) Run(run func(ctx context.Context, in *manager.CreateReq, opts ...grpc.CallOption)) *ManagerServiceClient_CreateVm_Call
- func (_c *ManagerServiceClient_CreateVm_Call) RunAndReturn(...) *ManagerServiceClient_CreateVm_Call
- type ManagerServiceClient_Expecter
- func (_e *ManagerServiceClient_Expecter) AttestationPolicy(ctx interface{}, in interface{}, opts ...interface{}) *ManagerServiceClient_AttestationPolicy_Call
- func (_e *ManagerServiceClient_Expecter) CVMInfo(ctx interface{}, in interface{}, opts ...interface{}) *ManagerServiceClient_CVMInfo_Call
- func (_e *ManagerServiceClient_Expecter) CreateVm(ctx interface{}, in interface{}, opts ...interface{}) *ManagerServiceClient_CreateVm_Call
- func (_e *ManagerServiceClient_Expecter) RemoveVm(ctx interface{}, in interface{}, opts ...interface{}) *ManagerServiceClient_RemoveVm_Call
- type ManagerServiceClient_RemoveVm_Call
- func (_c *ManagerServiceClient_RemoveVm_Call) Return(_a0 *emptypb.Empty, _a1 error) *ManagerServiceClient_RemoveVm_Call
- func (_c *ManagerServiceClient_RemoveVm_Call) Run(run func(ctx context.Context, in *manager.RemoveReq, opts ...grpc.CallOption)) *ManagerServiceClient_RemoveVm_Call
- func (_c *ManagerServiceClient_RemoveVm_Call) RunAndReturn(...) *ManagerServiceClient_RemoveVm_Call
- type Service
- func (_m *Service) CreateVM(ctx context.Context, req *manager.CreateReq) (string, string, error)
- func (_m *Service) EXPECT() *Service_Expecter
- func (_m *Service) FetchAttestationPolicy(ctx context.Context, computationID string) ([]byte, error)
- func (_m *Service) RemoveVM(ctx context.Context, computationID string) error
- func (_m *Service) ReturnCVMInfo(ctx context.Context) (string, int, string, string)
- type Service_CreateVM_Call
- func (_c *Service_CreateVM_Call) Return(_a0 string, _a1 string, _a2 error) *Service_CreateVM_Call
- func (_c *Service_CreateVM_Call) Run(run func(ctx context.Context, req *manager.CreateReq)) *Service_CreateVM_Call
- func (_c *Service_CreateVM_Call) RunAndReturn(run func(context.Context, *manager.CreateReq) (string, string, error)) *Service_CreateVM_Call
- type Service_Expecter
- func (_e *Service_Expecter) CreateVM(ctx interface{}, req interface{}) *Service_CreateVM_Call
- func (_e *Service_Expecter) FetchAttestationPolicy(ctx interface{}, computationID interface{}) *Service_FetchAttestationPolicy_Call
- func (_e *Service_Expecter) RemoveVM(ctx interface{}, computationID interface{}) *Service_RemoveVM_Call
- func (_e *Service_Expecter) ReturnCVMInfo(ctx interface{}) *Service_ReturnCVMInfo_Call
- type Service_FetchAttestationPolicy_Call
- func (_c *Service_FetchAttestationPolicy_Call) Return(_a0 []byte, _a1 error) *Service_FetchAttestationPolicy_Call
- func (_c *Service_FetchAttestationPolicy_Call) Run(run func(ctx context.Context, computationID string)) *Service_FetchAttestationPolicy_Call
- func (_c *Service_FetchAttestationPolicy_Call) RunAndReturn(run func(context.Context, string) ([]byte, error)) *Service_FetchAttestationPolicy_Call
- type Service_RemoveVM_Call
- type Service_ReturnCVMInfo_Call
- func (_c *Service_ReturnCVMInfo_Call) Return(_a0 string, _a1 int, _a2 string, _a3 string) *Service_ReturnCVMInfo_Call
- func (_c *Service_ReturnCVMInfo_Call) Run(run func(ctx context.Context)) *Service_ReturnCVMInfo_Call
- func (_c *Service_ReturnCVMInfo_Call) RunAndReturn(run func(context.Context) (string, int, string, string)) *Service_ReturnCVMInfo_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ManagerServiceClient ¶ added in v0.5.0
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
func (_m *ManagerServiceClient) AttestationPolicy(ctx context.Context, in *manager.AttestationPolicyReq, opts ...grpc.CallOption) (*manager.AttestationPolicyRes, error)
AttestationPolicy provides a mock function with given fields: ctx, in, opts
func (*ManagerServiceClient) CVMInfo ¶ added in v0.5.2
func (_m *ManagerServiceClient) CVMInfo(ctx context.Context, in *manager.CVMInfoReq, opts ...grpc.CallOption) (*manager.CVMInfoRes, error)
CVMInfo provides a mock function with given fields: ctx, in, opts
func (*ManagerServiceClient) CreateVm ¶ added in v0.5.0
func (_m *ManagerServiceClient) CreateVm(ctx context.Context, in *manager.CreateReq, opts ...grpc.CallOption) (*manager.CreateRes, error)
CreateVm provides a mock function with given fields: ctx, in, opts
func (*ManagerServiceClient) EXPECT ¶ added in v0.5.0
func (_m *ManagerServiceClient) EXPECT() *ManagerServiceClient_Expecter
type ManagerServiceClient_AttestationPolicy_Call ¶ added in v0.5.0
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 (_c *ManagerServiceClient_AttestationPolicy_Call) Return(_a0 *manager.AttestationPolicyRes, _a1 error) *ManagerServiceClient_AttestationPolicy_Call
func (*ManagerServiceClient_AttestationPolicy_Call) Run ¶ added in v0.5.0
func (_c *ManagerServiceClient_AttestationPolicy_Call) Run(run func(ctx context.Context, in *manager.AttestationPolicyReq, opts ...grpc.CallOption)) *ManagerServiceClient_AttestationPolicy_Call
func (*ManagerServiceClient_AttestationPolicy_Call) RunAndReturn ¶ added in v0.5.0
func (_c *ManagerServiceClient_AttestationPolicy_Call) RunAndReturn(run func(context.Context, *manager.AttestationPolicyReq, ...grpc.CallOption) (*manager.AttestationPolicyRes, error)) *ManagerServiceClient_AttestationPolicy_Call
type ManagerServiceClient_CVMInfo_Call ¶ added in v0.5.2
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 (_c *ManagerServiceClient_CVMInfo_Call) Return(_a0 *manager.CVMInfoRes, _a1 error) *ManagerServiceClient_CVMInfo_Call
func (*ManagerServiceClient_CVMInfo_Call) Run ¶ added in v0.5.2
func (_c *ManagerServiceClient_CVMInfo_Call) Run(run func(ctx context.Context, in *manager.CVMInfoReq, opts ...grpc.CallOption)) *ManagerServiceClient_CVMInfo_Call
func (*ManagerServiceClient_CVMInfo_Call) RunAndReturn ¶ added in v0.5.2
func (_c *ManagerServiceClient_CVMInfo_Call) RunAndReturn(run func(context.Context, *manager.CVMInfoReq, ...grpc.CallOption) (*manager.CVMInfoRes, error)) *ManagerServiceClient_CVMInfo_Call
type ManagerServiceClient_CreateVm_Call ¶ added in v0.5.0
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 (_c *ManagerServiceClient_CreateVm_Call) Return(_a0 *manager.CreateRes, _a1 error) *ManagerServiceClient_CreateVm_Call
func (*ManagerServiceClient_CreateVm_Call) Run ¶ added in v0.5.0
func (_c *ManagerServiceClient_CreateVm_Call) Run(run func(ctx context.Context, in *manager.CreateReq, opts ...grpc.CallOption)) *ManagerServiceClient_CreateVm_Call
func (*ManagerServiceClient_CreateVm_Call) RunAndReturn ¶ added in v0.5.0
func (_c *ManagerServiceClient_CreateVm_Call) RunAndReturn(run func(context.Context, *manager.CreateReq, ...grpc.CallOption) (*manager.CreateRes, error)) *ManagerServiceClient_CreateVm_Call
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
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 (_c *ManagerServiceClient_RemoveVm_Call) Return(_a0 *emptypb.Empty, _a1 error) *ManagerServiceClient_RemoveVm_Call
func (*ManagerServiceClient_RemoveVm_Call) Run ¶ added in v0.5.0
func (_c *ManagerServiceClient_RemoveVm_Call) Run(run func(ctx context.Context, in *manager.RemoveReq, opts ...grpc.CallOption)) *ManagerServiceClient_RemoveVm_Call
func (*ManagerServiceClient_RemoveVm_Call) RunAndReturn ¶ added in v0.5.0
func (_c *ManagerServiceClient_RemoveVm_Call) RunAndReturn(run func(context.Context, *manager.RemoveReq, ...grpc.CallOption) (*emptypb.Empty, error)) *ManagerServiceClient_RemoveVm_Call
type Service ¶
Service is an autogenerated mock type for the Service type
func NewService ¶
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
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
type Service_CreateVM_Call ¶ added in v0.5.0
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 (_c *Service_CreateVM_Call) Run(run func(ctx context.Context, req *manager.CreateReq)) *Service_CreateVM_Call
func (*Service_CreateVM_Call) RunAndReturn ¶ added in v0.5.0
func (_c *Service_CreateVM_Call) RunAndReturn(run func(context.Context, *manager.CreateReq) (string, string, error)) *Service_CreateVM_Call
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 ¶
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 (_c *Service_FetchAttestationPolicy_Call) Return(_a0 []byte, _a1 error) *Service_FetchAttestationPolicy_Call
func (*Service_FetchAttestationPolicy_Call) Run ¶
func (_c *Service_FetchAttestationPolicy_Call) Run(run func(ctx context.Context, computationID string)) *Service_FetchAttestationPolicy_Call
func (*Service_FetchAttestationPolicy_Call) RunAndReturn ¶
func (_c *Service_FetchAttestationPolicy_Call) RunAndReturn(run func(context.Context, string) ([]byte, error)) *Service_FetchAttestationPolicy_Call
type Service_RemoveVM_Call ¶ added in v0.5.0
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 (_c *Service_RemoveVM_Call) Return(_a0 error) *Service_RemoveVM_Call
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
func (_c *Service_RemoveVM_Call) RunAndReturn(run func(context.Context, string) error) *Service_RemoveVM_Call
type Service_ReturnCVMInfo_Call ¶ added in v0.5.2
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 (_c *Service_ReturnCVMInfo_Call) Return(_a0 string, _a1 int, _a2 string, _a3 string) *Service_ReturnCVMInfo_Call
func (*Service_ReturnCVMInfo_Call) Run ¶ added in v0.5.2
func (_c *Service_ReturnCVMInfo_Call) Run(run func(ctx context.Context)) *Service_ReturnCVMInfo_Call
func (*Service_ReturnCVMInfo_Call) RunAndReturn ¶ added in v0.5.2
func (_c *Service_ReturnCVMInfo_Call) RunAndReturn(run func(context.Context) (string, int, string, string)) *Service_ReturnCVMInfo_Call