Documentation ¶
Index ¶
- type DocumentsOnList
- type MockSecurityAdvisoryClient
- func (m MockSecurityAdvisoryClient) ListDocuments(_ context.Context, given *advisory.DocumentFilter, _ ...grpc.CallOption) (*advisory.DocumentList, error)
- func (m MockSecurityAdvisoryClient) ListVulnerabilityMetadata(_ context.Context, given *advisory.VulnerabilityMetadataFilter, ...) (*advisory.VulnerabilityMetadataList, error)
- type MockSecurityAdvisoryClients
- type VulnerabilityMetadataOnList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DocumentsOnList ¶
type DocumentsOnList struct { Given *advisory.DocumentFilter List *advisory.DocumentList Error error }
type MockSecurityAdvisoryClient ¶
type MockSecurityAdvisoryClient struct { OnListDocuments []DocumentsOnList OnListVulnerabilityMetadata []VulnerabilityMetadataOnList }
func (MockSecurityAdvisoryClient) ListDocuments ¶
func (m MockSecurityAdvisoryClient) ListDocuments(_ context.Context, given *advisory.DocumentFilter, _ ...grpc.CallOption) (*advisory.DocumentList, error)
func (MockSecurityAdvisoryClient) ListVulnerabilityMetadata ¶ added in v0.1.15
func (m MockSecurityAdvisoryClient) ListVulnerabilityMetadata(_ context.Context, given *advisory.VulnerabilityMetadataFilter, _ ...grpc.CallOption) (*advisory.VulnerabilityMetadataList, error)
type MockSecurityAdvisoryClients ¶
type MockSecurityAdvisoryClients struct { OnClose error SecurityAdvisoryClient MockSecurityAdvisoryClient }
func (MockSecurityAdvisoryClients) Close ¶
func (m MockSecurityAdvisoryClients) Close() error
func (MockSecurityAdvisoryClients) SecurityAdvisory ¶
func (m MockSecurityAdvisoryClients) SecurityAdvisory() advisory.SecurityAdvisoryClient
type VulnerabilityMetadataOnList ¶ added in v0.1.15
type VulnerabilityMetadataOnList struct { Given *advisory.VulnerabilityMetadataFilter List *advisory.VulnerabilityMetadataList Error error }
Click to show internal directories.
Click to hide internal directories.