Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockFenceInterface
- func (m *MockFenceInterface) CheckForShepherdAPI(ctx context.Context) (bool, error)
- func (m *MockFenceInterface) CheckPrivileges(ctx context.Context) (map[string]any, error)
- func (m *MockFenceInterface) CompleteMultipartUpload(ctx context.Context, key, uploadID string, parts []fence.MultipartPart, ...) error
- func (m *MockFenceInterface) DeleteRecord(ctx context.Context, guid string) (string, error)
- func (m *MockFenceInterface) Do(ctx context.Context, req *request.RequestBuilder) (*http.Response, error)
- func (m *MockFenceInterface) EXPECT() *MockFenceInterfaceMockRecorder
- func (m *MockFenceInterface) GenerateMultipartPresignedURL(ctx context.Context, key, uploadID string, partNumber int, bucket string) (string, error)
- func (m *MockFenceInterface) GetBucketDetails(ctx context.Context, bucket string) (*fence.S3Bucket, error)
- func (m *MockFenceInterface) GetDownloadPresignedUrl(ctx context.Context, guid, protocolText string) (string, error)
- func (m *MockFenceInterface) GetUploadPresignedUrl(ctx context.Context, guid, filename, bucket string) (fence.FenceResponse, error)
- func (m *MockFenceInterface) InitMultipartUpload(ctx context.Context, filename, bucket, guid string) (fence.FenceResponse, error)
- func (m *MockFenceInterface) InitUpload(ctx context.Context, filename, bucket, guid string) (fence.FenceResponse, error)
- func (m *MockFenceInterface) New(method, url string) *request.RequestBuilder
- func (m *MockFenceInterface) NewAccessToken(ctx context.Context) (string, error)
- func (m *MockFenceInterface) ParseFenceURLResponse(resp *http.Response) (fence.FenceResponse, error)
- type MockFenceInterfaceMockRecorder
- func (mr *MockFenceInterfaceMockRecorder) CheckForShepherdAPI(ctx any) *gomock.Call
- func (mr *MockFenceInterfaceMockRecorder) CheckPrivileges(ctx any) *gomock.Call
- func (mr *MockFenceInterfaceMockRecorder) CompleteMultipartUpload(ctx, key, uploadID, parts, bucket any) *gomock.Call
- func (mr *MockFenceInterfaceMockRecorder) DeleteRecord(ctx, guid any) *gomock.Call
- func (mr *MockFenceInterfaceMockRecorder) Do(ctx, req any) *gomock.Call
- func (mr *MockFenceInterfaceMockRecorder) GenerateMultipartPresignedURL(ctx, key, uploadID, partNumber, bucket any) *gomock.Call
- func (mr *MockFenceInterfaceMockRecorder) GetBucketDetails(ctx, bucket any) *gomock.Call
- func (mr *MockFenceInterfaceMockRecorder) GetDownloadPresignedUrl(ctx, guid, protocolText any) *gomock.Call
- func (mr *MockFenceInterfaceMockRecorder) GetUploadPresignedUrl(ctx, guid, filename, bucket any) *gomock.Call
- func (mr *MockFenceInterfaceMockRecorder) InitMultipartUpload(ctx, filename, bucket, guid any) *gomock.Call
- func (mr *MockFenceInterfaceMockRecorder) InitUpload(ctx, filename, bucket, guid any) *gomock.Call
- func (mr *MockFenceInterfaceMockRecorder) New(method, url any) *gomock.Call
- func (mr *MockFenceInterfaceMockRecorder) NewAccessToken(ctx any) *gomock.Call
- func (mr *MockFenceInterfaceMockRecorder) ParseFenceURLResponse(resp any) *gomock.Call
- type MockFunctionInterface
- func (m *MockFunctionInterface) CheckForShepherdAPI(ctx context.Context) (bool, error)
- func (m *MockFunctionInterface) CheckPrivileges(ctx context.Context) (map[string]any, error)
- func (m *MockFunctionInterface) DeleteRecord(ctx context.Context, guid string) (string, error)
- func (m *MockFunctionInterface) Do(ctx context.Context, req *request.RequestBuilder) (*http.Response, error)
- func (m *MockFunctionInterface) EXPECT() *MockFunctionInterfaceMockRecorder
- func (m *MockFunctionInterface) ExportCredential(ctx context.Context, cred *conf.Credential) error
- func (m *MockFunctionInterface) GetDownloadPresignedUrl(ctx context.Context, guid, protocolText string) (string, error)
- func (m *MockFunctionInterface) New(method, url string) *request.RequestBuilder
- func (m *MockFunctionInterface) NewAccessToken(ctx context.Context) error
- type MockFunctionInterfaceMockRecorder
- func (mr *MockFunctionInterfaceMockRecorder) CheckForShepherdAPI(ctx any) *gomock.Call
- func (mr *MockFunctionInterfaceMockRecorder) CheckPrivileges(ctx any) *gomock.Call
- func (mr *MockFunctionInterfaceMockRecorder) DeleteRecord(ctx, guid any) *gomock.Call
- func (mr *MockFunctionInterfaceMockRecorder) Do(ctx, req any) *gomock.Call
- func (mr *MockFunctionInterfaceMockRecorder) ExportCredential(ctx, cred any) *gomock.Call
- func (mr *MockFunctionInterfaceMockRecorder) GetDownloadPresignedUrl(ctx, guid, protocolText any) *gomock.Call
- func (mr *MockFunctionInterfaceMockRecorder) New(method, url any) *gomock.Call
- func (mr *MockFunctionInterfaceMockRecorder) NewAccessToken(ctx any) *gomock.Call
- type MockGen3Interface
- func (m *MockGen3Interface) EXPECT() *MockGen3InterfaceMockRecorder
- func (m *MockGen3Interface) ExportCredential(ctx context.Context, cred *conf.Credential) error
- func (m *MockGen3Interface) Fence() fence.FenceInterface
- func (m *MockGen3Interface) GetCredential() *conf.Credential
- func (m *MockGen3Interface) Indexd() indexd.IndexdInterface
- func (m *MockGen3Interface) Logger() *logs.Gen3Logger
- type MockGen3InterfaceMockRecorder
- func (mr *MockGen3InterfaceMockRecorder) ExportCredential(ctx, cred any) *gomock.Call
- func (mr *MockGen3InterfaceMockRecorder) Fence() *gomock.Call
- func (mr *MockGen3InterfaceMockRecorder) GetCredential() *gomock.Call
- func (mr *MockGen3InterfaceMockRecorder) Indexd() *gomock.Call
- func (mr *MockGen3InterfaceMockRecorder) Logger() *gomock.Call
- type MockIndexdInterface
- func (m *MockIndexdInterface) DeleteIndexdRecord(ctx context.Context, did string) error
- func (m *MockIndexdInterface) DeleteRecordByHash(ctx context.Context, hashValue, projectId string) error
- func (m *MockIndexdInterface) DeleteRecordsByProject(ctx context.Context, projectId string) error
- func (m *MockIndexdInterface) Do(ctx context.Context, req *request.RequestBuilder) (*http.Response, error)
- func (m *MockIndexdInterface) EXPECT() *MockIndexdInterfaceMockRecorder
- func (m *MockIndexdInterface) GetDownloadURL(ctx context.Context, did, accessType string) (*drs.AccessURL, error)
- func (m *MockIndexdInterface) GetObject(ctx context.Context, id string) (*drs.DRSObject, error)
- func (m *MockIndexdInterface) GetObjectByHash(ctx context.Context, hashType, hashValue string) ([]drs.DRSObject, error)
- func (m *MockIndexdInterface) GetProjectSample(ctx context.Context, projectId string, limit int) ([]drs.DRSObject, error)
- func (m *MockIndexdInterface) ListObjects(ctx context.Context) (chan drs.DRSObjectResult, error)
- func (m *MockIndexdInterface) ListObjectsByProject(ctx context.Context, projectId string) (chan drs.DRSObjectResult, error)
- func (m *MockIndexdInterface) New(method, url string) *request.RequestBuilder
- func (m *MockIndexdInterface) RegisterIndexdRecord(ctx context.Context, indexdObj *indexd.IndexdRecord) (*drs.DRSObject, error)
- func (m *MockIndexdInterface) RegisterRecord(ctx context.Context, record *drs.DRSObject) (*drs.DRSObject, error)
- func (m *MockIndexdInterface) UpdateRecord(ctx context.Context, updateInfo *drs.DRSObject, did string) (*drs.DRSObject, error)
- type MockIndexdInterfaceMockRecorder
- func (mr *MockIndexdInterfaceMockRecorder) DeleteIndexdRecord(ctx, did any) *gomock.Call
- func (mr *MockIndexdInterfaceMockRecorder) DeleteRecordByHash(ctx, hashValue, projectId any) *gomock.Call
- func (mr *MockIndexdInterfaceMockRecorder) DeleteRecordsByProject(ctx, projectId any) *gomock.Call
- func (mr *MockIndexdInterfaceMockRecorder) Do(ctx, req any) *gomock.Call
- func (mr *MockIndexdInterfaceMockRecorder) GetDownloadURL(ctx, did, accessType any) *gomock.Call
- func (mr *MockIndexdInterfaceMockRecorder) GetObject(ctx, id any) *gomock.Call
- func (mr *MockIndexdInterfaceMockRecorder) GetObjectByHash(ctx, hashType, hashValue any) *gomock.Call
- func (mr *MockIndexdInterfaceMockRecorder) GetProjectSample(ctx, projectId, limit any) *gomock.Call
- func (mr *MockIndexdInterfaceMockRecorder) ListObjects(ctx any) *gomock.Call
- func (mr *MockIndexdInterfaceMockRecorder) ListObjectsByProject(ctx, projectId any) *gomock.Call
- func (mr *MockIndexdInterfaceMockRecorder) New(method, url any) *gomock.Call
- func (mr *MockIndexdInterfaceMockRecorder) RegisterIndexdRecord(ctx, indexdObj any) *gomock.Call
- func (mr *MockIndexdInterfaceMockRecorder) RegisterRecord(ctx, record any) *gomock.Call
- func (mr *MockIndexdInterfaceMockRecorder) UpdateRecord(ctx, updateInfo, did any) *gomock.Call
- type MockManagerInterface
- func (m *MockManagerInterface) EXPECT() *MockManagerInterfaceMockRecorder
- func (m *MockManagerInterface) EnsureExists() error
- func (m *MockManagerInterface) Import(filePath, fenceToken string) (*conf.Credential, error)
- func (m *MockManagerInterface) IsValid(arg0 *conf.Credential) (bool, error)
- func (m *MockManagerInterface) Load(profile string) (*conf.Credential, error)
- func (m *MockManagerInterface) Save(cred *conf.Credential) error
- type MockManagerInterfaceMockRecorder
- func (mr *MockManagerInterfaceMockRecorder) EnsureExists() *gomock.Call
- func (mr *MockManagerInterfaceMockRecorder) Import(filePath, fenceToken any) *gomock.Call
- func (mr *MockManagerInterfaceMockRecorder) IsValid(arg0 any) *gomock.Call
- func (mr *MockManagerInterfaceMockRecorder) Load(profile any) *gomock.Call
- func (mr *MockManagerInterfaceMockRecorder) Save(cred any) *gomock.Call
- type MockRequestInterface
- type MockRequestInterfaceMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockFenceInterface ¶
type MockFenceInterface struct {
// contains filtered or unexported fields
}
MockFenceInterface is a mock of FenceInterface interface.
func NewMockFenceInterface ¶
func NewMockFenceInterface(ctrl *gomock.Controller) *MockFenceInterface
NewMockFenceInterface creates a new mock instance.
func (*MockFenceInterface) CheckForShepherdAPI ¶
func (m *MockFenceInterface) CheckForShepherdAPI(ctx context.Context) (bool, error)
CheckForShepherdAPI mocks base method.
func (*MockFenceInterface) CheckPrivileges ¶
CheckPrivileges mocks base method.
func (*MockFenceInterface) CompleteMultipartUpload ¶
func (m *MockFenceInterface) CompleteMultipartUpload(ctx context.Context, key, uploadID string, parts []fence.MultipartPart, bucket string) error
CompleteMultipartUpload mocks base method.
func (*MockFenceInterface) DeleteRecord ¶
DeleteRecord mocks base method.
func (*MockFenceInterface) Do ¶
func (m *MockFenceInterface) Do(ctx context.Context, req *request.RequestBuilder) (*http.Response, error)
Do mocks base method.
func (*MockFenceInterface) EXPECT ¶
func (m *MockFenceInterface) EXPECT() *MockFenceInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockFenceInterface) GenerateMultipartPresignedURL ¶
func (m *MockFenceInterface) GenerateMultipartPresignedURL(ctx context.Context, key, uploadID string, partNumber int, bucket string) (string, error)
GenerateMultipartPresignedURL mocks base method.
func (*MockFenceInterface) GetBucketDetails ¶
func (m *MockFenceInterface) GetBucketDetails(ctx context.Context, bucket string) (*fence.S3Bucket, error)
GetBucketDetails mocks base method.
func (*MockFenceInterface) GetDownloadPresignedUrl ¶
func (m *MockFenceInterface) GetDownloadPresignedUrl(ctx context.Context, guid, protocolText string) (string, error)
GetDownloadPresignedUrl mocks base method.
func (*MockFenceInterface) GetUploadPresignedUrl ¶
func (m *MockFenceInterface) GetUploadPresignedUrl(ctx context.Context, guid, filename, bucket string) (fence.FenceResponse, error)
GetUploadPresignedUrl mocks base method.
func (*MockFenceInterface) InitMultipartUpload ¶
func (m *MockFenceInterface) InitMultipartUpload(ctx context.Context, filename, bucket, guid string) (fence.FenceResponse, error)
InitMultipartUpload mocks base method.
func (*MockFenceInterface) InitUpload ¶
func (m *MockFenceInterface) InitUpload(ctx context.Context, filename, bucket, guid string) (fence.FenceResponse, error)
InitUpload mocks base method.
func (*MockFenceInterface) New ¶
func (m *MockFenceInterface) New(method, url string) *request.RequestBuilder
New mocks base method.
func (*MockFenceInterface) NewAccessToken ¶
func (m *MockFenceInterface) NewAccessToken(ctx context.Context) (string, error)
NewAccessToken mocks base method.
func (*MockFenceInterface) ParseFenceURLResponse ¶
func (m *MockFenceInterface) ParseFenceURLResponse(resp *http.Response) (fence.FenceResponse, error)
ParseFenceURLResponse mocks base method.
type MockFenceInterfaceMockRecorder ¶
type MockFenceInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockFenceInterfaceMockRecorder is the mock recorder for MockFenceInterface.
func (*MockFenceInterfaceMockRecorder) CheckForShepherdAPI ¶
func (mr *MockFenceInterfaceMockRecorder) CheckForShepherdAPI(ctx any) *gomock.Call
CheckForShepherdAPI indicates an expected call of CheckForShepherdAPI.
func (*MockFenceInterfaceMockRecorder) CheckPrivileges ¶
func (mr *MockFenceInterfaceMockRecorder) CheckPrivileges(ctx any) *gomock.Call
CheckPrivileges indicates an expected call of CheckPrivileges.
func (*MockFenceInterfaceMockRecorder) CompleteMultipartUpload ¶
func (mr *MockFenceInterfaceMockRecorder) CompleteMultipartUpload(ctx, key, uploadID, parts, bucket any) *gomock.Call
CompleteMultipartUpload indicates an expected call of CompleteMultipartUpload.
func (*MockFenceInterfaceMockRecorder) DeleteRecord ¶
func (mr *MockFenceInterfaceMockRecorder) DeleteRecord(ctx, guid any) *gomock.Call
DeleteRecord indicates an expected call of DeleteRecord.
func (*MockFenceInterfaceMockRecorder) Do ¶
func (mr *MockFenceInterfaceMockRecorder) Do(ctx, req any) *gomock.Call
Do indicates an expected call of Do.
func (*MockFenceInterfaceMockRecorder) GenerateMultipartPresignedURL ¶
func (mr *MockFenceInterfaceMockRecorder) GenerateMultipartPresignedURL(ctx, key, uploadID, partNumber, bucket any) *gomock.Call
GenerateMultipartPresignedURL indicates an expected call of GenerateMultipartPresignedURL.
func (*MockFenceInterfaceMockRecorder) GetBucketDetails ¶
func (mr *MockFenceInterfaceMockRecorder) GetBucketDetails(ctx, bucket any) *gomock.Call
GetBucketDetails indicates an expected call of GetBucketDetails.
func (*MockFenceInterfaceMockRecorder) GetDownloadPresignedUrl ¶
func (mr *MockFenceInterfaceMockRecorder) GetDownloadPresignedUrl(ctx, guid, protocolText any) *gomock.Call
GetDownloadPresignedUrl indicates an expected call of GetDownloadPresignedUrl.
func (*MockFenceInterfaceMockRecorder) GetUploadPresignedUrl ¶
func (mr *MockFenceInterfaceMockRecorder) GetUploadPresignedUrl(ctx, guid, filename, bucket any) *gomock.Call
GetUploadPresignedUrl indicates an expected call of GetUploadPresignedUrl.
func (*MockFenceInterfaceMockRecorder) InitMultipartUpload ¶
func (mr *MockFenceInterfaceMockRecorder) InitMultipartUpload(ctx, filename, bucket, guid any) *gomock.Call
InitMultipartUpload indicates an expected call of InitMultipartUpload.
func (*MockFenceInterfaceMockRecorder) InitUpload ¶
func (mr *MockFenceInterfaceMockRecorder) InitUpload(ctx, filename, bucket, guid any) *gomock.Call
InitUpload indicates an expected call of InitUpload.
func (*MockFenceInterfaceMockRecorder) New ¶
func (mr *MockFenceInterfaceMockRecorder) New(method, url any) *gomock.Call
New indicates an expected call of New.
func (*MockFenceInterfaceMockRecorder) NewAccessToken ¶
func (mr *MockFenceInterfaceMockRecorder) NewAccessToken(ctx any) *gomock.Call
NewAccessToken indicates an expected call of NewAccessToken.
func (*MockFenceInterfaceMockRecorder) ParseFenceURLResponse ¶
func (mr *MockFenceInterfaceMockRecorder) ParseFenceURLResponse(resp any) *gomock.Call
ParseFenceURLResponse indicates an expected call of ParseFenceURLResponse.
type MockFunctionInterface ¶
type MockFunctionInterface struct {
// contains filtered or unexported fields
}
MockFunctionInterface is a mock of FunctionInterface interface.
func NewMockFunctionInterface ¶
func NewMockFunctionInterface(ctrl *gomock.Controller) *MockFunctionInterface
NewMockFunctionInterface creates a new mock instance.
func (*MockFunctionInterface) CheckForShepherdAPI ¶
func (m *MockFunctionInterface) CheckForShepherdAPI(ctx context.Context) (bool, error)
CheckForShepherdAPI mocks base method.
func (*MockFunctionInterface) CheckPrivileges ¶
CheckPrivileges mocks base method.
func (*MockFunctionInterface) DeleteRecord ¶
DeleteRecord mocks base method.
func (*MockFunctionInterface) Do ¶
func (m *MockFunctionInterface) Do(ctx context.Context, req *request.RequestBuilder) (*http.Response, error)
Do mocks base method.
func (*MockFunctionInterface) EXPECT ¶
func (m *MockFunctionInterface) EXPECT() *MockFunctionInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockFunctionInterface) ExportCredential ¶
func (m *MockFunctionInterface) ExportCredential(ctx context.Context, cred *conf.Credential) error
ExportCredential mocks base method.
func (*MockFunctionInterface) GetDownloadPresignedUrl ¶
func (m *MockFunctionInterface) GetDownloadPresignedUrl(ctx context.Context, guid, protocolText string) (string, error)
GetDownloadPresignedUrl mocks base method.
func (*MockFunctionInterface) New ¶
func (m *MockFunctionInterface) New(method, url string) *request.RequestBuilder
New mocks base method.
func (*MockFunctionInterface) NewAccessToken ¶
func (m *MockFunctionInterface) NewAccessToken(ctx context.Context) error
NewAccessToken mocks base method.
type MockFunctionInterfaceMockRecorder ¶
type MockFunctionInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockFunctionInterfaceMockRecorder is the mock recorder for MockFunctionInterface.
func (*MockFunctionInterfaceMockRecorder) CheckForShepherdAPI ¶
func (mr *MockFunctionInterfaceMockRecorder) CheckForShepherdAPI(ctx any) *gomock.Call
CheckForShepherdAPI indicates an expected call of CheckForShepherdAPI.
func (*MockFunctionInterfaceMockRecorder) CheckPrivileges ¶
func (mr *MockFunctionInterfaceMockRecorder) CheckPrivileges(ctx any) *gomock.Call
CheckPrivileges indicates an expected call of CheckPrivileges.
func (*MockFunctionInterfaceMockRecorder) DeleteRecord ¶
func (mr *MockFunctionInterfaceMockRecorder) DeleteRecord(ctx, guid any) *gomock.Call
DeleteRecord indicates an expected call of DeleteRecord.
func (*MockFunctionInterfaceMockRecorder) Do ¶
func (mr *MockFunctionInterfaceMockRecorder) Do(ctx, req any) *gomock.Call
Do indicates an expected call of Do.
func (*MockFunctionInterfaceMockRecorder) ExportCredential ¶
func (mr *MockFunctionInterfaceMockRecorder) ExportCredential(ctx, cred any) *gomock.Call
ExportCredential indicates an expected call of ExportCredential.
func (*MockFunctionInterfaceMockRecorder) GetDownloadPresignedUrl ¶
func (mr *MockFunctionInterfaceMockRecorder) GetDownloadPresignedUrl(ctx, guid, protocolText any) *gomock.Call
GetDownloadPresignedUrl indicates an expected call of GetDownloadPresignedUrl.
func (*MockFunctionInterfaceMockRecorder) New ¶
func (mr *MockFunctionInterfaceMockRecorder) New(method, url any) *gomock.Call
New indicates an expected call of New.
func (*MockFunctionInterfaceMockRecorder) NewAccessToken ¶
func (mr *MockFunctionInterfaceMockRecorder) NewAccessToken(ctx any) *gomock.Call
NewAccessToken indicates an expected call of NewAccessToken.
type MockGen3Interface ¶
type MockGen3Interface struct {
// contains filtered or unexported fields
}
MockGen3Interface is a mock of Gen3Interface interface.
func NewMockGen3Interface ¶
func NewMockGen3Interface(ctrl *gomock.Controller) *MockGen3Interface
NewMockGen3Interface creates a new mock instance.
func (*MockGen3Interface) EXPECT ¶
func (m *MockGen3Interface) EXPECT() *MockGen3InterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGen3Interface) ExportCredential ¶
func (m *MockGen3Interface) ExportCredential(ctx context.Context, cred *conf.Credential) error
ExportCredential mocks base method.
func (*MockGen3Interface) Fence ¶
func (m *MockGen3Interface) Fence() fence.FenceInterface
Fence mocks base method.
func (*MockGen3Interface) GetCredential ¶
func (m *MockGen3Interface) GetCredential() *conf.Credential
GetCredential mocks base method.
func (*MockGen3Interface) Indexd ¶
func (m *MockGen3Interface) Indexd() indexd.IndexdInterface
Indexd mocks base method.
func (*MockGen3Interface) Logger ¶
func (m *MockGen3Interface) Logger() *logs.Gen3Logger
Logger mocks base method.
type MockGen3InterfaceMockRecorder ¶
type MockGen3InterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockGen3InterfaceMockRecorder is the mock recorder for MockGen3Interface.
func (*MockGen3InterfaceMockRecorder) ExportCredential ¶
func (mr *MockGen3InterfaceMockRecorder) ExportCredential(ctx, cred any) *gomock.Call
ExportCredential indicates an expected call of ExportCredential.
func (*MockGen3InterfaceMockRecorder) Fence ¶
func (mr *MockGen3InterfaceMockRecorder) Fence() *gomock.Call
Fence indicates an expected call of Fence.
func (*MockGen3InterfaceMockRecorder) GetCredential ¶
func (mr *MockGen3InterfaceMockRecorder) GetCredential() *gomock.Call
GetCredential indicates an expected call of GetCredential.
func (*MockGen3InterfaceMockRecorder) Indexd ¶
func (mr *MockGen3InterfaceMockRecorder) Indexd() *gomock.Call
Indexd indicates an expected call of Indexd.
func (*MockGen3InterfaceMockRecorder) Logger ¶
func (mr *MockGen3InterfaceMockRecorder) Logger() *gomock.Call
Logger indicates an expected call of Logger.
type MockIndexdInterface ¶
type MockIndexdInterface struct {
// contains filtered or unexported fields
}
MockIndexdInterface is a mock of IndexdInterface interface.
func NewMockIndexdInterface ¶
func NewMockIndexdInterface(ctrl *gomock.Controller) *MockIndexdInterface
NewMockIndexdInterface creates a new mock instance.
func (*MockIndexdInterface) DeleteIndexdRecord ¶
func (m *MockIndexdInterface) DeleteIndexdRecord(ctx context.Context, did string) error
DeleteIndexdRecord mocks base method.
func (*MockIndexdInterface) DeleteRecordByHash ¶
func (m *MockIndexdInterface) DeleteRecordByHash(ctx context.Context, hashValue, projectId string) error
DeleteRecordByHash mocks base method.
func (*MockIndexdInterface) DeleteRecordsByProject ¶
func (m *MockIndexdInterface) DeleteRecordsByProject(ctx context.Context, projectId string) error
DeleteRecordsByProject mocks base method.
func (*MockIndexdInterface) Do ¶
func (m *MockIndexdInterface) Do(ctx context.Context, req *request.RequestBuilder) (*http.Response, error)
Do mocks base method.
func (*MockIndexdInterface) EXPECT ¶
func (m *MockIndexdInterface) EXPECT() *MockIndexdInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIndexdInterface) GetDownloadURL ¶
func (m *MockIndexdInterface) GetDownloadURL(ctx context.Context, did, accessType string) (*drs.AccessURL, error)
GetDownloadURL mocks base method.
func (*MockIndexdInterface) GetObjectByHash ¶
func (m *MockIndexdInterface) GetObjectByHash(ctx context.Context, hashType, hashValue string) ([]drs.DRSObject, error)
GetObjectByHash mocks base method.
func (*MockIndexdInterface) GetProjectSample ¶
func (m *MockIndexdInterface) GetProjectSample(ctx context.Context, projectId string, limit int) ([]drs.DRSObject, error)
GetProjectSample mocks base method.
func (*MockIndexdInterface) ListObjects ¶
func (m *MockIndexdInterface) ListObjects(ctx context.Context) (chan drs.DRSObjectResult, error)
ListObjects mocks base method.
func (*MockIndexdInterface) ListObjectsByProject ¶
func (m *MockIndexdInterface) ListObjectsByProject(ctx context.Context, projectId string) (chan drs.DRSObjectResult, error)
ListObjectsByProject mocks base method.
func (*MockIndexdInterface) New ¶
func (m *MockIndexdInterface) New(method, url string) *request.RequestBuilder
New mocks base method.
func (*MockIndexdInterface) RegisterIndexdRecord ¶
func (m *MockIndexdInterface) RegisterIndexdRecord(ctx context.Context, indexdObj *indexd.IndexdRecord) (*drs.DRSObject, error)
RegisterIndexdRecord mocks base method.
func (*MockIndexdInterface) RegisterRecord ¶
func (m *MockIndexdInterface) RegisterRecord(ctx context.Context, record *drs.DRSObject) (*drs.DRSObject, error)
RegisterRecord mocks base method.
type MockIndexdInterfaceMockRecorder ¶
type MockIndexdInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockIndexdInterfaceMockRecorder is the mock recorder for MockIndexdInterface.
func (*MockIndexdInterfaceMockRecorder) DeleteIndexdRecord ¶
func (mr *MockIndexdInterfaceMockRecorder) DeleteIndexdRecord(ctx, did any) *gomock.Call
DeleteIndexdRecord indicates an expected call of DeleteIndexdRecord.
func (*MockIndexdInterfaceMockRecorder) DeleteRecordByHash ¶
func (mr *MockIndexdInterfaceMockRecorder) DeleteRecordByHash(ctx, hashValue, projectId any) *gomock.Call
DeleteRecordByHash indicates an expected call of DeleteRecordByHash.
func (*MockIndexdInterfaceMockRecorder) DeleteRecordsByProject ¶
func (mr *MockIndexdInterfaceMockRecorder) DeleteRecordsByProject(ctx, projectId any) *gomock.Call
DeleteRecordsByProject indicates an expected call of DeleteRecordsByProject.
func (*MockIndexdInterfaceMockRecorder) Do ¶
func (mr *MockIndexdInterfaceMockRecorder) Do(ctx, req any) *gomock.Call
Do indicates an expected call of Do.
func (*MockIndexdInterfaceMockRecorder) GetDownloadURL ¶
func (mr *MockIndexdInterfaceMockRecorder) GetDownloadURL(ctx, did, accessType any) *gomock.Call
GetDownloadURL indicates an expected call of GetDownloadURL.
func (*MockIndexdInterfaceMockRecorder) GetObject ¶
func (mr *MockIndexdInterfaceMockRecorder) GetObject(ctx, id any) *gomock.Call
GetObject indicates an expected call of GetObject.
func (*MockIndexdInterfaceMockRecorder) GetObjectByHash ¶
func (mr *MockIndexdInterfaceMockRecorder) GetObjectByHash(ctx, hashType, hashValue any) *gomock.Call
GetObjectByHash indicates an expected call of GetObjectByHash.
func (*MockIndexdInterfaceMockRecorder) GetProjectSample ¶
func (mr *MockIndexdInterfaceMockRecorder) GetProjectSample(ctx, projectId, limit any) *gomock.Call
GetProjectSample indicates an expected call of GetProjectSample.
func (*MockIndexdInterfaceMockRecorder) ListObjects ¶
func (mr *MockIndexdInterfaceMockRecorder) ListObjects(ctx any) *gomock.Call
ListObjects indicates an expected call of ListObjects.
func (*MockIndexdInterfaceMockRecorder) ListObjectsByProject ¶
func (mr *MockIndexdInterfaceMockRecorder) ListObjectsByProject(ctx, projectId any) *gomock.Call
ListObjectsByProject indicates an expected call of ListObjectsByProject.
func (*MockIndexdInterfaceMockRecorder) New ¶
func (mr *MockIndexdInterfaceMockRecorder) New(method, url any) *gomock.Call
New indicates an expected call of New.
func (*MockIndexdInterfaceMockRecorder) RegisterIndexdRecord ¶
func (mr *MockIndexdInterfaceMockRecorder) RegisterIndexdRecord(ctx, indexdObj any) *gomock.Call
RegisterIndexdRecord indicates an expected call of RegisterIndexdRecord.
func (*MockIndexdInterfaceMockRecorder) RegisterRecord ¶
func (mr *MockIndexdInterfaceMockRecorder) RegisterRecord(ctx, record any) *gomock.Call
RegisterRecord indicates an expected call of RegisterRecord.
func (*MockIndexdInterfaceMockRecorder) UpdateRecord ¶
func (mr *MockIndexdInterfaceMockRecorder) UpdateRecord(ctx, updateInfo, did any) *gomock.Call
UpdateRecord indicates an expected call of UpdateRecord.
type MockManagerInterface ¶
type MockManagerInterface struct {
// contains filtered or unexported fields
}
MockManagerInterface is a mock of ManagerInterface interface.
func NewMockManagerInterface ¶
func NewMockManagerInterface(ctrl *gomock.Controller) *MockManagerInterface
NewMockManagerInterface creates a new mock instance.
func (*MockManagerInterface) EXPECT ¶
func (m *MockManagerInterface) EXPECT() *MockManagerInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockManagerInterface) EnsureExists ¶
func (m *MockManagerInterface) EnsureExists() error
EnsureExists mocks base method.
func (*MockManagerInterface) Import ¶
func (m *MockManagerInterface) Import(filePath, fenceToken string) (*conf.Credential, error)
Import mocks base method.
func (*MockManagerInterface) IsValid ¶
func (m *MockManagerInterface) IsValid(arg0 *conf.Credential) (bool, error)
IsValid mocks base method.
func (*MockManagerInterface) Load ¶
func (m *MockManagerInterface) Load(profile string) (*conf.Credential, error)
Load mocks base method.
func (*MockManagerInterface) Save ¶
func (m *MockManagerInterface) Save(cred *conf.Credential) error
Save mocks base method.
type MockManagerInterfaceMockRecorder ¶
type MockManagerInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockManagerInterfaceMockRecorder is the mock recorder for MockManagerInterface.
func (*MockManagerInterfaceMockRecorder) EnsureExists ¶
func (mr *MockManagerInterfaceMockRecorder) EnsureExists() *gomock.Call
EnsureExists indicates an expected call of EnsureExists.
func (*MockManagerInterfaceMockRecorder) Import ¶
func (mr *MockManagerInterfaceMockRecorder) Import(filePath, fenceToken any) *gomock.Call
Import indicates an expected call of Import.
func (*MockManagerInterfaceMockRecorder) IsValid ¶
func (mr *MockManagerInterfaceMockRecorder) IsValid(arg0 any) *gomock.Call
IsValid indicates an expected call of IsValid.
type MockRequestInterface ¶
type MockRequestInterface struct {
// contains filtered or unexported fields
}
MockRequestInterface is a mock of RequestInterface interface.
func NewMockRequestInterface ¶
func NewMockRequestInterface(ctrl *gomock.Controller) *MockRequestInterface
NewMockRequestInterface creates a new mock instance.
func (*MockRequestInterface) Do ¶
func (m *MockRequestInterface) Do(ctx context.Context, req *request.RequestBuilder) (*http.Response, error)
Do mocks base method.
func (*MockRequestInterface) EXPECT ¶
func (m *MockRequestInterface) EXPECT() *MockRequestInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRequestInterface) New ¶
func (m *MockRequestInterface) New(method, url string) *request.RequestBuilder
New mocks base method.
type MockRequestInterfaceMockRecorder ¶
type MockRequestInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockRequestInterfaceMockRecorder is the mock recorder for MockRequestInterface.