test

package
v0.1.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

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

type MockSbomsClient

type MockSbomsClient struct {
	OnList []SbomsOnList
}

func (MockSbomsClient) List

type MockSignaturesClient

type MockSignaturesClient struct {
	OnList []SignaturesOnList
}

func (MockSignaturesClient) List

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 (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

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL