Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTestCatalogConnector ¶
func CreateTestCatalogConnector(t ginkgo.GinkgoTInterface)
func KillServer ¶
func KillServer()
func MockCatalogConnector ¶
func MockCatalogConnector()
MockCatalogConnector returns fake data location details based on the catalog id
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 MockPolicyCompiler ¶
type MockPolicyCompiler struct {
pc.IPolicyCompiler
}
MockPolicyCompiler is a mock for PolicyCompiler interface used in tests
func (*MockPolicyCompiler) GetPoliciesDecisions ¶
func (s *MockPolicyCompiler) GetPoliciesDecisions(in *pb.ApplicationContext) (*pb.PoliciesDecisions, error)
GetPoliciesDecisions implements the PolicyCompiler interface
Click to show internal directories.
Click to hide internal directories.