test

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: Apache-2.0 Imports: 7 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 ClustersOnCIDR

type ClustersOnCIDR struct {
	Given  *tenant.ClusterCIDRRequest
	Config *tenant.ClusterCIDRResponse
	Error  error
}

type ClustersOnConfig

type ClustersOnConfig struct {
	Given  *tenant.ClusterConfigRequest
	Config *tenant.ClusterConfigResponse
	Error  error
}

type ClustersOnCreate

type ClustersOnCreate struct {
	Given   *tenant.CreateClusterRequest
	Created *tenant.Cluster
	Error   error
}

type ClustersOnDelete

type ClustersOnDelete struct {
	Given *tenant.CreateClusterRequest
	Error error
}

type ClustersOnDiscover

type ClustersOnDiscover struct {
	Given  *tenant.ClusterDiscoveryRequest
	Config *tenant.ClusterDiscoveryResponse
	Error  error
}

type ClustersOnList

type ClustersOnList struct {
	Given *tenant.ClusterFilter
	List  *tenant.ClusterList
	Error error
}

type ClustersOnProfiles

type ClustersOnProfiles struct {
	Given  *tenant.ClusterProfilesRequest
	Config *tenant.ClusterProfilesResponse
	Error  error
}

type ClustersOnUpdate

type ClustersOnUpdate struct {
	Given   *tenant.Cluster
	Updated *tenant.Cluster
	Error   error
}

type MockAttestationsClientt

type MockAttestationsClientt struct {
	OnList []AttestationsOnList
}

func (MockAttestationsClientt) List

type MockClustersClient

type MockClustersClient struct {
	OnCreate   []ClustersOnCreate
	OnDelete   []ClustersOnDelete
	OnList     []ClustersOnList
	OnUpdate   []ClustersOnUpdate
	OnConfig   []ClustersOnConfig
	OnProfiles []ClustersOnProfiles
	OnDiscover []ClustersOnDiscover
	OnCIDR     []ClustersOnCIDR
}

func (MockClustersClient) CIDR

func (MockClustersClient) Config

func (MockClustersClient) Create

func (MockClustersClient) Delete

func (MockClustersClient) List

func (MockClustersClient) Update

type MockNamespacesClient

type MockNamespacesClient struct {
	OnList []NamespacesOnList
}

func (MockNamespacesClient) List

type MockNodesClient

type MockNodesClient struct {
	OnList []NodesOnList
}

func (MockNodesClient) List

type MockPolicyResultsClient

type MockPolicyResultsClient struct {
	OnList []PolicyResultsOnList
}

func (MockPolicyResultsClient) List

type MockRecordContextsClient

type MockRecordContextsClient struct {
	OnList []RecordContextsOnList
}

func (MockRecordContextsClient) List

type MockRecordsClient

type MockRecordsClient struct {
	OnList []RecordsOnList
}

func (MockRecordsClient) List

type MockRisksClient

type MockRisksClient struct {
	OnList []RisksOnList
}

func (MockRisksClient) 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

	ClustersClient       MockClustersClient
	RecordsClient        MockRecordsClient
	RecordContextsClient MockRecordContextsClient
	SbomsClient          MockSbomsClient
	SignaturesClient     MockSignaturesClient
	PolicyResultsClient  MockPolicyResultsClient
	NodesClient          MockNodesClient
	NamespacesClient     MockNamespacesClient
	RisksClient          MockRisksClient
	WorkloadsClient      MockWorkloadsClient
	VulnReportsClient    MockVulnReportsClient
	AttestationClient    MockAttestationsClientt
}

func (MockTenantClient) Attestations

func (m MockTenantClient) Attestations() tenant.AttestationsClient

func (MockTenantClient) Close

func (m MockTenantClient) Close() error

func (MockTenantClient) Clusters

func (m MockTenantClient) Clusters() tenant.ClustersClient

func (MockTenantClient) Namespaces

func (m MockTenantClient) Namespaces() tenant.NamespacesClient

func (MockTenantClient) Nodes

func (MockTenantClient) PolicyResults

func (m MockTenantClient) PolicyResults() tenant.PolicyResultsClient

func (MockTenantClient) RecordContexts

func (m MockTenantClient) RecordContexts() tenant.RecordContextsClient

func (MockTenantClient) Records

func (MockTenantClient) Risks

func (MockTenantClient) Sboms

func (MockTenantClient) Signatures

func (m MockTenantClient) Signatures() tenant.SignaturesClient

func (MockTenantClient) VulnReports

func (m MockTenantClient) VulnReports() tenant.VulnReportsClient

func (MockTenantClient) Workloads

func (m MockTenantClient) Workloads() tenant.WorkloadsClient

type MockVulnReportsClient

type MockVulnReportsClient struct {
	OnList []VulnReportsOnList
}

func (MockVulnReportsClient) List

type MockWorkloadsClient

type MockWorkloadsClient struct {
	OnList []WorkloadsOnList
}

func (MockWorkloadsClient) List

type NamespacesOnList

type NamespacesOnList struct {
	Given *tenant.NamespaceFilter
	List  *tenant.NamespaceList
	Error error
}

type NodesOnList

type NodesOnList struct {
	Given *tenant.NodeFilter
	List  *tenant.NodeList
	Error error
}

type PolicyResultsOnList

type PolicyResultsOnList struct {
	Given *tenant.PolicyResultFilter
	List  *tenant.PolicyResultList
	Error error
}

type RecordContextsOnList

type RecordContextsOnList struct {
	Given *tenant.RecordContextFilter
	List  *tenant.RecordContextList
	Error error
}

type RecordsOnList

type RecordsOnList struct {
	Given *tenant.RecordFilter
	List  *tenant.RecordList
	Error error
}

type RisksOnList

type RisksOnList struct {
	Given *tenant.RiskFilter
	List  *tenant.RiskList
	Error 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
}

type WorkloadsOnList

type WorkloadsOnList struct {
	Given *tenant.WorkloadFilter
	List  *tenant.WorkloadList
	Error error
}

Jump to

Keyboard shortcuts

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