Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttestationsOnList ¶
type AttestationsOnList struct { Given *tenant.AttestationFilter List *tenant.AttestationList Error error }
type MockAttestationsClientt ¶
type MockAttestationsClientt struct {
OnList []AttestationsOnList
}
func (MockAttestationsClientt) List ¶
func (m MockAttestationsClientt) List(_ context.Context, given *tenant.AttestationFilter, _ ...grpc.CallOption) (*tenant.AttestationList, error)
type MockSbomsClient ¶
type MockSbomsClient struct {
OnList []SbomsOnList
}
func (MockSbomsClient) List ¶
func (m MockSbomsClient) List(_ context.Context, given *tenant.Sbom2Filter, _ ...grpc.CallOption) (*tenant.Sbom2List, error)
type MockSignaturesClient ¶
type MockSignaturesClient struct {
OnList []SignaturesOnList
}
func (MockSignaturesClient) List ¶
func (m MockSignaturesClient) List(_ context.Context, given *tenant.SignatureFilter, _ ...grpc.CallOption) (*tenant.SignatureList, error)
type MockTenantClient ¶
type MockTenantClient struct { OnClose error SbomsClient MockSbomsClient SignaturesClient MockSignaturesClient VulnReportsClient MockVulnReportsClient AttestationClient MockAttestationsClientt }
func (MockTenantClient) Attestations ¶
func (m MockTenantClient) Attestations() tenant.AttestationsClient
func (MockTenantClient) Close ¶
func (m MockTenantClient) Close() error
func (MockTenantClient) Sboms ¶
func (m MockTenantClient) Sboms() tenant.SbomsClient
func (MockTenantClient) Signatures ¶
func (m MockTenantClient) Signatures() tenant.SignaturesClient
func (MockTenantClient) VulnReports ¶
func (m MockTenantClient) VulnReports() tenant.VulnReportsClient
type MockVulnReportsClient ¶
type MockVulnReportsClient struct {
OnList []VulnReportsOnList
}
func (MockVulnReportsClient) List ¶
func (m MockVulnReportsClient) List(_ context.Context, given *tenant.VulnReportFilter, _ ...grpc.CallOption) (*tenant.VulnReportList, error)
type SbomsOnList ¶
type SbomsOnList struct { Given *tenant.Sbom2Filter List *tenant.Sbom2List Error error }
type SignaturesOnList ¶
type SignaturesOnList struct { Given *tenant.SignatureFilter List *tenant.SignatureList Error error }
type VulnReportsOnList ¶
type VulnReportsOnList struct { Given *tenant.VulnReportFilter List *tenant.VulnReportList Error error }
Click to show internal directories.
Click to hide internal directories.