Documentation ¶
Index ¶
- type DocumentClassifier
- type DocumentCreator
- type DocumentDeleter
- type DocumentExtractor
- type DocumentGetter
- type DocumentReader
- type DocumentRedactor
- type MockDocumentCreator
- func (mock *MockDocumentCreator) Create(ctx context.Context, fileContents io.Reader) (ch360.Document, error)
- func (mock *MockDocumentCreator) FailHandler() pegomock.FailHandler
- func (mock *MockDocumentCreator) SetFailHandler(fh pegomock.FailHandler)
- func (mock *MockDocumentCreator) VerifyWasCalled(invocationCountMatcher pegomock.Matcher) *VerifierMockDocumentCreator
- func (mock *MockDocumentCreator) VerifyWasCalledEventually(invocationCountMatcher pegomock.Matcher, timeout time.Duration) *VerifierMockDocumentCreator
- func (mock *MockDocumentCreator) VerifyWasCalledInOrder(invocationCountMatcher pegomock.Matcher, ...) *VerifierMockDocumentCreator
- func (mock *MockDocumentCreator) VerifyWasCalledOnce() *VerifierMockDocumentCreator
- type MockDocumentCreator_Create_OngoingVerification
- type MockDocumentDeleter
- func (mock *MockDocumentDeleter) Delete(ctx context.Context, documentId string) error
- func (mock *MockDocumentDeleter) FailHandler() pegomock.FailHandler
- func (mock *MockDocumentDeleter) SetFailHandler(fh pegomock.FailHandler)
- func (mock *MockDocumentDeleter) VerifyWasCalled(invocationCountMatcher pegomock.Matcher) *VerifierMockDocumentDeleter
- func (mock *MockDocumentDeleter) VerifyWasCalledEventually(invocationCountMatcher pegomock.Matcher, timeout time.Duration) *VerifierMockDocumentDeleter
- func (mock *MockDocumentDeleter) VerifyWasCalledInOrder(invocationCountMatcher pegomock.Matcher, ...) *VerifierMockDocumentDeleter
- func (mock *MockDocumentDeleter) VerifyWasCalledOnce() *VerifierMockDocumentDeleter
- type MockDocumentDeleter_Delete_OngoingVerification
- type ReadProfileCreator
- type ReadProfileGetter
- type ReadProfileGetterDeleter
- type VerifierMockDocumentCreator
- type VerifierMockDocumentDeleter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DocumentClassifier ¶
DocumentClassifier is an autogenerated mock type for the DocumentClassifier type
func (*DocumentClassifier) Classify ¶
func (_m *DocumentClassifier) Classify(ctx context.Context, documentId string, classifierName string, args client.ReadProfileArgs) (*results.ClassificationResult, error)
Classify provides a mock function with given fields: ctx, documentId, classifierName
type DocumentCreator ¶
DocumentCreator is an autogenerated mock type for the DocumentCreator type
type DocumentDeleter ¶
DocumentDeleter is an autogenerated mock type for the DocumentDeleter type
type DocumentExtractor ¶
DocumentExtractor is an autogenerated mock type for the DocumentExtractor type
func (*DocumentExtractor) Extract ¶
func (_m *DocumentExtractor) Extract(ctx context.Context, documentId string, extractorName string, args client.ReadProfileArgs) (*results.ExtractionResult, error)
Extract provides a mock function with given fields: ctx, documentId, extractorName
func (*DocumentExtractor) ExtractForRedaction ¶
func (_m *DocumentExtractor) ExtractForRedaction(ctx context.Context, documentId string, extractorName string, args client.ReadProfileArgs) (*results.ExtractForRedactionResult, error)
ExtractForRedaction provides a mock function with given fields: ctx, documentId, extractorName
type DocumentGetter ¶
DocumentGetter is an autogenerated mock type for the DocumentGetter type
func (*DocumentGetter) GetAll ¶
func (_m *DocumentGetter) GetAll(ctx context.Context) (ch360.DocumentList, error)
GetAll provides a mock function with given fields: ctx
type DocumentReader ¶
DocumentReader is an autogenerated mock type for the DocumentReader type
func (*DocumentReader) Read ¶
func (_m *DocumentReader) Read(ctx context.Context, documentId string, args ch360.ReadProfileArgs) error
Read provides a mock function with given fields: ctx, documentId, args
func (*DocumentReader) ReadResult ¶
func (_m *DocumentReader) ReadResult(ctx context.Context, documentId string, mode ch360.ReadMode, args ch360.ReadProfileArgs) (io.ReadCloser, error)
ReadResult provides a mock function with given fields: ctx, documentId, mode, args
type DocumentRedactor ¶
DocumentRedactor is an autogenerated mock type for the DocumentRedactor type
func (*DocumentRedactor) Redact ¶
func (_m *DocumentRedactor) Redact(ctx context.Context, documentId string, redactRequest request.RedactedPdfRequest) (io.ReadCloser, error)
Redact provides a mock function with given fields: ctx, documentId, redactRequest
type MockDocumentCreator ¶
type MockDocumentCreator struct {
// contains filtered or unexported fields
}
func NewMockDocumentCreator ¶
func NewMockDocumentCreator(options ...pegomock.Option) *MockDocumentCreator
func (*MockDocumentCreator) FailHandler ¶
func (mock *MockDocumentCreator) FailHandler() pegomock.FailHandler
func (*MockDocumentCreator) SetFailHandler ¶
func (mock *MockDocumentCreator) SetFailHandler(fh pegomock.FailHandler)
func (*MockDocumentCreator) VerifyWasCalled ¶
func (mock *MockDocumentCreator) VerifyWasCalled(invocationCountMatcher pegomock.Matcher) *VerifierMockDocumentCreator
func (*MockDocumentCreator) VerifyWasCalledEventually ¶
func (mock *MockDocumentCreator) VerifyWasCalledEventually(invocationCountMatcher pegomock.Matcher, timeout time.Duration) *VerifierMockDocumentCreator
func (*MockDocumentCreator) VerifyWasCalledInOrder ¶
func (mock *MockDocumentCreator) VerifyWasCalledInOrder(invocationCountMatcher pegomock.Matcher, inOrderContext *pegomock.InOrderContext) *VerifierMockDocumentCreator
func (*MockDocumentCreator) VerifyWasCalledOnce ¶
func (mock *MockDocumentCreator) VerifyWasCalledOnce() *VerifierMockDocumentCreator
type MockDocumentCreator_Create_OngoingVerification ¶
type MockDocumentCreator_Create_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockDocumentCreator_Create_OngoingVerification) GetAllCapturedArguments ¶
func (c *MockDocumentCreator_Create_OngoingVerification) GetAllCapturedArguments() (_param0 []context.Context, _param1 []io.Reader)
func (*MockDocumentCreator_Create_OngoingVerification) GetCapturedArguments ¶
func (c *MockDocumentCreator_Create_OngoingVerification) GetCapturedArguments() (context.Context, io.Reader)
type MockDocumentDeleter ¶
type MockDocumentDeleter struct {
// contains filtered or unexported fields
}
func NewMockDocumentDeleter ¶
func NewMockDocumentDeleter(options ...pegomock.Option) *MockDocumentDeleter
func (*MockDocumentDeleter) Delete ¶
func (mock *MockDocumentDeleter) Delete(ctx context.Context, documentId string) error
func (*MockDocumentDeleter) FailHandler ¶
func (mock *MockDocumentDeleter) FailHandler() pegomock.FailHandler
func (*MockDocumentDeleter) SetFailHandler ¶
func (mock *MockDocumentDeleter) SetFailHandler(fh pegomock.FailHandler)
func (*MockDocumentDeleter) VerifyWasCalled ¶
func (mock *MockDocumentDeleter) VerifyWasCalled(invocationCountMatcher pegomock.Matcher) *VerifierMockDocumentDeleter
func (*MockDocumentDeleter) VerifyWasCalledEventually ¶
func (mock *MockDocumentDeleter) VerifyWasCalledEventually(invocationCountMatcher pegomock.Matcher, timeout time.Duration) *VerifierMockDocumentDeleter
func (*MockDocumentDeleter) VerifyWasCalledInOrder ¶
func (mock *MockDocumentDeleter) VerifyWasCalledInOrder(invocationCountMatcher pegomock.Matcher, inOrderContext *pegomock.InOrderContext) *VerifierMockDocumentDeleter
func (*MockDocumentDeleter) VerifyWasCalledOnce ¶
func (mock *MockDocumentDeleter) VerifyWasCalledOnce() *VerifierMockDocumentDeleter
type MockDocumentDeleter_Delete_OngoingVerification ¶
type MockDocumentDeleter_Delete_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockDocumentDeleter_Delete_OngoingVerification) GetAllCapturedArguments ¶
func (c *MockDocumentDeleter_Delete_OngoingVerification) GetAllCapturedArguments() (_param0 []context.Context, _param1 []string)
func (*MockDocumentDeleter_Delete_OngoingVerification) GetCapturedArguments ¶
func (c *MockDocumentDeleter_Delete_OngoingVerification) GetCapturedArguments() (context.Context, string)
type ReadProfileCreator ¶
ReadProfileCreator is an autogenerated mock type for the ReadProfileCreator type
func (*ReadProfileCreator) Create ¶
func (_m *ReadProfileCreator) Create(ctx context.Context, name string, languages []string) (ch360.ReadProfile, error)
Create provides a mock function with given fields: ctx, name, languages
type ReadProfileGetter ¶
ReadProfileGetter is an autogenerated mock type for the ReadProfileGetter type
func (*ReadProfileGetter) GetAll ¶
func (_m *ReadProfileGetter) GetAll(ctx context.Context) (ch360.ReadProfileList, error)
GetAll provides a mock function with given fields: ctx
type ReadProfileGetterDeleter ¶
ReadProfileGetterDeleter is an autogenerated mock type for the ReadProfileGetterDeleter type
func (*ReadProfileGetterDeleter) Delete ¶
func (_m *ReadProfileGetterDeleter) Delete(ctx context.Context, name string) error
Delete provides a mock function with given fields: ctx, name
func (*ReadProfileGetterDeleter) GetAll ¶
func (_m *ReadProfileGetterDeleter) GetAll(ctx context.Context) (ch360.ReadProfileList, error)
GetAll provides a mock function with given fields: ctx
type VerifierMockDocumentCreator ¶
type VerifierMockDocumentCreator struct {
// contains filtered or unexported fields
}
func (*VerifierMockDocumentCreator) Create ¶
func (verifier *VerifierMockDocumentCreator) Create(ctx context.Context, fileContents io.Reader) *MockDocumentCreator_Create_OngoingVerification
type VerifierMockDocumentDeleter ¶
type VerifierMockDocumentDeleter struct {
// contains filtered or unexported fields
}
func (*VerifierMockDocumentDeleter) Delete ¶
func (verifier *VerifierMockDocumentDeleter) Delete(ctx context.Context, documentId string) *MockDocumentDeleter_Delete_OngoingVerification