Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterLister ¶
type ClusterLister struct { }
ClusterLister is a mockup cluster manager
func (*ClusterLister) GetClusters ¶
func (m *ClusterLister) GetClusters() ([]multicluster.Cluster, error)
GetClusters returns the cluster config for testing
type DataCatalogDummy ¶
type DataCatalogDummy struct { pb.UnimplementedDataCatalogServiceServer // contains filtered or unexported fields }
This dummy catalog can serve as both a grpc server implementation that serves a dummy catalog with dummy datasets and dummy credentials as well as a drop in for the DataCatalog interface without any network traffic.
func NewTestCatalog ¶
func NewTestCatalog() *DataCatalogDummy
func (*DataCatalogDummy) Close ¶
func (d *DataCatalogDummy) Close() error
func (*DataCatalogDummy) GetDatasetInfo ¶
func (d *DataCatalogDummy) GetDatasetInfo(ctx context.Context, in *pb.CatalogDatasetRequest) (*pb.CatalogDatasetInfo, error)
type MockPolicyManager ¶
type MockPolicyManager struct {
connectors.PolicyManager
}
MockPolicyManager is a mock for PolicyManager interface used in tests
func (*MockPolicyManager) GetPoliciesDecisions ¶
func (m *MockPolicyManager) GetPoliciesDecisions(input *taxonomymodels.PolicyManagerRequest, creds string) (*taxonomymodels.PolicyManagerResponse, error)
GetPoliciesDecisions implements the PolicyCompiler interface
Click to show internal directories.
Click to hide internal directories.