Documentation ¶
Index ¶
- type AttestationsOnList
- type ClustersOnCIDR
- type ClustersOnConfig
- type ClustersOnCreate
- type ClustersOnDelete
- type ClustersOnDiscover
- type ClustersOnList
- type ClustersOnProfiles
- type ClustersOnUpdate
- type MockAttestationsClientt
- type MockClustersClient
- func (m MockClustersClient) CIDR(_ context.Context, given *tenant.ClusterCIDRRequest, _ ...grpc.CallOption) (*tenant.ClusterCIDRResponse, error)
- func (m MockClustersClient) Config(_ context.Context, given *tenant.ClusterConfigRequest, _ ...grpc.CallOption) (*tenant.ClusterConfigResponse, error)
- func (m MockClustersClient) Create(_ context.Context, given *tenant.CreateClusterRequest, _ ...grpc.CallOption) (*tenant.Cluster, error)
- func (m MockClustersClient) Delete(_ context.Context, given *tenant.DeleteClusterRequest, _ ...grpc.CallOption) (*emptypb.Empty, error)
- func (m MockClustersClient) Discover(_ context.Context, given *tenant.ClusterDiscoveryRequest, _ ...grpc.CallOption) (*tenant.ClusterDiscoveryResponse, error)
- func (m MockClustersClient) List(_ context.Context, given *tenant.ClusterFilter, _ ...grpc.CallOption) (*tenant.ClusterList, error)
- func (m MockClustersClient) Profiles(_ context.Context, given *tenant.ClusterProfilesRequest, _ ...grpc.CallOption) (*tenant.ClusterProfilesResponse, error)
- func (m MockClustersClient) Update(_ context.Context, given *tenant.Cluster, _ ...grpc.CallOption) (*tenant.Cluster, error)
- type MockNamespacesClient
- type MockNodesClient
- type MockPolicyResultsClient
- type MockRecordContextsClient
- type MockRecordsClient
- type MockRisksClient
- type MockSbomsClient
- type MockSignaturesClient
- type MockTenantClient
- func (m MockTenantClient) Attestations() tenant.AttestationsClient
- func (m MockTenantClient) Close() error
- func (m MockTenantClient) Clusters() tenant.ClustersClient
- func (m MockTenantClient) Namespaces() tenant.NamespacesClient
- func (m MockTenantClient) Nodes() tenant.NodesClient
- func (m MockTenantClient) PolicyResults() tenant.PolicyResultsClient
- func (m MockTenantClient) RecordContexts() tenant.RecordContextsClient
- func (m MockTenantClient) Records() tenant.RecordsClient
- func (m MockTenantClient) Risks() tenant.RisksClient
- func (m MockTenantClient) Sboms() tenant.SbomsClient
- func (m MockTenantClient) Signatures() tenant.SignaturesClient
- func (m MockTenantClient) VulnReports() tenant.VulnReportsClient
- func (m MockTenantClient) Workloads() tenant.WorkloadsClient
- type MockVulnReportsClient
- type MockWorkloadsClient
- type NamespacesOnList
- type NodesOnList
- type PolicyResultsOnList
- type RecordContextsOnList
- type RecordsOnList
- type RisksOnList
- type SbomsOnList
- type SignaturesOnList
- type VulnReportsOnList
- type WorkloadsOnList
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 MockAttestationsClientt ¶
type MockAttestationsClientt struct {
OnList []AttestationsOnList
}
func (MockAttestationsClientt) List ¶
func (m MockAttestationsClientt) List(_ context.Context, given *tenant.AttestationFilter, _ ...grpc.CallOption) (*tenant.AttestationList, error)
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 (m MockClustersClient) CIDR(_ context.Context, given *tenant.ClusterCIDRRequest, _ ...grpc.CallOption) (*tenant.ClusterCIDRResponse, error)
func (MockClustersClient) Config ¶
func (m MockClustersClient) Config(_ context.Context, given *tenant.ClusterConfigRequest, _ ...grpc.CallOption) (*tenant.ClusterConfigResponse, error)
func (MockClustersClient) Create ¶
func (m MockClustersClient) Create(_ context.Context, given *tenant.CreateClusterRequest, _ ...grpc.CallOption) (*tenant.Cluster, error)
func (MockClustersClient) Delete ¶
func (m MockClustersClient) Delete(_ context.Context, given *tenant.DeleteClusterRequest, _ ...grpc.CallOption) (*emptypb.Empty, error)
func (MockClustersClient) Discover ¶
func (m MockClustersClient) Discover(_ context.Context, given *tenant.ClusterDiscoveryRequest, _ ...grpc.CallOption) (*tenant.ClusterDiscoveryResponse, error)
func (MockClustersClient) List ¶
func (m MockClustersClient) List(_ context.Context, given *tenant.ClusterFilter, _ ...grpc.CallOption) (*tenant.ClusterList, error)
func (MockClustersClient) Profiles ¶
func (m MockClustersClient) Profiles(_ context.Context, given *tenant.ClusterProfilesRequest, _ ...grpc.CallOption) (*tenant.ClusterProfilesResponse, error)
type MockNamespacesClient ¶
type MockNamespacesClient struct {
OnList []NamespacesOnList
}
func (MockNamespacesClient) List ¶
func (m MockNamespacesClient) List(_ context.Context, given *tenant.NamespaceFilter, _ ...grpc.CallOption) (*tenant.NamespaceList, error)
type MockNodesClient ¶
type MockNodesClient struct {
OnList []NodesOnList
}
func (MockNodesClient) List ¶
func (m MockNodesClient) List(_ context.Context, given *tenant.NodeFilter, _ ...grpc.CallOption) (*tenant.NodeList, error)
type MockPolicyResultsClient ¶
type MockPolicyResultsClient struct {
OnList []PolicyResultsOnList
}
func (MockPolicyResultsClient) List ¶
func (m MockPolicyResultsClient) List(_ context.Context, given *tenant.PolicyResultFilter, _ ...grpc.CallOption) (*tenant.PolicyResultList, error)
type MockRecordContextsClient ¶
type MockRecordContextsClient struct {
OnList []RecordContextsOnList
}
func (MockRecordContextsClient) List ¶
func (m MockRecordContextsClient) List(_ context.Context, given *tenant.RecordContextFilter, _ ...grpc.CallOption) (*tenant.RecordContextList, error)
type MockRecordsClient ¶
type MockRecordsClient struct {
OnList []RecordsOnList
}
func (MockRecordsClient) List ¶
func (m MockRecordsClient) List(_ context.Context, given *tenant.RecordFilter, _ ...grpc.CallOption) (*tenant.RecordList, error)
type MockRisksClient ¶
type MockRisksClient struct {
OnList []RisksOnList
}
func (MockRisksClient) List ¶
func (m MockRisksClient) List(_ context.Context, given *tenant.RiskFilter, _ ...grpc.CallOption) (*tenant.RiskList, 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 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 (m MockTenantClient) Nodes() tenant.NodesClient
func (MockTenantClient) PolicyResults ¶
func (m MockTenantClient) PolicyResults() tenant.PolicyResultsClient
func (MockTenantClient) RecordContexts ¶
func (m MockTenantClient) RecordContexts() tenant.RecordContextsClient
func (MockTenantClient) Records ¶
func (m MockTenantClient) Records() tenant.RecordsClient
func (MockTenantClient) Risks ¶
func (m MockTenantClient) Risks() tenant.RisksClient
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
func (MockTenantClient) Workloads ¶
func (m MockTenantClient) Workloads() tenant.WorkloadsClient
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 MockWorkloadsClient ¶
type MockWorkloadsClient struct {
OnList []WorkloadsOnList
}
func (MockWorkloadsClient) List ¶
func (m MockWorkloadsClient) List(_ context.Context, given *tenant.WorkloadFilter, _ ...grpc.CallOption) (*tenant.WorkloadList, error)
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 }
Click to show internal directories.
Click to hide internal directories.